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

Solved How show level of player?

Inside tibia client go to Options/console and check Show Levels in Console.

lvlspng_wsxwwrx.png
 
You showed us no information about your engine and version. If you do that someone will answer you.
I can't help you because i never heared about this problem.

https://otland.net/threads/need-help-ask-it-properly-and-correctly.18402/
Code:
#5.Post the server you are using, knowing the server beforehand will help people support you faster in case the server you are using doesn't have a feature.
 
Last edited:
maybe that is a bug in your client (I assume it is a custom client for poke), because the level display is not handled by the ot engine
 
Have you tryed other engine? or only one. It's good to have few sources for tests and scripts.
Maybe this engine was made without lvls on purpose?

Before testing engines use basic client (not modified by anything): http://tibia.sx
 
maybe that is a bug in your client (I assume it is a custom client for poke), because the level display is not handled by the ot engine
Have you tryed other engine? or only one. It's good to have few sources for tests and scripts.
Maybe this engine was made without lvls on purpose?

Before testing engines use basic client (not modified by anything): http://tibia.sx

this client is New Client http://prntscr.com/7ckxzv

Basic Client http://prntscr.com/7ckzm5

i have this in my scripts e sources

000-constant.lua
PLAYERCUSTOMFLAG_HIDELEVEL = 13
PLAYERCUSTOMFLAG_HIDELEVEL = 18

100-compat.lua
PlayerCustomFlag_HideLevel = 13
PlayerCustomFlag_HideLevel = 18

Source player.cpp
{
s << nameDescription;
if(!hasCustomFlag(PlayerCustomFlag_HideLevel))
s << " (Level " << level << ")";

s << ". " << (sex % 2 ? "He" : "She");
if(hasFlag(PlayerFlag_ShowGroupNameInsteadOfVocation))
s << " is " << group->getName();
else if(vocation_id != 0)
s << " is " << vocation->getDescription();
else
s << " has no vocation";

s << getSpecialDescription();
}


This must have something to do, help me?
 
If it's a problem with the player flags simply check const.h for the player flags available to your server.
for example,
Code:
enum PlayerCustomFlags
{
   PlayerCustomFlag_AllowIdle = 0,         //2^0 = 1
   PlayerCustomFlag_CanSeePosition,       //2^1 = 2
   PlayerCustomFlag_CanSeeItemDetails,       //2^2 = 4
   PlayerCustomFlag_CanSeeCreatureDetails,     //2^3 = 8
   PlayerCustomFlag_NotSearchable,         //2^4 = 16
   PlayerCustomFlag_GamemasterPrivileges,     //2^5 = 32
   PlayerCustomFlag_CanThrowAnywhere,       //2^6 = 64
   PlayerCustomFlag_CanPushAllItems,       //2^7 = 128
   PlayerCustomFlag_CanMoveAnywhere,       //2^8 = 256
   PlayerCustomFlag_CanMoveFromFar,       //2^9 = 512
   PlayerCustomFlag_CanUseFar,           //2^10 = 1024
   PlayerCustomFlag_CanLoginMultipleCharacters,//2^11 = 2048 (account flag)
   PlayerCustomFlag_CanLogoutAnytime,       //2^12 = 4096 (account flag)
   PlayerCustomFlag_HideLevel,           //2^13 = 8192
   PlayerCustomFlag_IsProtected,         //2^14 = 16384
   PlayerCustomFlag_IsImmune,           //2^15 = 32768
   PlayerCustomFlag_NotGainSkull,         //2^16 = 65536
   PlayerCustomFlag_NotGainUnjustified,     //2^17 = 131072
   PlayerCustomFlag_IgnorePacification,     //2^18 = 262144
   PlayerCustomFlag_IgnoreLoginDelay,       //2^19 = 524288
   PlayerCustomFlag_CanStairhop,         //2^20 = 1048576
   PlayerCustomFlag_CanTurnhop,         //2^21 = 2097152
   PlayerCustomFlag_IgnoreHouseRent,       //2^22 = 4194304
   PlayerCustomFlag_CanWearAllAddons,       //2^23 = 8388608
   PlayerCustomFlag_IsWalkable,         //2^24 = 16777216
   PlayerCustomFlag_CanUseAllMounts,       //2^25 = 33554432
   PlayerCustomFlag_HasFullLight,         //2^26 = 67108864

