• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Change Player Drop Loot!

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!
  • 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.
Then, I need edit only the droploot.lua ?

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:
if you delete
Code:
table.contains({SKULL_RED}, player:getSkull()) or

then redskulled players will have the same chance as non blessed/non aoled players to lose items :p


u can fix this
  • First, normally always drop the backpack or some more item, but I want it to be a unique random item
inside the same file tooo,, but idk what u mean really else i would fix it
 
Back
Top