• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Is it posible?

Werewolf

Forbidden Ascension
Joined
Jul 15, 2012
Messages
886
Reaction score
123
Is it imposable to stop the speed increase from leveling up?

I want to stop the speed increase from getting higher levels, If possible how do you do it?
 
player.h, Player::updateBaseSpeed, anything u want to do, it's right place for it
or
lua solution: doChangeSpeed(cid, delta)

however I don't know what exactly u want to do.
 
Just want them to not gain anymore speed When leveling, so everyone is the same speed. no matter what level they are.

- - - Updated - - -

Does anyone know how?

Also i cant find this Player.h

Its not in my server files, im using 0.3.6 8.54
 
Last edited:
u need to download sourcers of 0.3.6, next open player.h
find
Code:
 void updateBaseSpeed()
                {
                        if(!hasFlag(PlayerFlag_SetMaxSpeed))
                                baseSpeed = vocation->getBaseSpeed() + (2 * (level - 1));
                        else
                                baseSpeed = SPEED_MAX;
                }
and change it to something like this
Code:
 void updateBaseSpeed()
                {
                       baseSpeed = /* delete this comment and add ur speed value*/;
                }
compile and done
 
do something like this:
LUA:
function onLogin(cid)
    doChangeSpeed(cid, delta)
    return true
end

and for level advance

LUA:
function onAdvance(cid, skill, oldLevel, newLevel)
    if skill == SKILL__LEVEL then
        doChangeSpeed(cid, delta)
    end
    return true
end

Remeber: change "delta" for you wanted speed
Remember2: add register for creature events in creatureevent.xml and login.lua.
 
Back
Top