Olá. Tenho um Script aqui com o objetivo de usar POT enquanto o char anda, pois atualmente enquanto o char anda não é possivel usar, tem que parar um pouco para usar o pot.
Aqui segue o error
[31/01/2013 16:11:29] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/healwalk.lua:9: 'end' expected (to close 'if' at line 7) near 'setPlayerStorageValue'[31/01/2013 16:11:29] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/healwalk.lua)
[31/01/2013 16:11:29] data/creaturescripts/scripts/healwalk.lua:9: 'end' expected (to close 'if' at line 7) near 'setPlayerStorageValue'
Aqui o script
local RemoveOnUse,storage,exausted = true,98762,1
function onThink(cid, interval, lastExecution)
if getPlayerStorageValue(cid, 80962) >= 0 then
return true
end
if getPlayerStorageValue(cid, storage) >= os.time() then
return doPlayerSendCancel(cid, "You are exhausted.")
setPlayerStorageValue(cid, 80962, 0)
end
doCreatureAddHealth(cid, 100000)
doCreatureAddMana(cid, 100000)
doSendMagicEffect(getCreaturePosition(cid), 12)
return true
end
Se alguém conseguir encontrar o error REP +