Anvil
|
Triggered whenever an NwItem is added to NwGameObject inventory. More...
Properties | |
NwGameObject? | AcquiredBy = NWScript.GetModuleItemAcquiredBy().ToNwObject<NwGameObject>() [get] |
Gets the NwGameObject that acquired the NwItem. More... | |
NwGameObject? | AcquiredFrom = NWScript.GetModuleItemAcquiredFrom().ToNwObject<NwGameObject>() [get] |
Gets the NwGameObject that the NwItem was taken from. More... | |
int | AmountAcquired = NWScript.GetModuleItemAcquiredStackSize() [get] |
Gets the number of items in the item stack that were just acquired. More... | |
NwItem? | Item = NWScript.GetModuleItemAcquired().ToNwObject<NwItem>() [get] |
Gets the NwItem that triggered the event. More... | |
Properties inherited from Anvil.API.Events.IEvent | |
NwObject? | Context [get] |
Triggered whenever an NwItem is added to NwGameObject inventory.
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.
|
get |
Gets the NwGameObject that acquired the NwItem.
|
get |
Gets the NwGameObject that the NwItem was taken from.
|
get |
Gets the number of items in the item stack that were just acquired.
|
get |
Gets the NwItem that triggered the event.
This property will return null when a character fails ELC. It is recommended to do an early exit if this is null.