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

Items lose when die

Na Amigo

The crazy girl
Joined
Jun 5, 2017
Messages
254
Solutions
3
Reaction score
18
Location
Egypt
Hello i want make my vocations druid,sorcerer,knight,paladin if you die don't lose items or backpack down
like marlborow OT Thanks!
 
Solution
it's woooooooooooorking rep++++++ thank youuuuuuuuuu :rolleyes:;):oops: but you can make if the character die all items down at once like this
yWDmb4.png
make loss percent 100 in config
show us creaturescripts/droploot.lua
if you dont have it then playerdeath.lua
 
show us creaturescripts/droploot.lua
if you dont have it then playerdeath.lua
I don't found droploot.lua, Here's playerdeath.lua
Code:
function onDeath(cid, corpse, deathList)

--[[Death Channel
local strings = {""}
local t, position = 1, 1

local deathType = "killed"
local toSlain, toCrushed, toEliminated = 3, 9, 15

        if #deathList >= toSlain and #deathList < toCrushed then
                deathType = "slain"
        elseif #deathList >= toCrushed and #deathList < toEliminated then
                deathType = "crushed"
        elseif #deathList >= toEliminated then
                deathType = "eliminated"
        end

        for _, pid in ipairs(deathList) do
                if isCreature(pid) == true then
                        strings[position] = t == 1 and "" or strings[position] .. ", "
                        strings[position] = strings[position] .. getCreatureName(pid) .. ""
                        t = t + 1
                else
                        strings[position] = t == 1 and "" or strings[position] .. ", "
                        strings[position] = strings[position] .."a field item"
                        t = t + 1
                end
        end

        for i, str in ipairs(strings) do
                if(str:sub(str:len()) ~= ",") then
                        str = str .. "."
                end

                msg = getCreatureName(cid) .. " was " .. deathType .. " at level " .. getPlayerLevel(cid) .. " by " .. str
        end

        for _, oid in ipairs(getPlayersOnline()) do
                doPlayerSendChannelMessage(oid, "Death channel", msg, TALKTYPE_CHANNEL_O, CHANNEL_DEATH)
        end]]
       
    --[[Heart Reward
    if isPlayer(cid) then
        doSendMagicEffect(getCreaturePosition(cid), 0)
        local v = { killer_name = getCreatureName(deathList[1]), killer_level = getPlayerLevel(deathList[1]), target_name = getCreatureName(cid), target_level = getPlayerLevel(cid) }
        local reward = doAddContainerItem(corpse.uid, 5943, 1)
        doItemSetAttribute(reward, "description", "" .. (getPlayerSex(cid) == 0 and "She" or "He") .. " was killed at level " .. v.target_level .. " by " .. v.killer_name .. " who was level " .. v.killer_level .. " at the time. " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "[Unjustified]" or "[Justified]"))
        doItemSetAttribute(reward, "name", v.target_name .."'s Heart")
    end]]

    return true
end
 
HEEEEEEELP!

He told you what to do and you liked the post, so did you try?
If you ran into issues it's better to tell what those issues are insted of writing "HEEEEEEELP!"

If you want someone else to fix this for you report your own post and ask to get the thread moved to requests insted.
 
He told you what to do and you liked the post, so did you try?
If you ran into issues it's better to tell what those issues are insted of writing "HEEEEEEELP!"

If you want someone else to fix this for you report your own post and ask to get the thread moved to requests insted.
I just want to solve this issue not more Don't talk about things that have no value do what you can is that website
Interested in All thing about "TIBIA" move my post iam not the support lol
 
I just want to solve this issue not more Don't talk about things that have no value do what you can is that website
Interested in All thing about "TIBIA" move my post iam not the support lol

I asked if you wanted me to me this thread to requests, support is for people who need help to fix an issue, requests is for people who can't or don't wanna do it themselves.
He wrote what you needed to change / fix to make the players not lose any items.
 
I asked if you wanted me to me this thread to requests, support is for people who need help to fix an issue, requests is for people who can't or don't wanna do it themselves.
He wrote what you needed to change / fix to make the players not lose any items.
iam sorry okay no proplem move my post
I am a new member and I do not know how to move
 
you dont even need source changes
Lua:
if not getPlayerBlessing(cid, 6) then
    for i = 1, 6 do
        doPlayerAddBlessing(cid, i)
    end
end
in login.lua
 
you dont even need source changes
Lua:
if not getPlayerBlessing(cid, 6) then
    for i = 1, 6 do
        doPlayerAddBlessing(cid, i)
    end
end
in login.lua
i got this error in console
Code:
[3:28:24.008] [Error - CreatureScript Interface]
[3:28:24.009] data/creaturescripts/scripts/login.lua
[3:28:24.009] Description:
[3:28:24.010] (luaDoPlayerAddBlessing) Player not found
 
i got this error in console
Code:
[3:28:24.008] [Error - CreatureScript Interface]
[3:28:24.009] data/creaturescripts/scripts/login.lua
[3:28:24.009] Description:
[3:28:24.010] (luaDoPlayerAddBlessing) Player not found
you didnt put it under login function
 
Ah ok it's working nicee so i want make unique vocation if you don't Wear an aol All items and backpack down how? thanks rep++ for you
change if not getPlayerBlessing(cid, 6) then to if not (getPlayerVocation(cid) == VOC_ID_HERE and getPlayerBlessing(cid, 6)) then
 
it's not working it's like this or not
Code:
if not (getPlayerVocation(cid) == 4 and getPlayerBlessing(cid, 6)) then
    for i = 1, 6 do
        doPlayerAddBlessing(cid, 6)
    end
end
 
Last edited:
Lua:
if getPlayerVocation(cid) ~= 4 and not getPlayerBlessing(cid, 6) then
    for i = 1, 6 do
        doPlayerAddBlessing(cid, 6)
    end
end
 
goto phpmyadmin and make then players table and make loss_containers default 0 and make new character and test..
ok i made it how can i make new vocation if it didn't wear aol and die all items and backpack down from 1 die howwwww?
 
Back
Top