• 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+ Login error

liqeen

Active Member
Joined
Nov 26, 2014
Messages
151
Solutions
1
Reaction score
30
Location
Poland
Can some1 help me with this error? It happens everytime when im trying to log in on every character..
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/others/login.lua:onLogin
data/creaturescripts/scripts/others/login.lua:233: attempt to call method 'setBaseXpGain' (a nil value)
stack traceback:
        [C]: in function 'setBaseXpGain'
        data/creaturescripts/scripts/others/login.lua:233: in function <data/creaturescripts/scripts/others/login.lua:84

Lines that causes this problem :
Code:
    local staminaMinutes = player:getStamina()
    local Boost = player:getExpBoostStamina()
    if staminaMinutes > 2400 and player:isPremium() and Boost > 0 then
        player:setBaseXpGain(Game.getExperienceStage(player:getLevel())*2) -- 200 = 1.0x, 200 = 2.0x, ... premium account

    elseif staminaMinutes <= 2400 and staminaMinutes > 840 and player:isPremium() and Boost > 0 then
        player:setBaseXpGain(Game.getExperienceStage(player:getLevel())*1.5) -- 150 = 1.5x        premium account
    elseif staminaMinutes > 2400 and player:isPremium() and Boost <= 0 then
        player:setBaseXpGain(Game.getExperienceStage(player:getLevel())*1.5) -- 150 = 1.0x, 150 = 1.5x, ... premium account
    elseif staminaMinutes > 840 and Boost > 0 then
        player:setBaseXpGain(Game.getExperienceStage(player:getLevel())*1.5) -- 150 = 1.5x        free account
    elseif staminaMinutes <= 840 and Boost > 0 then
        player:setBaseXpGain(Game.getExperienceStage(player:getLevel())*1) -- 50 = 0.5x    all players
    elseif staminaMinutes <= 840 then
        player:setBaseXpGain(Game.getExperienceStage(player:getLevel())*0.5) -- 50 = 0.5x    all players
    end

    return true
end
 
Solution
Well i just downloaded that server and that was already implemented, didnt realize I could just delete it and it will works xD
Btw I dont want to create another subject so i will ask here, I add 3 slots to umbra master chopper in items.xml but i still cant imbued this item.. it opens the imbuing machine but there is nothing inside there not even a single imbuiment. How can I do it to show there any imbuiments?
And also is it possible to change the max speed of character without compiling server again?
if you have different problems you should create separate threads, since they don't belong in this one because the problem is completely different
did you install some new system or something that this function would belong to?
Well i just downloaded that server and that was already implemented, didnt realize I could just delete it and it will works xD
Btw I dont want to create another subject so i will ask here, I add 3 slots to umbra master chopper in items.xml but i still cant imbued this item.. it opens the imbuing machine but there is nothing inside there not even a single imbuiment. How can I do it to show there any imbuiments?
 
Well i just downloaded that server and that was already implemented, didnt realize I could just delete it and it will works xD
Btw I dont want to create another subject so i will ask here, I add 3 slots to umbra master chopper in items.xml but i still cant imbued this item.. it opens the imbuing machine but there is nothing inside there not even a single imbuiment. How can I do it to show there any imbuiments?

And also is it possible to change the max speed of character without compiling server again?
 
Well i just downloaded that server and that was already implemented, didnt realize I could just delete it and it will works xD
Btw I dont want to create another subject so i will ask here, I add 3 slots to umbra master chopper in items.xml but i still cant imbued this item.. it opens the imbuing machine but there is nothing inside there not even a single imbuiment. How can I do it to show there any imbuiments?
And also is it possible to change the max speed of character without compiling server again?
if you have different problems you should create separate threads, since they don't belong in this one because the problem is completely different
 
Solution
Back
Top