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

TFS 0.4 How remove HP limit for monsters?

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
47
Hi, i have question how i can remove hp limit for monsters? I will change it:

  1. health = (int32_t)(mType->health * multiplier);
  2. healthMax = (int32_t)(mType->healthMax * multiplier);

to

  1. health = (int64_t)(mType->health * multiplier);
  2. healthMax = (int64_t)(mType->healthMax * multiplier);

But it not work ;/
 

And i get it

Code:
make  all-am
make[1]: Entering directory '/home/bl'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1 -O2 -fo                                                                                        mit-frame-pointer -D__USE_MYSQL__   -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REEN                                                                                        TRANT -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-array-bounds                                                                                         -pthread -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o acti                                                                                        ons.cpp
In file included from actions.cpp:23:0:
player.h:492:19: error: conflicting return type specified for ‘virtual int32_t P                                                                                        layer::getMaxHealth() const’
   virtual int32_t getMaxHealth() const {return getPlayerInfo(PLAYERINFO_MAXHEAL
                   ^
In file included from player.h:23:0,
                 from actions.cpp:23:
creature.h:255:19: error:   overriding ‘virtual int64_t Creature::getMaxHealth()                                                                                         const’
   virtual int64_t getMaxHealth() const {return healthMax;}
                   ^
In file included from actions.cpp:23:0:
player.h:493:19: error: conflicting return type specified for ‘virtual int32_t P                                                                                        layer::getMaxMana() const’
   virtual int32_t getMaxMana() const {return getPlayerInfo(PLAYERINFO_MAXMANA);
                   ^
In file included from player.h:23:0,
                 from actions.cpp:23:
creature.h:257:19: error:   overriding ‘virtual int64_t Creature::getMaxMana() c                                                                                        onst’
   virtual int64_t getMaxMana() const {return manaMax;}
                   ^
Makefile:547: recipe for target 'actions.o' failed
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory '/home/bl'
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2
 
Back
Top