Ir para conteúdo

sprainedweb

Membro
  • Registro em

  • Última visita

  1. mesmo problema, ajudem ae..
  2. Não funcionou, mas usei esse script em action: function onUse(cid, item, frompos, item2, topos) local voc = 400 local outfit = 316 if item.itemid == 13486 then doCreatureChangeOutfit(cid, {lookType = outfit}) doPlayerSetVocation(cid,voc) doRemoveItem(item.uid,1) end return true end Dessa forma até funciona, o problema é que não verifica as storages no caso, pra saber se o jogador é reborn ou não. mesmo assim, já é um avanço huehue.
  3. sprainedweb alterou sua foto pessoal
  4. Estou com problemas para resolver o problema de vocações no servidor Dbo rox, esse é um creaturescript, quando compra o amuleto no shop as vezes buga e nao transforma na vocação adquirida, eu queria que fosse uma actions que ao clicar, verificasse as storages e dando tudo certo, o jogador iria se transformar na vocação adquirida. function onThink(cid, interval) local itemid = 13486 local outfit = {lookType = 316} local outfit2 = {lookType = 596} if isPlayer(cid) then if getPlayerItemCount(cid, itemid) >= 1 then if getPlayerStorageValue(cid,99023) == 4 and doCreatureChangeOutfit(cid, outfit2) and doPlayerRemoveItem(cid, itemid, 1) and addEvent(doRemoveCreature, 1, cid) then doPlayerSetVocation(cid, 498) elseif getPlayerStorageValue(cid,30023) == 4 and doCreatureChangeOutfit(cid, outfit) and doPlayerRemoveItem(cid, itemid, 1) and addEvent(doRemoveCreature, 1, cid) then doPlayerSetVocation(cid, 405) elseif getPlayerStorageValue(cid,60150) == 1 and doCreatureChangeOutfit(cid, outfit) and doPlayerRemoveItem(cid, itemid, 1) and addEvent(doRemoveCreature, 1, cid) then doPlayerSetVocation(cid, 400) end end return true end end

Informação Importante

Confirmação de Termo