XB

Acton Com Green Spell Wand

Por xbowaxx, 03 de nov. de 2005 em Actions e Talkactions

script
1
1.6k
03 de novembro de 2005 às 13:54

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

Editado Junho 28 por JV Chequer