Hello
I have problem with script "anty idle" this script dont work.
I added it as you need to and nothing creaturescript
I have problem with script "anty idle" this script dont work.
I added it as you need to and nothing creaturescript
PHP:
function onDirection(cid, old, current)
local storage = 123456
local triesStorage = 123457
local set = 0
if (exhaustion.check(cid, storage)) then
local tries = getCreatureStorage(cid, triesStorage)
if (tries >= 5) then
doPlayerSendCancel(cid, 'Obracasz sie szybciej niz 5x na sekunde, odczekaj 0.5 sekundy.')
return false
else
set = tries + 1
end
end
doCreatureSetStorage(cid, triesStorage, set)
exhaustion.make(cid, storage, 0.5)
return true
end