Ir para conteúdo

Posts Recomendados

  • 4 months later...

Muito bom o tutorial...

mais gostaria de saber ali onde vc faz o exemplo de como retirar uma pedra ow uma parade, naum tem como retirar por exemplo 2 paredes????

  Citar
1 - Removendo pedras -

Vejam o Ex(By Peonso) :

function onUse(cid, item, frompos, item2, topos)

gatepos = {x=181, y=135, z=11, stackpos=1}

getgate = getThingfromPos(gatepos)

if item.uid == 3002 and item.itemid == 2711 and getgate.itemid == 1822 then

doRemoveItem(getgate.uid,1)

doTransformItem(item.uid,item.itemid+1)

elseif item.uid == 3002 and item.itemid == 2712 and getgate.itemid == 0 then

doCreateItem(1822,1,gatepos)

doTransformItem(item.uid,item.itemid-1)

else

doPlayerSendCancel(cid,"Sorry, not possible.")

end

return 1

end

Link para o comentário
https://xtibia.com/forum/topic/8785-tutorial-de-actions/page/2/#findComment-88318
Compartilhar em outros sites

  • 5 months later...
  • 10 months later...
  • 9 months later...
×
×
  • Criar Novo...