bool status = true; CreatureEventList dropLootEvents = getCreatureEvents(CREATURE_EVENT_DROP_LOOT); for(CreatureEventList::iterator it = dropLootEvents.begin(); it != dropLootEvents.end(); ++it) if(!(*it)->executeDropLoot(this, corpse) && status) status = false; if(!status) return;