Hi,
I tried to change the health and mana in OTC to show up as 32 bit instead of 16bit. But when I compiled I get errors and the client just writes huge numbers as health and mana.
Here is the code bit I changed in "protocolgameparse.cpp":
Thanks for reading this and I hope someone can help me figure this out.
Kind regards, Berit.
I tried to change the health and mana in OTC to show up as 32 bit instead of 16bit. But when I compiled I get errors and the client just writes huge numbers as health and mana.
Here is the code bit I changed in "protocolgameparse.cpp":
Code:
if(g_game.getFeature(Otc::GameDoubleHealth)) {
health = msg->getU32();
maxHealth = msg->getU32();
} else {
health = msg->getU32();
maxHealth = msg->getU32();
}
Thanks for reading this and I hope someone can help me figure this out.
Kind regards, Berit.