Erro besta:
function onUse(cid, item,pos)
if getPlayerSex(cid) == 0 then
if getPlayerStorageValue(cid,5600) == -1 then
...
elseif getPlayerSex(cid) == 1 then
...
else
...
end
end
return TRUE
end
Primeiro aqui:
if getPlayerSex(cid) == 0 thenif getPlayerStorageValue(cid,5600) == -1 then
Devia ser:
if getPlayerStorageValue(cid,5600) == -1 thenif getPlayerSex(cid) == 0 then
Depois aqui:
elsedoPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
end
Devia ser:
endelse
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
E mais uma coisa, vc não usou setPlayerStorageValue.
Assim seu player repete a quest o quanto quise.







info
Group: Campones
Joined: 13/04/08
Posts: 3
Reputation: 0
Tibia Character: Dionatha'knight Soldier
Ola xtibianos, fiço um script que quandoo o player completa a quest ele usa a chest e ganha os 2 addons demonhunter.
Mas tem um problema, apenas characters femininos ganham os addons.
Esta faltando alguma coisa no script que eu nao coloquei se tive por favor corrijam meu script.
Edited Julho 31 by Dionatha14