• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Reply to thread

Note: These changes can break your server, think twice before installing this!


TFS 1.x


This guide will show you how to break max skill,level,magic level in the sources.


open player.cpp


find

[code]

void Player::addExperience(Creature* source, uint64_t exp, bool sendText/* = false*/)

[/code]


remove

[code]

if (currLevelExp >= nextLevelExp) {

        //player has reached max level

        levelPercent = 0;

        sendStats();

        return;

    }

[/code]


find and remove

[code]

if (currLevelExp >= nextLevelExp) {

            //player has reached max level

            break;

        }

[/code]


find

[code]

void Player::addSkillAdvance(skills_t skill, uint64_t count)

[/code]


remove

[code]

if (currReqMana >= nextReqMana) {

        //player has reached max magic level

        return;

    }

[/code]


remove

[code]

if (currReqTries >= nextReqTries) {

        //player has reached max skill

        return;

    }

[/code]


find

[code]

void Player::addManaSpent(uint64_t amount)

[/code]


That's it your done.


Back
Top