Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API GetExtraBarIndex

From Wowpedia
Jump to: navigation, search

Returns the action bar page containing the extra bar/button.

extraPage = GetExtraBarIndex()

Returns

extraPage 
Number - index of the action bar page containing the extra action button.

Example

The following snippet prints out the name of your current extra button ability:

local extraPage = GetExtraBarIndex()
if HasExtraActionBar() then
 local slot = extraPage*12 + 11
 local action, id = GetActionInfo(slot)
 if action == "spell" then
  print("Your extra ability is: " .. GetSpellInfo(id))
 else
  print("The thing on your extra action button is not a spell. How odd.")
 end
else
 print("You don't have an extra bar at the moment.")
end

Patch history

Cataclysm Patch 4.3.0 (2011-11-29): Added.

See also