1. Home
  2. S-Inventory
  3. Customize
  4. Custom Events

Custom Events

For further customization, custom delegate events are available. They are called whenever something major happens. Here’s the current list of custom events:

Inventory Events:

OnPlayerOpenInventory()
OnPlayerCloseInventory()
OnPlayerAddItem(ItemObj)
OnPlayerDropItem(ItemObj)
OnPlayerUseInventoryItem(ItemObj)

Equipment Events:

OnPlayerOpenEquipment()
OnPlayerCloseEquipment()
OnPlayerEquipItem(ItemObj)
OnPlayerUnEquipItem(ItemObj)

SkillBar Events:

OnSkillBarAdd(ItemObj)
OnSkillBarRemove(ItemObj)
OnSkillBarItemUsed(ItemObj)

Container Events:

OnPlayerOpenContainer()
OnPlayerCloseContainer()

Item Group Events:

OnPlayerOpenItemGroup()
OnPlayerCloseItemGroup()

Vendor Events:

OnPlayerOpenVendor()
OnPlayerCloseVendor()
OnPlayerBuyItem(ItemObj)
OnPlayerSellItem(ItemObj)

Crafting Events:

OnPlayerOpenCrafting()
OnPlayerCloseCrafting()
OnPlayerCraftItem(ItemObj)

ItemObj holds all the information about the item: ItemObj.Name, ItemObj.Icon, ItemObj.Amount, ItemObj.EquipmentSlot, ItemObj.SkillBarSlot, ItemObj.Currency, etc.. You can see all these info in the “Item.cs” component.

Was this article helpful to you? Yes No

How can we help?