o.0, Really, backpacks drop is 100% ;] There is no loss_backpack;D
Thats what i say
But it would be just logical if i say lose_items = 0% that i would not lose my backpack too.
btw ive found out how to set lose in database ingame!
Just use:
doPlayerSetLossPercent(cid, lossType, newPercent)
lossType can be 0,1,2,3
if you will set it on Playerstart, just use the file "firstitems" and put the missing code in:
Code:
local firstItems =
{
2050,
2382
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
doPlayerSetLossPercent(cid, 0, 10) --- change 10 to your %
doPlayerSetLossPercent(cid, 1, 10) --- change 10 to your %
doPlayerSetLossPercent(cid, 2, 10) --- change 10 to your %
doPlayerSetLossPercent(cid, 3, 10) --- change 10 to your %
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
This way you will set the % just one time on the first login from the player
Baba
Virgel