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

Ranks

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
806
Solutions
18
Reaction score
350
Hello,

Is it possible to make rank images (for players with acces 1,2 etc) over our character name?

yi0egb.jpg


Best regards,
margoh.
 
Sure, it's possible.
You can edit it in creature.cpp, function:
PHP:
void Creature::drawInformation(const Point& point, bool useGray, const Rect& parentRect, int drawFlags)
 
So i have to put this into creature.cpp and that's all?
 
You have to send information about rank of players by game protocol. Next, you have to storage this variable in otclient - probably you need to create new variable and two functions (getVarName and setVarName). If ranks work only for player, you should add this to player.h - if not, you should add this to creature.h.

In above function you have to draw this information over character name. It needs knowledge about c++.
 
Back
Top