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

Dont drop single slot item

Find in player.cpp
Code:
        Item* item = NULL;
        for(int32_t i = SLOT_FIRST; ((skillLoss || lootDrop == LOOT_DROP_FULL) && i < SLOT_LAST); ++i)
        {
            if(!(item = getInventoryItem((slots_t)i)) || (g_moveEvents->hasEquipEvent(item)
                && !isItemAbilityEnabled((slots_t)i)))
                continue;

            const ItemType& it = Item::items[item->getID()];
            if(lootDrop == LOOT_DROP_FULL && it.abilities.preventDrop)
            {
                setDropLoot(LOOT_DROP_PREVENT);
                preventDrop = item;
            }

            if(skillLoss && !preventLoss && it.abilities.preventLoss)
                preventLoss = item;
        }
there is a way to do something like if getInventoryItem == itemid set inventory item prevent drop ?
 
Back
Top