well 1 was making this script that teleports u to temple if u have a scroll aso checks for pz
but it just dont seem to work
using tfs 0.2.10
but it just dont seem to work
Code:
local telePos = {x=343, y=945, z=7}
function onUse(cid, item, frompos, item2, topos)
ppos = getPlayerPosition(cid)
if getCreatureCondition(cid, CONDITION_INFIGHT) == 0 then
doSendMagicEffect(ppos,2)
doTeleportThing(cid, telePos, TRUE)
else
doPlayerSendCancel(cid,"You have a PZ lock.")
end
return 1
end
using tfs 0.2.10