• 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 0.4] Stamina Bug onDeath

Guizek69

New Member
Joined
Jul 14, 2020
Messages
10
Reaction score
3

That was perfect bro!

Although the fix is for OTX, in TFS 0.4 you just need to replace:

C++:
void Player::onCreatureDisappear(const Creature* creature, bool isLogout)
{
    Creature::onCreatureDisappear(creature, isLogout);
    if(creature != this)
        return;

    if(isLogout)
    {
        loginPosition = getPosition();
        lastLogout = time(NULL);
    }

for this:

C++:
void Player::onCreatureDisappear(const Creature* creature, bool isLogout)
{
    Creature::onCreatureDisappear(creature, isLogout);
    if(creature != this)
        return;
    
    lastLogout = time(NULL);   

    if(isLogout)
    {
        loginPosition = getPosition();
    }
 
Back
Top