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

(Source) How do i Edit Source for max health/mana increase

Wolffy

Active Member
Joined
Mar 29, 2009
Messages
282
Reaction score
29
I would like to know what to edit in the 8.6 tibia client to change the max mana/hp. i dont know where to find int32 and change it to int64
 
Bump*

Makefile.win [Build Error] [obj-debug//actions.o] Error 1
creature.h overriding `virtual int32_t Creature::getMaxMana() const'
\player.h conflicting return type specified for `virtual int64_t Player::getMaxMana() const'

Bump* I need help with this still is anyone willing to help me?????????

Can anyone help me work on this??

bump

Search for the data type of health, mana, maxHealth and maxMana in player class and change them to int64_t, also you need to edit the functions which use these values as parameters and finally you might also want to change the size of these fields in your database.


Can Someone help to explain me where to edit the functions at? and how?

Ok can someone tell me which files I would need to edit that's all I need to know now. I know must change int32_t to int64_t and I know how to do this just don't know where to do it at what files

Bump

bump

bump

bump

bump solution

Anyone have a solution for this? can u please post a link?
 
Last edited by a moderator:
bump solution

The solution has already been given, no one said it would be fun or easy.
There are others threads on otland with the exact same "bug" if you want more info, there are plenty of them to change.
 
Must admit I have never done this, but it's very evident what the problem is, according to the debug message
Code:
Makefile.win [Build Error] [obj-debug//actions.o] Error 1
creature.h overriding `virtual int32_t Creature::getMaxMana() const'
\player.h conflicting return type specified for `virtual int64_t Player::getMaxMana() const'

I wouldn't be surprised if there were plenty more of places containing the defining type for max mana and health, but at first you need to find the line `virtual int32_t Creature::getMaxMana() const` in creature.h, and change it to virtual int64_t~

Then tell us what will happen :)

Ignazio
 
Not sure but I think it might be necessary to change the health and mana info in your database also....Change it to be like the exp instead of int(11) make it like bigint(20) this could be the problem.
 
If someone else gets this error dont forget to fix the ---->> Creature.h

from
virtual int32_t getHealth() const {return health;}
virtual int32_t getMaxHealth() const {return healthMax;}
virtual int32_t getMana() const {return mana;}
virtual int32_t getMaxMana() const {return manaMax;}

to:
virtual int64_t getHealth() const {return health;}
virtual int64_t getMaxHealth() const {return healthMax;}
virtual int64_t getMana() const {return mana;}
virtual int64_t getMaxMana() const {return manaMax;}
 
If someone else gets this error dont forget to fix the ---->> Creature.h

from
virtual int32_t getHealth() const {return health;}
virtual int32_t getMaxHealth() const {return healthMax;}
virtual int32_t getMana() const {return mana;}
virtual int32_t getMaxMana() const {return manaMax;}

to:
virtual int64_t getHealth() const {return health;}
virtual int64_t getMaxHealth() const {return healthMax;}
virtual int64_t getMana() const {return mana;}
virtual int64_t getMaxMana() const {return manaMax;}
When i change it it's give me error in changemana and when i change changemaxmana it's give me error in block hit .. and more and more
 
Back
Top