• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Teleport rune Request PLEASE

wikutag

SoulBound 8.6 100% custom
Joined
Dec 27, 2012
Messages
305
Reaction score
0
Location
United states Kentucky
Any possible way we can make this rune where if they have battle sig they cannot teleport because people can teleport when pvping -.- please!!

local truepos = {x=32369, y=32240, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayerPzLocked(cid) then
doTeleportThing(cid, truepos, FALSE)
doCreatureSay(cid, "You cannot teleport while pz locked!", 19)
else
doTeleportThing(cid, truepos, TRUE)
doCreatureSay(cid, "Teleported!", 19)
end
return true
end
 
Try this:

Code:
local truepos = {x=32369, y=32240, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, "You may not use this while you have a Battle Symbol!")
else
doTeleportThing(cid, truepos, true)
doCreatureSay(cid, "Teleported!", 19)
end
return true
end
 
Any possible way we can make this rune where if they have battle sig they cannot teleport because people can teleport when pvping -.- please!!

local truepos = {x=32369, y=32240, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayerPzLocked(cid) then
doTeleportThing(cid, truepos, FALSE)
doCreatureSay(cid, "You cannot teleport while pz locked!", 19)
else
doTeleportThing(cid, truepos, TRUE)
doCreatureSay(cid, "Teleported!", 19)
end
return true
end

your script is good too
but you forgot 1 word :)
if isPlayerPzLocked(cid) == TRUE
you forgot to make it true that's why players can fly even in fight
 
Back
Top