• 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!

PZ tile

MalyFanek

New Member
Joined
Oct 10, 2019
Messages
37
Reaction score
2
I have a problem with PZ, players can enter PZ with fight on and they get PZ, when they left fight is back ....

I though about making walkon event with pz tile but ... im not sure is it good idea, wouldnt it slow down server very much?

Maybe i got something wrong in source? (where to search for it? i checked tile.h, tile.cpp, players.cpp didnt see anything wrong there i guess)

Making script with pz pushback if in fight condition ?? But also have no idea how it shall look ...

Strange is cuz though that if i add PZ at mapeditor, it shoudlnt let players enter there if in fight etc but it does ....



Tfs 0.4 rev 3777 client 8.6



Tried:



function onThink (interval)

if isPlayer (cid) and (getTilePzInfo (getCreaturePosition (cid)) and
getCreatureCondition (cid, CONDITION_INFIGHT)) then
doTeleportThing (cid, fromPosition, false)
doPlayerSendTextMessage (cid, 25, "while you can't enter . ")
end
return true
end



No errors at console, tried with true / false but not works; x
 
Last edited:
Back
Top