Ninkobi
Owner /Founder of Syphera
I need someone to help with my teleportation scroll script, it doesn't work. It must only work if you don't have battle or PZ.
Thanks in advance.
Code:
function onUse(cid, item, frompos, item2, topos)
temple = getPlayerMasterPos(cid)
pos = getPlayerPosition(cid)
if getCreatureCondition(cid, CONDITION_PZ) == 1 then
doSendMagicEffect(pos,2)
doTeleportThing(cid,temple)
doSendMagicEffect(temple,10)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid,"You have PZ lock.")
end
return 1
end