View Full Version : Lua AI Script

11-24-2013, 09:01 PM
ive downloaded a repack with eluna today.
now im trying to add a script!

This is the Script: http://pastebin.com/RsU3Bd5y

But in the serverconsole this error comes up:

scripts\xxx.lua:13 calling 'CastSpell' on bad self

-> The NPC is not casting becaus this Error.
maybe you can help me :(

11-24-2013, 09:17 PM
Might be because we changed the CastSpell after I made the Eluna repack. I'll have to update the repack sometime next week. Either way, nothing is wrong with your script, just could be the that reason I mentioned.

11-24-2013, 09:19 PM
i got this repack http://emudevs.com/showthread.php/55-AlexeWarr-s-Eluna-Repack-WoTLK

maybe you remember what i have to edit at line:13?

11-24-2013, 09:30 PM
Oh dear, his source is 4 months outdated than EmuDevs Eluna repack. Perhaps you should downloaded ours instead: http://emudevs.com/showthread.php/1095-EmuDevs-TrinityCore-3-3-5a-Eluna-WoW-Repack

I'm not trying to change your mind, use it if you want, but I can't remember that far back on how our methods were.

11-25-2013, 03:29 PM
The old way was castspellontarget that worked like arcemu did

11-25-2013, 05:09 PM
The old way was castspellontarget that worked like arcemu did

Oh yeah, that's right. "CastSpellOnTarget"