Sakura77
New Member
- Joined
- May 28, 2015
- Messages
- 18
- Reaction score
- 2
I have a doubt here, I would like to know how to show the level of the player when they speak in the game, example http://prntscr.com/7c820z
Inside tibia client go to Options/console and check Show Levels in Console.
![]()
#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.
No is normal player. i test with all classes player, tutor gm cm e admin, but dont show level.is that a gm character? if I recall correctly, they don't display the level
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
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
};
PlayerCustomFlag_HideLevel, //2^13 = 8192
customFlags="2097151" -- old
customFlags="2088959" -- new
-- (2097151 - 8192 = 2088959)
<group id="1" name="Player"/>
Perfect.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 };This is the player flag to hide your level in our server.Code:PlayerCustomFlag_HideLevel, //2^13 = 8192
Go into data/xml/groups.xml and remove the amount of 8192 from the custom flags
Better yet, go through the flags and implement the flags you want for the players/tutors/senior tutors/gm/cm/god in your server.Code:customFlags="2097151" -- old customFlags="2088959" -- new -- (2097151 - 8192 = 2088959)
Note: in our server a normal player has no flags attached to them.
Code:<group id="1" name="Player"/>
Good luck,
Xikini