Healwalk Script error

maligno
em Scripts

maligno

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 13/02/08Posts: 111Char no Tibia: ai holl

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 +

M@IiGho//





Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

lol veio usar onThink? serio? ;x

return doPlayerSendCancel(cid, "You are exhausted.")
setPlayerStorageValue(cid, 80962, 0)

deixe assim..

setPlayerStorageValue(cid, 80962, 0)
return doPlayerSendCancel(cid, "You are exhausted.")

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

maligno

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 13/02/08Posts: 111Char no Tibia: ai holl

Peguei esse script na internet já com o error, vou testa aqui...

 

Vlw cara, resolveu mesmo :)

 

Rep+

 

Duvida Sanada

M@IiGho//





Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

sanado, movido

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein