View Full Version : [Rochet2 Help me again]Need a lil quick help!
07-05-2013, 09:04 PM
When I reload the server with reload eluna from console I get no errors but ingame my npc doesn't shoot the spell I put in the Lua. do you know a quick fix to this or did I just not put the right command correctly or linked it wrong?
07-05-2013, 09:22 PM
These are wrong.
See CastSpell documentation:
It says: :CastSpell(target, spellID[, triggered]) - Casts spell on target (player/npc/object/item), if triggered is false has mana cost and cast time
This means you NEED to specify the target as well as the spellID. triggered is optional.
RegisterEvent on the other hand requires 3 arguments:
:RegisterEvent(function, delay, repeats)
Function is a FUNCTION, not a string!
delay is in ms and repeats is rather obvious. ALL 3 must be provided.
You need to check the console after using the script for errors.
07-07-2013, 04:49 PM
I'm sorry but the title of this makes me laugh =P
I suppose that's why Rochet2 didn't have to go through levels and went straight to emu expert ^.^
Since he thanked you, I am assuming it's solved \o/
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.