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

Monsters dont drop loot

UpInSmoke

Supreme Ruler
Joined
Nov 16, 2008
Messages
303
Reaction score
21
Hey just wondering why my monsters arent dropping any loot?
Premium support takes forever half the time... im using rev 3777 so if anyone knows a fix let me know ASAP please
 
Is this happening with normal characters or just GM/GOD characters? :p

Code:
  if(hasFlag(PlayerFlag_NotGenerateLoot))
     target->setDropLoot(LOOT_DROP_NONE);
 
Is this happening with normal characters or just GM/GOD characters? :p

Code:
  if(hasFlag(PlayerFlag_NotGenerateLoot))
     target->setDropLoot(LOOT_DROP_NONE);
both :( what would that be in? monster.cpp?

just looked in monster.cpp and i see this:
Code:
void Monster::pushCreatures(Tile* tile)
{
    CreatureVector* creatures = tile->getCreatures();
    if(!creatures)
        return;

    bool effect = false;
    Monster* monster = NULL;
    for(uint32_t i = 0; i < creatures->size(); ++i)
    {
        if((monster = creatures->at(i)->getMonster()) && monster->isPushable())
        {
            if(pushCreature(monster))
                continue;

            monster->setDropLoot(LOOT_DROP_NONE);
            monster->changeHealth(-monster->getHealth());
            if(!effect)
                effect = true;
        }
    }

    if(effect)
        g_game.addMagicEffect(tile->getPosition(), MAGIC_EFFECT_BLOCKHIT);
}
would that be why?
 
In the newer versions monsters don't drop bags anymore. So if i'm not wrong they removed that feature as well try making your server have 1 monster that only drops 1 item.
 
Back
Top