• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Remove creatureEvent

lhc00

New Member
Joined
Mar 23, 2010
Messages
23
Reaction score
0
I just wanna know if exist a function that can remove a creatureEvent from a creature, if exist, which one?.

Thx by the attention ^_^
 
Lua:
stopEvent(x)
return 1
end

I dont think so...

In the event file you can make a check
Code:
if getPlayerStorage(cid,storage) < 1 then
    execute code
end

then to stop event for a certain player give him ths storage, to reactivate event remove storage from player.
 
If it is started with
Lua:
addEvent(x)
return 1
end

then you stop it with
Lua:
stopEvent(x)
return 1
end
 
Thx to all, i usually use a storage on the event, is a pity that don't exist any function to remove the event, thx anyway ^_^.
 
On a side note, there is a function named unregisterCreatureEvent(cid).
Unfortunately, it is exclusive only to TFS 0.4 at the moment.
 
Back
Top