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

What the hell is going on?! Players are loosing their levels and vocations!

Mitsuri

日本人だ
Joined
Sep 14, 2008
Messages
34
Reaction score
1
Location
茅ヶ崎「神奈川県」, Japan
I've got TFS 0.3.5 and my players often lose their statistics (level, mag level and skills go to 1 or 0) or vocation (for example from mage to no vocation)! It all happens after the death!

What is going on ?!
 
You need to update your creaturescripts folder to the 0.3.5 one instead of ur old 0.3.4..

And the problem lies in the login.lua file if im not wrong.
 
no no i have the same problem and solved by doing this

in data/XML/vocations.xml
you willfind this in every vocation

Code:
gainsoulticks="15" fromvoc="2" lessloss="30">

delete this lessloss"30" so it will be

Code:
gainsoulticks="15" fromvoc="2">

do it in the promoted vocations royal/elite/master/elder

if losing lvl happening sometimes so this is the solution

if it happening all the time so goto phpmyadmin then go to players table and change the samepls save to 1


Rep++ if it helped you :)
 
no no i have the same problem and solved by doing this

in data/XML/vocations.xml
you willfind this in every vocation

Code:
gainsoulticks="15" fromvoc="2" lessloss="30">
delete this lessloss"30" so it will be

Code:
gainsoulticks="15" fromvoc="2">
do it in the promoted vocations royal/elite/master/elder

if losing lvl happening sometimes so this is the solution

if it happening all the time so goto phpmyadmin then go to players table and change the samepls save to 1


Rep++ if it helped you :)
sux way... bless+promotion+normalloss >= 0 just check your default loss ... and update your login.lua..
 
Players with promotion keep losing level and skills ... furthermore, NO ONE is losing items when dieing ...

In database, each player has "loss_experience", "loss_mana", "loss_items", "loss_skills", "loss_containers" set to 10 ... I removed "less_loss = 30" from vocations.xml, but it is still not working ...
 
when you changed all those things, can you make a new char and see if it still happens to the new char you've created. Cheers
 
The thing is that it doesn't happen all the time. It happens SOMETIMES ... this is the point of my problem ... if it would happen everytime, then changes would come easily. However, after these changes, players still having promotion, after death (one from the row) went to level 1 with 0 skills.

PS:
I need to say that TFS 0.3.5 is the most bugged. Now I discovered, that there is enabled items COPYING ... >_<

PS:
This is my login.lua, for those who say to me to update it.

function Shine(cid)
pos = getPlayerPosition(cid)
doSendMagicEffect(pos, 28)
addEvent(Shine,2000,cid)
end

function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do
doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))
end
end

if (getPlayerStorageValue(cid,11091) > -1) then
addEvent(Shine, 2000, cid)
end

registerCreatureEvent(cid, "PlayerDeath")

-- CUSTOM EVENTS
registerCreatureEvent(cid, "AncientAura")
registerCreatureEvent(cid, "EF_Bosses")
registerCreatureEvent(cid, "getFromShop")
registerCreatureEvent(cid, "BloodLustDagger")

return TRUE
end
 
@up ..
and why the heck didnt u update it yet?...
default one...
Lua:
local config = {
    loginMessage = getConfigValue('loginMessage')
}

function onLogin(cid)
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
    end

    local accountManager = getPlayerAccountManager(cid)
    if(accountManager == MANAGER_NONE) then
        local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
        if(lastLogin > 0) then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
            str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
        else
            str = str .. " Please choose your outfit."
            doPlayerSendOutfitWindow(cid)
        end

        doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
    elseif(accountManager == MANAGER_NAMELOCK) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
    elseif(accountManager == MANAGER_ACCOUNT) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
    end

    if(not isPlayerGhost(cid)) then
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
    end

    registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "GuildMotd")
    registerCreatureEvent(cid, "Idle")
    registerCreatureEvent(cid, "SkullCheck")
    registerCreatureEvent(cid, "ReportBug")
    return true
end
 
Back
Top