GetTotemInfo
functionguessedavailable in: camelot
Returns info for the specified totem.
function GetTotemInfo( slot: number): (boolean?, string?, number?, number?, number?, number?, number?)Parameters
| name | type | description |
|---|---|---|
slot | number | Index of the totem (Fire = 1 Earth = 2 Water = 3 Air = 4) |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | haveTotem | boolean? | True if you have the totem reagent in your bag (Earth Totem, Fire Totem, Water Totem, Air Totem). |
| 2 | totemName | string? | Name of the currently active totem. If there is no active totem for this slot, this value will apparently be an empty string ("") instead of nil. |
| 3 | startTime | number? | GetTime() value of when the totem started. |
| 4 | duration | number? | Duration (in seconds) of the currently active totem. |
| 5 | icon | number? | Path to the icon of the specified totem |
| 6 | modRate | number? | |
| 7 | spellID | number? |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Totem system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.