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

Linux Player dies gets lvl 1 and skills 0

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
Then player dies he gets to lvl 1 and skills same to 0 , but that happens realy rarely but happens lol, any ideas what it can cause ?

Tfs:0.3.6 8.2V
Kind Regards
Lbtg
 
Last edited:
Without being able to see your code i'd say noone has even the slightest clue. But i bet it's some source edit or creature script, begin with checking ur creaturescripts related to death and/or login
 
the server you mean ? i think its causing something with demage dealt to player tht changes your character somehow...
 
So just to understand it right... When a player dies... every now and then he goes down to level 1 and 0 skills? what were his skills before death?
 
i dont realy know about skills but magic level goes to zero if the player has even 60 magic , aagain one guy was around 200-300 and died and got 1 lvl ^^strange shit and no bug no nothing unless im blind
 
here is my creaturescripts
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
    <event type="login" name="NonPvp" event="script" value="login.lua"/>
    <event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

    <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
    <event type="receivemail" name="Mail" event="script" value="mail.lua"/>
    <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
    <event type="death" name="death" script="death.lua"/>

    <event type="think" name="Idle" event="script" value="idle.lua"/>
    <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
    <event type="death" name="deathbroadcast" event="script" value="deathbroadcast.lua"/>
    <event type="advance" name="lvlup" event="script" value="lvlup.lua"/>
    <event type="kill" name="KillingInTheNameOf" event="script" value="KillingInTheNameOf.lua"/>
    <event type="death" name="Azerus" event="script" value="azerus.lua"/>
    <event type="Look" name="fraglook" event="script" value="fraglook.lua"/>
    <event type="death" name="MadDog" event="script" value="MadDog.lua"/>
    <event type="think" name="ZombieThink" event="script" value="zombie/onthink.lua"/>
    <event type="statschange" name="ZombieAttack" event="script" value="zombie/onattack.lua"/>
    <event type="death" name="ZombieDeath" event="script" value="zombie/ondeath.lua"/>
    <event type="login" name="CheckIP" event="script" value="bannedip.lua"/>
    <event type="death" name="slugee" event="script" value="donwep/slugee.lua"/>
    <event type="death" name="furiee" event="script" value="donwep/furiee.lua"/>
    <event type="death" name="Mutated Draken" event="script" value="donwep/Mutated Draken.lua"/>
    <event type="death" name="snake god essence" event="script" value="donwep/snakegod.lua"/>
    <event type="death" name="orn" event="script" value="magicalornament.lua"/>
    <event type="death" name="Devovorga" event="script" value="donwep/Devovorga.lua"/>
    <event type="death" name="Legendary Butterfly" event="script" value="lgpromot/Butterfly.lua"/>
    <event type="death" name="Tibia Bug" event="script" value="lgpromot/Snake.lua"/>
    <event type="death" name="Primitive" event="script" value="lgpromot/Plant.lua"/>
    <event type="login" name="expRate" event="script" value="extraExpRate.lua"/>
</creaturescripts>

and login

PHP:
local config = {
    loginMessage = getConfigValue('loginMessage')
}

function onLogin(cid)
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) and getPlayerVocation(cid) ~= 0 then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 11)
        doPlayerAddPremiumDays(cid, 2)
        setPlayerStorageValue(cid, 65535, -1)
        setPlayerStorageValue(cid, 788989, -1)

    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")
    registerCreatureEvent(cid, "StartSkills")
    registerCreatureEvent(cid, "death")
    registerCreatureEvent(cid, "lvlup")
    registerCreatureEvent(cid, "KillingInTheNameOf")
    registerCreatureEvent(cid, "fraglook")
     registerCreatureEvent(cid, "deathbroadcast")
    registerCreatureEvent(cid, 'pointsforlvl')
    registerCreatureEvent(cid, "ZombieAttack")
    registerCreatureEvent(cid, "CheckIP")
    return true
end

please someone help with it :(
 
Back
Top