• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[help] pz teleport

sonny11

New Member
Joined
Dec 22, 2007
Messages
137
Reaction score
0
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


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
 
Back
Top