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

Regeneration code

Hindori

New Member
Joined
Jan 24, 2009
Messages
157
Reaction score
2
I need a code which change my regeneration like this
managain= managain from vocations + mlvl * 5
I know is this function:
condition->setParam(CONDITIONPARAM_MANAGAIN, vocation->getManaGainAmount());
But when I edit it like this:
condition->setParam(CONDITIONPARAM_MANAGAIN, vocation->getManaGainAmount() + player->getMagicLevel() * 4);
I have a error:
player.cpp `player' was not declared in this scope

Ps: I'm using tfs 0.3.4pl2(tibia 8.42)
 
Hmm, how i can do it? Becouse when I did this in c++ like
condition->setParam(CONDITIONPARAM_MANAGAIN, vocation->getManaGainAmount() + getMagicLevel() * 4);
there are no refresh when i get next mlvl.
 
Relog after advance...
or add script in lua onAdvance that change your promotion level 2 times (up and down) to reload conditons (I'm not sure if it works) ;)
 
Back
Top