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

C++ Logout in a protection zone with logout block on older client

Gunmetalx

Member
Joined
Sep 13, 2016
Messages
56
Reaction score
8
Hello, im looking for a way to implement a modern tibia function into the 7.72 Nostalrius server. Id like to be able to have characters logout or lose their logout block when entering a protection zone, ie: Temple/Depot. Is this possible?
Sorry if the tag is incorrect, Im sure id have to edit the source and recompile
 
Yeah should be possible, but not by config only.

On old Nostalrius-style sources the real problem is usually not the logout itself, it's that a pz locked player can't even enter temple/depot first.

Check these files:

- src/tile.cpp
This is usually where entering TILESTATE_PROTECTIONZONE while pz locked gets blocked.

- src/protocolgame.cpp
This is the logout check itself.

- src/player.cpp
If you want the battle/logout lock to get removed as soon as the player enters PZ, this is also a place to check.

If you paste your checks from tile.cpp and protocolgame.cpp I might try to check and help you.
 

Similar threads

Back
Top