Well I saw a guide on how to script a game object to teleport you somewhere (Portal...) and I wa swondering if it would be possible to script it to do other things liek cast a spell on you...?
Here's the script I wrote and I was wondering why it wont work:
It says "Cannon launched!" in the arcemu-world.exe window so I know it half-works but it just wont cast the spell on the player...Code:function Cannon_onUse (pUnit, Event, pMisc) print "Cannon launched!" pMisc:CastSpell (42867); end RegisterGameObjectEvent (186560, 2, "Cannon_onUse")