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

Skill/Hp Display Limit

Chrollo Ollorhc

New Member
Joined
Mar 21, 2020
Messages
6
Reaction score
0
How can I lift the limit for Hp/Mana and Skills display? For hp it is 65535 and for skill it is 256. If I have 80k hp I want to see 80k not 65k same with skills.
I tried to change uint8_t to uint16_t in player.h but it didnt work for skills.
I'm using tfs 1.3 and otclient
 
You would have to change it in both the server and the client. And it would be inside game protocol, or something it calls upon, since that's what communicates between client and server. Lets look!

In the server:
Seems to deal in percentages ProtocolGame::sendCreatureHealth
Ditto ProtocolGame::AddCreature
Ah, here we go: ProtocolGame::AddPlayerStats

In the client:
ProtocolGame :: ParsePlayerStats

The skill packet generators are the very next function in both server and client.

You should be able to figure out the rest from here. Don't forget to available yourself of the 👍
 
Last edited:
You would have to change it in both the server and the client. And it would be inside game protocol, or something it calls upon, since that's what communicates between client and server. Lets look!

In the server:
Seems to deal in percentages ProtocolGame::sendCreatureHealth
Ditto ProtocolGame::AddCreature
Ah, here we go: ProtocolGame::AddPlayerStats

In the client:
ProtocolGame :: ParsePlayerStats

The skill packet generators are the very next function in both server and client.

You should be able to figure out the rest from here. Don't forget to available yourself of the 👍
Thank you for the response!

I am encountering an issue with this solution. Whenever I do the data type change on the client (Version 10.98) the display breaks and the values go up exponentially (Image 1). Am I doing something wrong? Is there a way to do it properly for this version? I have tried the game features option (Image 2) and the protocol parse cpp file (Image 3).

Thanks in advance.
 

Attachments

  • Image 1 - game display.png
    Image 1 - game display.png
    2.4 MB · Views: 21 · VirusTotal
  • Image 2 - game features.png
    Image 2 - game features.png
    2.2 KB · Views: 20 · VirusTotal
  • Image 3 - protocol parse.png
    Image 3 - protocol parse.png
    38 KB · Views: 21 · VirusTotal
Back
Top