Postado Dezembro 23, 2014 10 anos Gente é o seguinte, estou com esse script action de uma quest que é para fazer só uma vez, porém está fazendo quantas vezes quiser, alguém me ajuda como configuro? e como boto para aparecer uma mensagem Parabéns ! function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) >= 135 then doPlayerAddItem(cid, 8886, 1) doPlayerAddItem(cid, 2343, 1) doTeleportThing(cid, {x=1000,y=1000,z=7}) else doPlayerSendCancel(cid, "Isso nao e possivel.") end return true end
Postado Dezembro 23, 2014 10 anos Solução use assim function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, 21312) >= 1 then doPlayerSendTextMessage(cid,22,"Você ja fez a quest") return true end if getPlayerLevel(cid) >= 135 then doPlayerAddItem(cid, 8886, 1) doPlayerAddItem(cid, 2343, 1) doTeleportThing(cid, {x=1000,y=1000,z=7}) setPlayerStorageValue(cid, 21312, 1) else doPlayerSendCancel(cid, "Isso nao e possivel.") end return true end
Postado Dezembro 23, 2014 10 anos Autor Certinho ! Editado Dezembro 23, 2014 10 anos por Leolinduxo (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.