• 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!

Lua Exp stage othire not working

Onimusha

Advanced OT User
Joined
Dec 6, 2008
Messages
257
Reaction score
156
Location
Japan
GitHub
all
my othire GitHub - TwistedScorpio/OTHire: OpenTibia Server for Tibia 7.72
is not working when I set exp_stage as true in config.lua
anyone knows how a enable it?

i'have create a exp_stages.lua in data folder but not working
stages = {
{minLevel = 1, maxLevel = 10, multiplier = 99},
{minLevel = 11, maxLevel = 20, multiplier = 50},
{minLevel = 21, maxLevel = 50, multiplier = 35},
{minLevel = 51, maxLevel = 100, multiplier = 15},
{minLevel = 101, maxLevel = 150, multiplier = 10},
{minLevel = 151, maxLevel = 99999, multiplier = 5}
}
 
my othire GitHub - TwistedScorpio/OTHire: OpenTibia Server for Tibia 7.72
is not working when I set exp_stage as true in config.lua
anyone knows how a enable it?

i'have create a exp_stages.lua in data folder but not working
stages = {
{minLevel = 1, maxLevel = 10, multiplier = 99},
{minLevel = 11, maxLevel = 20, multiplier = 50},
{minLevel = 21, maxLevel = 50, multiplier = 35},
{minLevel = 51, maxLevel = 100, multiplier = 15},
{minLevel = 101, maxLevel = 150, multiplier = 10},
{minLevel = 151, maxLevel = 99999, multiplier = 5}
}
Make sure it's in data/lib/exp_stages.lua, otherwise you can change the directory in your lib.lua.
 
yeah i've did it but it is not working
when i tried to killed some creature I received the no-stage exp.
Well I would assume something is going wrong here in login.lua.

Lua:
    --Register the Stage event
    if getBooleanFromString(getConfigInfo("experience_stages"), false) then
        registerCreatureEvent(cid, "ExpStage")
        checkStageChange(cid)
    end

You could change the default value to true in this function but it would probably be best to add some print functions inside your lib/functions.lua for getBooleanFromString to identify what's actually going wrong.
 
Back
Top