   PlayerCustomFlag_LastFlag
};
Code:
PlayerCustomFlag_HideLevel,           //2^13 = 8192
This is the player flag to hide your level in our server.
Go into data/xml/groups.xml and remove the amount of 8192 from the custom flags
Code:
customFlags="2097151" -- old
customFlags="2088959" -- new
-- (2097151 - 8192 = 2088959)
Better yet, go through the flags and implement the flags you want for the players/tutors/senior tutors/gm/cm/god in your server.

Note: in our server a normal player has no flags attached to them.
Code:
  <group id="1" name="Player"/>

Good luck,

Xikini
 
If it's a problem with the player flags simply check const.h for the player flags available to your server.
for example,
Code:
enum PlayerCustomFlags
{
   PlayerCustomFlag_AllowIdle = 0,         //2^0 = 1
   PlayerCustomFlag_CanSeePosition,       //2^1 = 2
   PlayerCustomFlag_CanSeeItemDetails,       //2^2 = 4
   PlayerCustomFlag_CanSeeCreatureDetails,     //2^3 = 8
   PlayerCustomFlag_NotSearchable,         //2^4 = 16
   PlayerCustomFlag_GamemasterPrivileges,     //2^5 = 32
   PlayerCustomFlag_CanThrowAnywhere,       //2^6 = 64
   PlayerCustomFlag_CanPushAllItems,       //2^7 = 128
   PlayerCustomFlag_CanMoveAnywhere,       //2^8 = 256
   PlayerCustomFlag_CanMoveFromFar,       //2^9 = 512
   PlayerCustomFlag_CanUseFar,           //2^10 = 1024
   PlayerCustomFlag_CanLoginMultipleCharacters,//2^11 = 2048 (account flag)
   PlayerCustomFlag_CanLogoutAnytime,       //2^12 = 4096 (account flag)
   PlayerCustomFlag_HideLevel,           //2^13 = 8192
   PlayerCustomFlag_IsProtected,         //2^14 = 16384
   PlayerCustomFlag_IsImmune,           //2^15 = 32768
   PlayerCustomFlag_NotGainSkull,         //2^16 = 65536
   PlayerCustomFlag_NotGainUnjustified,     //2^17 = 131072
   PlayerCustomFlag_IgnorePacification,     //2^18 = 262144
   PlayerCustomFlag_IgnoreLoginDelay,       //2^19 = 524288
   PlayerCustomFlag_CanStairhop,         //2^20 = 1048576
   PlayerCustomFlag_CanTurnhop,         //2^21 = 2097152
   PlayerCustomFlag_IgnoreHouseRent,       //2^22 = 4194304
   PlayerCustomFlag_CanWearAllAddons,       //2^23 = 8388608
   PlayerCustomFlag_IsWalkable,         //2^24 = 16777216
   PlayerCustomFlag_CanUseAllMounts,       //2^25 = 33554432
   PlayerCustomFlag_HasFullLight,         //2^26 = 67108864

   PlayerCustomFlag_LastFlag
};
Code:
PlayerCustomFlag_HideLevel,           //2^13 = 8192
This is the player flag to hide your level in our server.
Go into data/xml/groups.xml and remove the amount of 8192 from the custom flags
Code:
customFlags="2097151" -- old
customFlags="2088959" -- new
-- (2097151 - 8192 = 2088959)
Better yet, go through the flags and implement the flags you want for the players/tutors/senior tutors/gm/cm/god in your server.

Note: in our server a normal player has no flags attached to them.
Code:
  <group id="1" name="Player"/>

Good luck,

Xikini
Perfect.
Many thanks to everyone who tried to help me, I learned a lot. Very grateful.

Xikini thx.
 
Back
Top