MarkSmartRemark
Lua-Noob in Training :D
- Joined
- Jan 27, 2010
- Messages
- 139
- Reaction score
- 3
Hi everyone,
sorry if im flooding request section..
I was wondering.. i want to use doCreatureSetNoMove in a spell.. it uses it for like 2 seconds and then cancels it.
the way i tried to do this was i put doCreatureSetNoMove(cid, true) and then put addEvent with function that makes doCreatureSetNoMove(cid, false). and it works HOWEVER, if the player switches targets while the spell waits for addEvent to happen, the player is stuck and cannot break free.. is there another way to put a time for doCreatureSetNoMove? or is AddEvent the only way?
if addEvent is the only way, can i make it so it recognizes the first player the spell was targetting?
Thanks in advance!
sorry if im flooding request section..
I was wondering.. i want to use doCreatureSetNoMove in a spell.. it uses it for like 2 seconds and then cancels it.
the way i tried to do this was i put doCreatureSetNoMove(cid, true) and then put addEvent with function that makes doCreatureSetNoMove(cid, false). and it works HOWEVER, if the player switches targets while the spell waits for addEvent to happen, the player is stuck and cannot break free.. is there another way to put a time for doCreatureSetNoMove? or is AddEvent the only way?
if addEvent is the only way, can i make it so it recognizes the first player the spell was targetting?
Thanks in advance!