Hey guys, Im trying to make a teleport scroll.
This is my code
and this is the actions.xml
I donno how to make it not work in battle mode...
Any tips?
This is my code
Code:
function onUse(cid, item, frompos, item2, topos)
npos = {x=160, y=50, z=7}
if item.itemid == 5952
then
doTeleportThing(cid,npos)
doSendMagicEffect(topos, CONST_ME_TELEPORT)
doSendMagicEffect(npos, CONST_ME_TELEPORT)
doRemoveItem(item.uid)
end
end
and this is the actions.xml
Code:
<action itemid="5952" script="tools/tp.lua"/>
I donno how to make it not work in battle mode...
Any tips?
Last edited: