Class ModuleEvents.OnAcquireItem
Triggered whenever an NwItem is added to NwGameObject inventory.
public sealed class ModuleEvents.OnAcquireItem : IEvent
- Inheritance
-
ModuleEvents.OnAcquireItem
- Implements
- Inherited Members
- Extension Methods
Remarks
This event fires for all items when a player connects to the server, in addition to item/inventory interactions while playing.
It will also fire for characters failing ELC. In this case, it is recommended to do an early return in your event handler by checking if Item is null.
Constructors
Properties
- AcquiredBy
Gets the NwGameObject that acquired the NwItem.
- AcquiredFrom
Gets the NwGameObject that the NwItem was taken from.
- AmountAcquired
Gets the number of items in the item stack that were just acquired.