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

TFS 1.X+ advancing level tfs 1.5 7.72 nekiro

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
882
Solutions
7
Reaction score
123
Location
Brazil
YouTube
caruniawikibr
hello, my players when leveling up the life and mana, I would like this not to happen can anyone help me?
 
Solution
Remove this and this

player.cpp, search
C++:
if (prevLevel != level)
remove
C++:
health = getMaxHealth();
mana = getMaxMana();

and search
C++:
if (oldLevel != level)
remove
C++:
health = getMaxHealth();
mana = getMaxMana();
hello, my players when leveling up the life and mana, I would like this not to happen can anyone help me?
Change the "gainhp" tag in vocations.xml for all vocations you want to change it for, same for mana, "gainmana", change them all to 0 if you don't want the voc gaining hp or mana when leveling up
 
i think he means restore hp and mana when level up
Are we sure? He didn't really make sense

my players when leveling up the life and mana, I would like this not to happen

I assumed he didn't want to gain life and mana , but I figured he meant max, not filling full hp on level, but I guess that might make more sense.
 
Remove this and this

player.cpp, search
C++:
if (prevLevel != level)
remove
C++:
health = getMaxHealth();
mana = getMaxMana();

and search
C++:
if (oldLevel != level)
remove
C++:
health = getMaxHealth();
mana = getMaxMana();
i think he could simply add a variable if classiceqipment slot that way he wont delte code and it will work like he wnt if he has that enabled.
 
Back
Top