Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Instance === :{{id|API|CanShowResetInstances}}() - Determine if player can reset instances at the moment. :{{id|API|GetBattlefieldInstanceExpiration}}() - Get shutdown timer for the battlefield instance. :{{id|API|GetBattlefieldInstanceInfo}}(index) - Get the instance ID for a battlefield. :{{id|API|GetBattlefieldInstanceRunTime}}() - In milliseconds, the time since battleground started (seems to be queried from server because it is not in sync with time()). :{{id|API|GetInstanceBootTimeRemaining}}() - Gets the time in seconds after which the player will be ejected from an instance. :{{id|API|GetInstanceInfo}}() - Gets informations about the current Instance :{{id|API|GetNumSavedInstances}}() - Gets the number of instances that the player is saved to. :{{id|API|GetSavedInstanceInfo}}(index) - Gets information about an instance that the player is saved to. :{{id|API|IsInInstance}}() - Returns 1 if the player is in an instance, as well as the type of instance (pvp, raid, etc.). :{{id|API|ResetInstances}}() - Reset instances. :{{id|API|GetDungeonDifficulty}}() - Returns the player's current Dungeon Difficulty setting (1-3). :{{id|API|SetDungeonDifficulty}}(difficulty) - Sets the player's Dungeon Difficulty setting (for the 5-man instances). :{{id|API|GetInstanceDifficulty}}() - Returns the current instance's Dungeon Difficulty (1-4, or 1 if player is not in an instance). :{{id|API|GetInstanceLockTimeRemaining}}() - Returns information about the instance lock timer for the instance the player is currently entering. :{{id|API|GetInstanceLockTimeRemainingEncounter}}(id) - Returns information about bosses in the instance the player is about to be saved to.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)