make loss percent 100 in configit's woooooooooooorking rep++++++ thank youuuuuuuuuu but you can make if the character die all items down at once like this
I don't found droploot.lua, Here's playerdeath.luashow us creaturescripts/droploot.lua
if you dont have it then playerdeath.lua
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!
I just want to solve this issue not more Don't talk about things that have no value do what you can is that websiteHe 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
iam sorry okay no proplem move my postI 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 got this error in consoleyou dont even need source changes
in login.luaLua:if not getPlayerBlessing(cid, 6) then for i = 1, 6 do doPlayerAddBlessing(cid, i) end end
[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 functioni 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
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 youyou didnt put it under login function
change if not getPlayerBlessing(cid, 6) then to if not (getPlayerVocation(cid) == VOC_ID_HERE and getPlayerBlessing(cid, 6)) thenAh 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
if not (getPlayerVocation(cid) == 4 and getPlayerBlessing(cid, 6)) then
for i = 1, 6 do
doPlayerAddBlessing(cid, 6)
end
end
this not workingLua:if getPlayerVocation(cid) ~= 4 and not getPlayerBlessing(cid, 6) then for i = 1, 6 do doPlayerAddBlessing(cid, 6) end end
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?goto phpmyadmin and make then players table and make loss_containers default 0 and make new character and test..