Help with the limits of magic lvl

zcorpy

Member
Joined
Sep 12, 2017
Messages
72
Reaction score
2
Help with the limits of magic lvl, the magic level limit is 156 I want this to change and the new limit is 220 how can I do that? please help
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,379
Reaction score
1,963
you can't do this in vanilla tibia client
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,379
Reaction score
1,963
i personally can't help with this because i don't use otclient but you could use otclient for your server and customize it
perhaps go to the otclient board and see if somebody there can help you out if you decide to use it
 
OP
Z

zcorpy

Member
Joined
Sep 12, 2017
Messages
72
Reaction score
2
i personally can't help with this because i don't use otclient but you could use otclient for your server and customize it
perhaps go to the otclient board and see if somebody there can help you out if you decide to use it
well thank you very much
 

Okke

Voidcore 7.4
Joined
Jul 19, 2015
Messages
885
Reaction score
405
Location
germany
Hello there Zcorpy,

a little more detailed information might be needed to help you in this particular case if you wish to continue using the vanilla client. If you change to OTClient you won't have this problem anymore.

As far as I know the magic level is saved in the client either as an unsigned char (which values go from 0 to 255) or an unsigned short (which goes from 0 to 65,535) so the max value cannot be 156. You might consider checking the sources of your server first....

Regards,
Okke
 
OP
Z

zcorpy

Member
Joined
Sep 12, 2017
Messages
72
Reaction score
2
Hello there Zcorpy,

a little more detailed information might be needed to help you in this particular case if you wish to continue using the vanilla client. If you change to OTClient you won't have this problem anymore.

As far as I know the magic level is saved in the client either as an unsigned char (which values go from 0 to 255) or an unsigned short (which goes from 0 to 65,535) so the max value cannot be 156. You might consider checking the sources of your server first....

Regards,
Okke
okay thank you very much

taking advantage of the topic, before to create an own customer of an ot I used vapus.net but now it does not work anymore, do you have any to be able to create a custom client?
 

Okke

Voidcore 7.4
Joined
Jul 19, 2015
Messages
885
Reaction score
405
Location
germany
Hi again,

Well, you should at least learn a little bit of Hex-Editing a client (google for how to do it - not specifically for a tibia client, but how to edit binaries with a hex-editor).

Regards,
Okke
 

Madzix

Member
Joined
Sep 8, 2016
Messages
56
Reaction score
61
Actually client have no problem to show magic level up to 255 your problem might the uint64_t limit of mana spent.
You can use the boost multiprecision uint128_t or change the formula(so that players advance in magic level faster) which I assume look like this
Code:
(uint64_t)(1600 * std::pow(formulaMultipliers[MULTIPLIER_MANA], (float)(magLevel - 1)));
 
OP
Z

zcorpy

Member
Joined
Sep 12, 2017
Messages
72
Reaction score
2
Actually client have no problem to show magic level up to 255 your problem might the uint64_t limit of mana spent.
You can use the boost multiprecision uint128_t or change the formula(so that players advance in magic level faster) which I assume look like this
Code:
(uint64_t)(1600 * std::pow(formulaMultipliers[MULTIPLIER_MANA], (float)(magLevel - 1)));
i have sqlite tfs 0.3.6 where is line?
 

Okke

Voidcore 7.4
Joined
Jul 19, 2015
Messages
885
Reaction score
405
Location
germany
It's in the sources, you have to edit them and re-compile the server.
 
Top