Ahilphino
Excellent OT User
- Joined
- Jun 5, 2013
- Messages
- 1,667
- Solutions
- 1
- Reaction score
- 727
Okay so recently I made a script that says "Danger!" over a players head every second after they used a specific item but I would also want a movement script that cancels this effect (so that it stops spamming Danger above the players head) I've tried it on my own without any success for a couple of hours now
The action script:
Now I wonder how I could cancel this addevent with a movement script? I've searched around with little to no success, I would really appreciate some help with this!
I tried some stuff with globalstorages but just ended up crashing the server, and I don't think globalstorages would be good either since if one players
The action script:
Code:
function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
local time, t = 1 * 15, 0
for x = 1, time do
addEvent(function() player:say("Danger!", TALKTYPE_MONSTER_SAY) end, t)
t = t + 1000
end
return true
end
Now I wonder how I could cancel this addevent with a movement script? I've searched around with little to no success, I would really appreciate some help with this!
I tried some stuff with globalstorages but just ended up crashing the server, and I don't think globalstorages would be good either since if one players
Last edited: