• 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)
 
Try this. You are already in player class so the player is defined and you can call the function
[cpp]condition->setParam(CONDITIONPARAM_MANAGAIN, vocation->getManaGainAmount() + getMagicLevel() * 4); [/cpp]
 
Back
Top