public static IList <LooterEntry> FindLooters(ILootable lootable, Character initialLooter) { List <LooterEntry> looterEntryList = new List <LooterEntry>(); LootMgr.FindLooters(lootable, initialLooter, (IList <LooterEntry>)looterEntryList); return((IList <LooterEntry>)looterEntryList); }
/// <summary>Generates loot for Items and GOs.</summary> /// <param name="lootable">The Object or Unit that is being looted</param> /// <returns>The object's loot or null if there is nothing to get or the given Character can't access the loot.</returns> public static ObjectLoot CreateAndSendObjectLoot(ILootable lootable, Character initialLooter, LootEntryType type, bool heroic) { Asda2Loot loot = initialLooter.LooterEntry.Loot; if (loot != null) { loot.ForceDispose(); } LootMgr.FindLooters(lootable, initialLooter); return(LootMgr.CreateLoot <ObjectLoot>(lootable, initialLooter, type, heroic, MapId.Silaris)); }