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

C++ [0.4] players do not lose aol or items after death

foulla

Member
Joined
Jun 26, 2016
Messages
78
Solutions
1
Reaction score
6
Good night otland
Can anyone help me in ot.
The players do not lose anything aol and any items or backpack after death
TFS 0.4
 
Solution
Prob a script which gives them blessing? or protection of lose on death?
Like AngeLOT told you, You might have any creaturescript which prevent loss or adding blessings, Search in your creaturescripts specially login.lua for these
Lua:
doSetCreatureDropLoot
doPlayerSetLossPercent
doPlayerAddBlessing
And also tell us what value you have in your config.lua
Lua:
deathLostPercent
Maybe paste this query too incase your server have wrong ones.
SQL:
UPDATE `players` SET `loss_experience` = 10;
UPDATE `players` SET `loss_mana` = 10;
UPDATE `players` SET `loss_skills` = 10;
UPDATE `players` SET `loss_containers` = 10;
UPDATE `players` SET `loss_items` = 10;
Prob a script which gives them blessing? or protection of lose on death?

Show us death.lua
death.lua
Lua:
function onPrepareDeath(cid, deathList)
    if isPlayer(cid) then
        if getPlayerLevel(cid) <= 1000 then
            return true
        end
    local exp = getPlayerExperience(cid)
        if getPlayerLevel(cid) <= 120000 and getPlayerLevel(cid) > 1000 then
            --local lost3 = math.floor(-exp*0.0000001/100)
            --doPlayerAddExperience(cid, -lost3)
            doPlayerSendTextMessage(cid, 22, "You have lost experience.")

        elseif getPlayerBlessing(cid, 1) == false then
            --doPlayerAddLevel(cid, 1000, true)
            doPlayerSendTextMessage(cid, 22, "You died without bless and lost lvls")
        end

        doCreatureSetPartyShield(cid,0)
        local store = getPlayerStorageValue(cid,47823)

        if type(store) == "number" then
        setPlayerStorageValue(cid,47823,store+1)
        setPlayerStorageValue(cid,23047)
        end

        if getPlayerStorageValue(cid,59463) == 1 then
            setPlayerStorageValue(cid,59463)
            setGlobalStorageValue(59955,-1)
        end


        --[[ if getPlayerLevel(cid) > getGlobalStorageValue(50511) then
            local paraStat = getParalyzeStatistics(getPlayerByName(getCreatureName(cid)))
            if paraStat then
            doPlayerSendTextMessage(getPlayerByName("Hitman"),20,parastat)
            for i = 1, #paraStat do
                local delay = paraStat[i].timepush-paraStat[i].timepara
                if (delay < 190) then
                        local file = io.open("data/scores/parabotters.txt", "a")
                        file:write("T: ".. os.date("[%dth] %X") .."N: ".. getCreatureName(cid) .."D: ".. delay .." O: ".. getPlayerNameByGUID(paraStat[i].id) .."\n")
                        file:close()
                end
            end
        end ]]--
    end
    return true
end
 
Prob a script which gives them blessing? or protection of lose on death?
Like AngeLOT told you, You might have any creaturescript which prevent loss or adding blessings, Search in your creaturescripts specially login.lua for these
Lua:
doSetCreatureDropLoot
doPlayerSetLossPercent
doPlayerAddBlessing
And also tell us what value you have in your config.lua
Lua:
deathLostPercent
Maybe paste this query too incase your server have wrong ones.
SQL:
UPDATE `players` SET `loss_experience` = 10;
UPDATE `players` SET `loss_mana` = 10;
UPDATE `players` SET `loss_skills` = 10;
UPDATE `players` SET `loss_containers` = 10;
UPDATE `players` SET `loss_items` = 10;
 
Solution
Hello there,

Don't forget that AoL has charges in 0.4, when you create one make sure to add ,1 to it. You're welcome.
Yours,
Okke, from the old TFS support :)
 
Like AngeLOT told you, You might have any creaturescript which prevent loss or adding blessings, Search in your creaturescripts specially login.lua for these
Lua:
doSetCreatureDropLoot
doPlayerSetLossPercent
doPlayerAddBlessing
And also tell us what value you have in your config.lua
Lua:
deathLostPercent
Maybe paste this query too incase your server have wrong ones.
SQL:
UPDATE `players` SET `loss_experience` = 10;
UPDATE `players` SET `loss_mana` = 10;
UPDATE `players` SET `loss_skills` = 10;
UPDATE `players` SET `loss_containers` = 10;
UPDATE `players` SET `loss_items` = 10;
Done 👍 😍
what about this
 
Back
Top