• 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+ Tfs 1.2. How can i change speed initial and base speed for lvl?

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
Hello, I'm using tfs 1.2.
I need to change the initial speed of character level 8 (raise it slightly).
And also change the base speed, to gain less speed when upar level, where can I find the files to modify?
Thankful!
 
You can change this in player.h
C++:
        }
        void updateBaseSpeed() {
            if (!hasFlag(PlayerFlag_SetMaxSpeed)) {
                baseSpeed = vocation->getBaseSpeed() + (2 * (level - 1));
            } else {
                baseSpeed = PLAYER_MAX_SPEED;
            }
and the basespeed in TFS 1.2 I think its based on vocations so you'll find it on vocations.xml, should look like this
XML:
basespeed="220
 
Or you can do that changing the formula, onLogin

Like setplayerspeed(Cid, your fórmula)
And make the same on advancedlvl for update it if you dont want rebuild all every time you change fórmula.
 
Back
Top