I need some help here. I'm a newer server owner, and I'm trying to figure out how to make an NPC channel a spell, as decoration, so to speak. You see, I've got a custom area, and a Dalaran bubble spawned, covering this place. What I'm trying to get, is the 4 mages I have spawned in the right places, to look like they're channeling a spell to keep that bubble up.
I've been trying and can't figure it out. If someone could make an Lua script for me, or guide me through my HeidiSQL to accomplish it there, that would be great.
I'm using a Kirin Tor Battle-Mage (Entry = 91011)
+Rep to all who try to help me.
---------- Post added at 01:55 PM ---------- Previous post was at 12:43 PM ----------
I have this so far, and I'm getting an error.
---------------------------------------------
function NPCCHANNEL(91011, event)
if(unit:GetClosestEnemy()~=nil) then
unit:ChannelSpell(47855, unit:GetClosestEnemy()) -- Drain Soul
end
end
-------------------------------------------------
I'm getting,
scripts/Channeling.lua:1: <name> or '...' expected near '91011'
So, what needs to be fixed?