Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

World of Warcraft API/Classic

Last wiki revision 2023-06-21

  • See Global functions/Classic for a complete list.
  • C_LFGList.IsLookingForGroupEnabled
  • C_StorePublic.HasPurchaseableProducts
  • CastingInfo - Returns the player's currently casting spell.
  • ChannelInfo - Returns the player's currently channeling spell.
  • GetFirstBagBankSlotIndex - Returns the index of the first bag slot within the bank container.
  • IsPlayerAttacking( unit ) - Returns if the player is melee attacking the specified unit.
  • ShowCloak( flag ) - Enables or disables display of your cloak.
  • ShowHelm( flag ) - Enables or disables display of your helm.
  • ShowingCloak - Returns if the player is showing his cloak.
  • ShowingHelm - Returns if the player is showing his helm.
  • UnitResistance( unit [, resistanceIndex] ) - Returns information about a unit's resistance.
  • C_Seasons.GetActiveSeason - Returns the ID of the season that is active on the current realm.
  • C_Seasons.HasActiveSeason - Returns true if the player is on a seasonal realm.
  • CanCancelAuction( index ) - Returns 1 if auction can be canceled.
  • CanSendAuctionQuery - Returns 1 if auction search button would be active, nil otherwise.
  • CancelAuction( index ) - Cancel the specified auction (on the "owner" list).
  • CancelSell - Clears the auction house listing queue, not creating any additional auctions.
  • ClickAuctionSellItemButton - Puts the currently 'picked up' item into the 'create auction' slot.
  • CloseAuctionHouse - Will close the AuctionFrame if opened.
  • GetAuctionDeposit( runTime, minBid, buyoutPrice [, itemCount, numStacks] ) - Calculate the deposit cost of posting the currently selected item.
  • GetAuctionHouseDepositRate - Returns the deposit rate (percentage) for the currently open auction house.
  • GetAuctionItemBattlePetInfo( type, index ) - Returns model details about the specified Battle Pet auction item.
  • GetAuctionItemInfo( type, index ) - Returns details about the specified auction item.
  • GetAuctionItemLink( type, index ) - Returns an itemLink for the specified auction item.
  • GetAuctionItemSubClasses( classID ) - Returns subcategories for the item category.
  • GetAuctionItemTimeLeft( type, index ) - Returns the time left status of the specified auction item.
  • GetAuctionSellItemInfo - Returns information about the current selling item (or nil if none selected).
  • GetAuctionSort
  • GetBidderAuctionItems( [page] ) - Query all auctions the player is bidding on (results accessed using GetAuctionItemInfo)
  • GetNumAuctionItems( type ) - Returns the size of the specified auction item list.
  • GetOwnerAuctionItems( [page] ) - Query all the player's active posted auctions (results accessed using GetAuctionItemInfo)
  • GetSelectedAuctionItem( type ) - Returns the index (1-50) of the selected auction item or 0 if none is selected (used by the vanilla UI).
  • IsAuctionSortReversed( type, sort ) - Returns 1 if the specified auction list and sort is reversed, nil otherwise.
  • PlaceAuctionBid( type, index, bid ) - Place a bid on the specified auction item.
  • PostAuction( minBid, buyoutPrice, runTime, stackSize, numStacks ) - Post the currently selected item
  • QueryAuctionItems( text, minLevel, maxLevel, page, usable, rarity, getAll, exactMatch, filterData ) - Performs a search of the auction house with the specified characteristics.
  • SetAuctionsTabShowing( showing ) - Enables the right-click to select an item for posting from your bags shortcut.
  • SetSelectedAuctionItem( type, index ) - Selects a specific item in the auction house (used by the vanilla UI).
  • SortAuctionApplySort( type )
  • SortAuctionClearSort( type )
  • SortAuctionItems( type, sort ) - Toggles sorting the specific auction list by a specific column.
  • SortAuctionSetSort( type, sort [, reverse] ) - Sorts the specific auction list by a specific column, optionally in reverse order. Requires SortAuctionApplySort or another search query afterwards to update.
  • ConfirmPetUnlearn - Confirms unlearning the current pet's skills.
  • GetPetHappiness - Returns the pet's happiness, damage percentage, and loyalty gain rate.
  • GetPetLoyalty - Returns pet loyalty flavor text.
  • GetPetTrainingPoints - Gets the training point information about the current pet.
  • BuyStableSlot - Buys the next stable slot if the stable window is open and you can afford it.
  • ClickStablePet( index ) - Selects a stable pet.
  • GetNextStableSlotCost - Returns the next stable slot's cost in copper.
  • GetNumStablePets - Returns the amount of stable pets.
  • GetNumStableSlots - Returns the amount of stable slots.
  • GetSelectedStablePet - Gets the index of the currently selected pet in the stable.
  • StablePet - Puts your current pet in the stable if there is room.
  • UnstablePet( index ) - Unstables a pet.

