local ring = xxxx
function sayExura(cid)
doCreatureSay(cid, "exura")
if getPlayerStorageValue(cid, ring) == 1 then
addEvent(sayExura, 6000, cid)
end
end
function onMove()
setPlayerStorageValue(cid, ring, 1)
--setNoLogout
addEvent(sayExura, 1, cid)
end
Using doCreatureSay will not make a player cast spell just Fyi, also for idle time just use doPlayerResetIdleTime(cid)You can use recursion to do your exura thing... for example
youll have to mimic the script for onMove when you take off the item as well.. to set the storage to 0.. you can use setNoLogout I think if you have the function... thats pseudocode btw that wont work if you just put that in a lua xDCode:local ring = xxxx function sayExura(cid) doCreatureSay(cid, "exura") if getPlayerStorageValue(cid, ring) == 1 then addEvent(sayExura, 6000, cid) end end function onMove() setPlayerStorageValue(cid, ring, 1) --setNoLogout addEvent(sayExura, 6000, cid) end
What do you mean for onMove?You can use recursion to do your exura thing... for example
youll have to mimic the script for onMove when you take off the item as well.. to set the storage to 0.. you can use setNoLogout I think if you have the function... thats pseudocode btw that wont work if you just put that in a lua xDCode:local ring = xxxx function sayExura(cid) doCreatureSay(cid, "exura") if getPlayerStorageValue(cid, ring) == 1 then addEvent(sayExura, 6000, cid) end end function onMove() setPlayerStorageValue(cid, ring, 1) --setNoLogout addEvent(sayExura, 1, cid) end