Ir para conteúdo

Acton Com Green Spell Wand


Visitante xbowaxx

Posts Recomendados

Visitante xbowaxx

Esse action faz com q quando vc usa a green spellwand, ela vira numa runa de teleport, jah tah tudo ajustado, a runa de teleport vai da pra player e eh soh 1 vez

actions.xml:

<action itemid="3010" script="gwand.lua" allowfaruse="1"/>

<action itemid="3131" script="trune.lua" allowfaruse="1"/>

gwand.lua:

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

doPlayerAddItem(cid,3131,1)

doSendMagicEffect(topos,14)

doRemoveItem(item.uid,1)

return 1

end

trune.lua:

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

if getPlayerAccess(cid) == 0 then

doSendMagicEffect(frompos,10)

doTeleportThing(cid,topos)

doSendMagicEffect(topos,10)

doRemoveItem(item.uid,1)

end

if getPlayerAccess(cid) == 2 then

doPlayerSendTextMessage(cid,22,"Noobs cant use this rune.")

end

return 1

end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...