The Keyring was added again in Patch 1.13.3

  • HasKey - Returns whether or not the player has a key ring.
  • KeyRingButtonIDToInvSlotID( buttonID ) - Map a keyring button to an inventory slot button for use in inventory functions.
  • CloseTradeSkill
  • CollapseTradeSkillSubClass( index )
  • DoTradeSkill( index [, repeat] )
  • ExpandTradeSkillSubClass( index )
  • GetFirstTradeSkill
  • GetNumPrimaryProfessions
  • GetNumTradeSkills
  • GetTradeSkillCooldown( index )
  • GetTradeSkillIcon( index )
  • GetTradeSkillInfo( index )
  • GetTradeSkillInvSlotFilter( index )
  • GetTradeSkillInvSlots
  • GetTradeSkillItemLink( index )
  • GetTradeSkillItemStats
  • GetTradeSkillLine
  • GetTradeSkillNumMade( index )
  • GetTradeSkillNumReagents( index )
  • GetTradeSkillReagentInfo( index, reagentIndex )
  • GetTradeSkillReagentItemLink( index, reagentIndex )
  • GetTradeSkillRecipeLink( index )
  • GetTradeSkillSelectionIndex
  • GetTradeSkillSubClassFilter( index )
  • GetTradeSkillSubClasses
  • GetTradeSkillTools( index )
  • GetTradeskillRepeatCount
  • SelectTradeSkill( index )
  • SetTradeSkillInvSlotFilter( index [, on\off, exclusive] )
  • SetTradeSkillSubClassFilter( index [, on\off, exclusive] )

The Craft UI is used for Enchanting and Beast Training.

  • CloseCraft
  • CollapseCraftSkillLine( index )
  • DoCraft( index )
  • ExpandCraftSkillLine( index )
  • GetCraftButtonToken
  • GetCraftDescription( index )
  • GetCraftDisplaySkillLine
  • GetCraftIcon( index )
  • GetCraftInfo( index )
  • GetCraftItemLink( index )
  • GetCraftName
  • GetCraftNumReagents( index )
  • GetCraftReagentInfo( index, reagentIndex )
  • GetCraftReagentItemLink( index, reagentIndex )
  • GetCraftSelectionIndex
  • GetCraftSkillLine( index )
  • GetCraftSpellFocus( index )
  • GetNumCrafts
  • SelectCraft( index )
  • GetInspectPVPRankProgress - Gets the inspected unit's progress towards the next PvP rank.
  • GetPVPLastWeekStats - Gets the player's PVP contribution statistics for the previous week.
  • GetPVPRankInfo( rank [, unit] ) - Returns information about a specific PvP rank.
  • GetPVPRankProgress - Returns the player's progress to the next PvP rank.
  • GetPVPThisWeekStats - Gets your PVP contribution statistics for the current week.
  • UnitIsCivilian( unit ) - Determine whether a unit is a civilian (low level enemy faction NPC that counts as a dishonorable kill).
  • UnitPVPRank( unit ) - Returns the specified unit's PvP rank ID.
  • GetBattlefieldInstanceInfo( index ) - Returns the battlefield instance ID for an index in the battlemaster listing.
  • GetNumBattlefields - Returns the number of available instances for the selected battleground at the battlemaster.
  • GetSelectedBattlefield - Returns the currently selected battlefield at the battlemaster.
  • SetSelectedBattlefield( index ) - Selects a battlefield instance at the battlemaster.
  • AcceptArenaTeam
  • ArenaTeamDisband( index )
  • ArenaTeamInviteByName
  • ArenaTeamLeave
  • ArenaTeamRoster( index )
  • ArenaTeamSetLeaderByName
  • ArenaTeamUninviteByName
  • BuyArenaCharter
  • CloseArenaTeamRoster
  • DeclineArenaTeam
  • GetArenaTeam( id )
  • GetArenaTeamGdfInfo
  • GetArenaTeamIndexBySize( size )
  • GetArenaTeamRosterInfo( teamindex, playerid )
  • GetArenaTeamRosterSelection
  • GetArenaTeamRosterShowOffline
  • GetInspectArenaTeamData
  • GetNumArenaTeamMembers
  • IsArenaSeasonActive
  • IsBattlefieldArena
  • SetArenaTeamRosterSelection
  • SetArenaTeamRosterShowOffline
  • SetPendingReportArenaTeamName
  • SortArenaTeamRoster
  • TurnInArenaPetition

Relates to player/trainer Skills.

  • CollapseSkillHeader( index ) - Collapses a header in the skills window.
  • CollapseTrainerSkillLine( index ) - Collapses a header in the trainer window, hiding all spells below it.
  • ExpandSkillHeader( index ) - Expands a header in the skills window.
  • ExpandTrainerSkillLine( index ) - Expands a header in the trainer window, showing all spells below it.
  • GetNumSkillLines - Returns the number of skill lines in the skill window, including headers.
  • GetSelectedSkill - Returns the currently selected skill line.
  • GetSkillLineInfo( index ) - Returns information on a skill line/header.
  • IsTrainerServiceLearnSpell( index ) - Returns the type of trainer spell in the trainer window.
  • SetSelectedSkill( index ) - Selects a skill line in the skill window.
  • GetNumTalents( tabIndex ) - Returns the amount of talents for a specialization.
  • GetNumTalentTabs - Returns the total number of talent tabs for the player.
  • GetTalentInfo( tabIndex, talentIndex ) - Returns information about a talent.
  • GetTalentPrereqs( tabIndex, talentIndex ) - Returns the tier and column of a talent's prerequisite, and if the talent is learnable.
  • GetTalentTabInfo( index ) - Returns information for a talent tab (tree).
  • UnitCharacterPoints( unit ) - Returns the number of unspent talent points of the player.
  • CancelTrackingBuff - Cancels your current tracking buff (skills like Find Minerals and Track Humanoids).
  • GetTrackingTexture - Returns the texture of the active tracking buff.

Source

https://warcraft.wiki.gg/wiki/World_of_Warcraft_API/Classic · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.