function onUse(cid, item, frompos, item2, topos)if item2.itemid == 601 or item2.itemid == 602 or item2.itemid == 603 or item2.itemid == 729 or item2.itemid == 730 or item2.itemid == 731 or item2.itemid == 732 or item2.itemid == 733 or item2.itemid == 734 or item2.itemid == 735 or item2.itemid == 736 or item2.itemid == 737 or item2.itemid == 738 or item2.itemid == 739 or item2.itemid == 740 then
doTeleportThing(cid,topos)
doSendMagicEffect(topos,1)
doSendMagicEffect(frompos,1)
doPlayerSendTextMessage(cid,24,":)!")
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You cannot use the wand here.")
end
return 1
end
agora em actions.xml
-- spellwand of wather walking --
<action itemid="3012" script="boww.lua" allowfaruse="1" />
eu tb modifiquei o item.xml da blue spellwand apra issu aki
CODE
<item id="3012" name="Spellwand of Wather Walking" descr="You can run in whater with this wand" weight="23.0" />
ta ai voce tem q dar usewith e se teleporta para o tile de agua q n esteja bloqauido por paredes, voce pode usar em qualquer desses tiles, se quiser q seja de tile por tile apage a linha do actions.xml allofaruse="1"
CREDITOS: D_CRUEL