diff --git a/SecondBotEvents/Services/InteractionService.cs b/SecondBotEvents/Services/InteractionService.cs index dad1b24..284f515 100644 --- a/SecondBotEvents/Services/InteractionService.cs +++ b/SecondBotEvents/Services/InteractionService.cs @@ -165,11 +165,17 @@ namespace SecondBotEvents.Services protected void BotInventoryAdd(object o, InventoryObjectAddedEventArgs e) { + InventoryItem F = (InventoryItem)e.Obj; Dictionary details = new Dictionary { { "itemname", e.Obj.Name }, { "itemuuid", e.Obj.UUID.ToString() }, + { "itemtype", F.AssetType.ToString() }, }; + if (master.EventsService.isRunning() == true) + { + master.EventsService.InventoryUpdateEvent(details); + } JsonOuputCleaner(details, "InventoryAdd"); } @@ -198,10 +204,6 @@ namespace SecondBotEvents.Services details["itemname"] = itm.Name; } } - if(master.EventsService.isRunning() == true) - { - master.EventsService.InventoryUpdateEvent(details); - } JsonOuputCleaner(details, "InventoryOffer"); }