dami1310
◄ Unidentified ►
First of all: I use tfs 0.3.6 for 8.60.
Yeah, I know that there is downgraded 1.3, but this is not what the thread is about so please don't talk about it.
Now let's get to the topic.
I am using a spell with addEvent to stop creature from moving for x time, but...
When the target dies. There is no creature to find and obviously error pops up in console.
And I am here to ask if there is any way to prevent that from happening. I mean I can just ignore it, but if it's possible then I would rather do that.
Yeah, I know that there is downgraded 1.3, but this is not what the thread is about so please don't talk about it.
Now let's get to the topic.
I am using a spell with addEvent to stop creature from moving for x time, but...
Code:
function onTargetCreature(cid, target)
local t = 10000
doCreatureSetNoMove(target, true)
addEvent(doCreatureSetNoMove, t, target, false)
end
Code:
[Error - Spell Interface]
In a timer event called from:
(Unknown script file)
Description:
(luaDoCreatureSetNoMove) Creature not found