Siegh
Thronar Developer
Someone help me please on a simple issue with this script below \/
This is a teleport scroll, it works almost fine... the problem is that I dont want player to teleport if they got the battle icon, be it from players or monsters. The function isPlayerPzLocked seems like checks only pvp batle, since I tested with monsters and I got teleported.
So, someone may help me on checking if the player is fighting monsters aswell?
Thanks in advance!
Code:
function onUse(cid, item, frompos, item2, topos)
local newpos = {x=1635, y=2568, z=4}
if isPlayerPzLocked(cid) == false then
doTeleportThing(cid, newpos)
doSendMagicEffect(getPlayerPosition(cid), 10)
doPlayerSendTextMessage(cid, 22, "You have been teleported to Thyrfing.")
else
doPlayerSendTextMessage(cid, 22, "You cant teleport while in battle.")
end
return true
end
This is a teleport scroll, it works almost fine... the problem is that I dont want player to teleport if they got the battle icon, be it from players or monsters. The function isPlayerPzLocked seems like checks only pvp batle, since I tested with monsters and I got teleported.
So, someone may help me on checking if the player is fighting monsters aswell?
Thanks in advance!
Last edited by a moderator: