Postado Setembro 15, 2014 10 anos Bom, bug na wote, ao clicar no item "replica of the sceptre" e usar no boss eu recebo a mensagem e da certo, o problema é que eu posso ficar clicando sem parar, assim buga minha quest. Queria que eu pudesse usar apenas uma vez em cada corpo do boss, Total de 4 "Boss"; vou mandar a action/scripts: function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 1060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 2060, 1) setPlayerStorageValue(cid, 1060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 2060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 3060, 1) setPlayerStorageValue(cid, 2060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 3060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 4060, 1) setPlayerStorageValue(cid, 3060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 4060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 5060, 1) setPlayerStorageValue(cid, 4060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 8060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33076, y = 31173, z = 8}) setPlayerStorageValue(cid, 5060, 0) setPlayerStorageValue(cid, 8060, 0) end end end end end end end scripts/replica.lua
Postado Setembro 15, 2014 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Actions e TalkActions" Para: "OTServ → Suporte OTServ → Suporte de Scripts" STYLLER OT 2022
Postado Setembro 15, 2014 10 anos function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 1060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33052, y = 31084, z = 14}) setPlayerStorageValue(cid, 2060, 1) setPlayerStorageValue(cid, 1060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 2060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33098, y = 31084, z = 14}) setPlayerStorageValue(cid, 3060, 1) setPlayerStorageValue(cid, 2060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 3060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33101, y = 31117, z = 14}) setPlayerStorageValue(cid, 4060, 1) setPlayerStorageValue(cid, 3060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 4060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33072, y = 31153, z = 15}) setPlayerStorageValue(cid, 5060, 1) setPlayerStorageValue(cid, 4060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 8060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33076, y = 31173, z = 8}) setPlayerStorageValue(cid, 5060, 0) setPlayerStorageValue(cid, 8060, 0) end end end end end end end quando usa o cetro no corpo e teleportado para fora e so podere entrar no próximo boss.
Postado Setembro 15, 2014 10 anos Autor function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 1060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33052, y = 31084, z = 14}) setPlayerStorageValue(cid, 2060, 1) setPlayerStorageValue(cid, 1060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 2060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33098, y = 31084, z = 14}) setPlayerStorageValue(cid, 3060, 1) setPlayerStorageValue(cid, 2060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 3060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33101, y = 31117, z = 14}) setPlayerStorageValue(cid, 4060, 1) setPlayerStorageValue(cid, 3060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 4060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33072, y = 31153, z = 15}) setPlayerStorageValue(cid, 5060, 1) setPlayerStorageValue(cid, 4060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 8060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33076, y = 31173, z = 8}) setPlayerStorageValue(cid, 5060, 0) setPlayerStorageValue(cid, 8060, 0) end end end end end end end quando usa o cetro no corpo e teleportado para fora e so podere entrar no próximo boss. PERFEITO! REP+! OBRIGADO DE CORAÇÃO!
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.