Helliot1
Owner of Empire Online
- Joined
- Jul 26, 2017
- Messages
- 315
- Solutions
- 1
- Reaction score
- 60
I'm trying to edit the chance drop loot, and need some help!
If yes, I'm trying to edit the droploot and found it, I need delete this part? To remove that every player Red Skull will loss all items?
- First, normally always drop the backpack or some more item, but I want it to be a unique random item.
- Second, players red skull don't will drop all itens.
If yes, I'm trying to edit the droploot and found it, I need delete this part? To remove that every player Red Skull will loss all items?
LUA:
for i = CONST_SLOT_HEAD, CONST_SLOT_AMMO do
local item = player:getSlotItem(i)
if item then
if table.contains({SKULL_RED}, player:getSkull()) or math.random(item:isContainer() and 100 or 1000) <= player:getLossPercent() then
if not item:moveTo(corpse) then
item:remove()
end
end
end
end
Last edited: