AuraStore
Properties
Section titled “Properties”monsterAuras Getter
Section titled “monsterAuras ”Type: Map<string, StoredAura[]>`
playerAuras Getter
Section titled “playerAuras ”Type: Map<number, StoredAura[]>`
Methods
Section titled “Methods”addMonsterAura static
Section titled “addMonsterAura ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string | |
| aura | Aura |
Returns: void
addPlayerAura static
Section titled “addPlayerAura ”Adds an aura to a player by entID.
| Parameter | Type | Description |
|---|---|---|
| entId | number | The player’s entity ID. |
| aura | Aura | The aura to add. |
Returns: void
clear static
Section titled “clear ”Returns: void
clearMonsterAuras static
Section titled “clearMonsterAuras ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string |
Returns: void
clearPlayerAuras static
Section titled “clearPlayerAuras ”Clears all auras for a player by entID.
| Parameter | Type | Description |
|---|---|---|
| entId | number | The player’s entity ID. |
Returns: void
getMonsterAura static
Section titled “getMonsterAura ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string | |
| auraName | string |
Returns: StoredAura | undefined
getMonsterAuras static
Section titled “getMonsterAuras ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string |
Returns: StoredAura[]
getPlayerAura static
Section titled “getPlayerAura ”| Parameter | Type | Description |
|---|---|---|
| username | string | |
| auraName | string |
Returns: StoredAura | undefined
getPlayerAuras static
Section titled “getPlayerAuras ”Gets a player’s auras by username.
| Parameter | Type | Description |
|---|---|---|
| username | string | The player’s username. |
Returns: StoredAura[]
getPlayerEntId static
Section titled “getPlayerEntId ”Gets a player’s entID by username.
| Parameter | Type | Description |
|---|---|---|
| username | string | The player’s username. |
Returns: number | undefined
hasMonsterAura static
Section titled “hasMonsterAura ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string | |
| auraName | string |
Returns: boolean
hasPlayer static
Section titled “hasPlayer ”Checks if a player is registered for aura tracking.
| Parameter | Type | Description |
|---|---|---|
| username | string | The player’s username. |
Returns: boolean
hasPlayerAura static
Section titled “hasPlayerAura ”| Parameter | Type | Description |
|---|---|---|
| username | string | |
| auraName | string |
Returns: boolean
refreshMonsterAura static
Section titled “refreshMonsterAura ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string | |
| aura | Aura |
Returns: void
refreshPlayerAura static
Section titled “refreshPlayerAura ”Refreshes an aura on a player by entID.
| Parameter | Type | Description |
|---|---|---|
| entId | number | The player’s entity ID. |
| aura | Aura | The aura to refresh. |
Returns: void
registerPlayer static
Section titled “registerPlayer ”Registers a player’s entID for aura tracking.
| Parameter | Type | Description |
|---|---|---|
| username | string | The player’s username. |
| entId | number | The player’s entity ID. |
Returns: void
removeMonsterAura static
Section titled “removeMonsterAura ”| Parameter | Type | Description |
|---|---|---|
| monMapId | string | |
| auraName | string |
Returns: void
removePlayerAura static
Section titled “removePlayerAura ”Removes an aura from a player by entID.
| Parameter | Type | Description |
|---|---|---|
| entId | number | The player’s entity ID. |
| auraName | string | The name of the aura to remove. |
Returns: void
unregisterPlayer static
Section titled “unregisterPlayer ”Unregisters a player from aura tracking.
| Parameter | Type | Description |
|---|---|---|
| username | string | The player’s username. |
Returns: void