How to make NPC casting spells with the LUA script
Hey guys,i wanna tell you how to script an (custom)NPC with the .LUA Way!
1)First of all u wanna get an Repack/Server with ARCEMU/Ascent Core
2)Then open Wordpad 3)Copy this script to the new Document
function NpcName_Event (pUnit, Event)
pUnit:CastSpell (YOURSPELLID)
end
RegisterUnitEvent (YOURNPCID, 1, "NpcName_Event")
4)Replace the "YOURNPCID with the ID from your NPC ,u wanna make to cast spells.5)Replace the YOURSPELLID with the Spell that would be later castet from the NPC(U can find ID's on WoWhead.com)6)The final step!Save your Document as .LUA File in your C:\REPACK\ArcEmu\scripts folder like this NPCCASTING.lua Restart server and then u should got the NPC with the spell!DON'T FORGET!! THE FACTION OF THE NPC MUST BE NOT NEUTRAL FOR ANYONE!(Use Faction ID like 14)
DONE HAVE FUN!