Hi,
how can i get the Items from a DroppedItemContainer?
private object OnLootEntity(BasePlayer player, BaseEntity entity)
{
if (player.IPlayer.HasPermission("ExelLoot.use"))
{
Puts(entity.PrefabName);
if (_config.MonitorPrefabs.Contains(entity.PrefabName))
{
StorageContainer container = entity as StorageContainer;
Puts("Prefab: " + entity.PrefabName);
Puts("Typ: " + entity.GetType());
if (entity.PrefabName == "assets/prefabs/npc/scientist/scientist_corpse.prefab" || "assets/prefabs/misc/item drop/item_drop_backpack.prefab" == entity.PrefabName)
{
Puts("ist NPC");
if (entity.PrefabName == "assets/prefabs/npc/scientist/scientist_corpse.prefab")
{
LootableCorpse lootableCorpse = entity as LootableCorpse;
} else
{
DroppedItemContainer droppedItemContainer = entity as DroppedItemContainer;
I hope anyone can help me :)