<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>World of Codecraft</title>
	<atom:link href="http://d5a3.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://d5a3.com</link>
	<description>Designed for coding</description>
	<pubDate>Fri, 30 Apr 2010 12:15:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>World of Warcraft API</title>
		<link>http://d5a3.com/?p=252</link>
		<comments>http://d5a3.com/?p=252#comments</comments>
		<pubDate>Wed, 03 Mar 2010 02:45:15 +0000</pubDate>
		<dc:creator>codecraft</dc:creator>
		
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://d5a3.com/?p=252</guid>
		<description><![CDATA[The World of Warcraft API, or WoW API, is a set of  functions provided by Blizzard to interact with and modify the World  of Warcraft interface and behavior through the use of addons and  macros. The list of functions below is incomplete and kept up to date by  user contributions; you [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>World of Warcraft API</strong>, or <strong>WoW API</strong>, is a set of  functions provided by Blizzard to interact with and modify the <em>World  of Warcraft</em> interface and behavior through the use of addons and  macros. The list of functions below is incomplete and kept up to date by  user contributions; you may also be interested in <a title="Global functions" href="http://www.wowwiki.com/Global_functions">an  automatically-generated exhaustive list</a> of all API functions  present in the latest live client.</p>
<p>If you&#8217;re considering contributing documentation, please read <strong><a title="WoWWiki:How to edit API pages" href="http://www.wowwiki.com/WoWWiki:How_to_edit_API_pages">How to edit API pages</a></strong>. In  summary: update this page (and the linked pages) as needed, discuss any  large-scale changes on the <a title="Talk:World of Warcraft API" href="http://www.wowwiki.com/Talk:World_of_Warcraft_API"><span class="tab">discussion</span> page</a>, and do not create <em>empty</em> stub pages.</p>
<p>If you need help reading the documentation, see <a title="WoWWiki:API notation and conventions" href="http://www.wowwiki.com/WoWWiki:API_notation_and_conventions">API notation and  conventions</a>. You can also <a class="mw-redirect" title="HOWTO: View Blizzard's Interface Code" href="http://www.wowwiki.com/HOWTO:_View_Blizzard%27s_Interface_Code">examine  the existing UI code</a> to find examples of how the various functions  are used by the default UI. Function names could be prefixed with the  following tags:</p>
<ul>
<li> <strong>PROTECTED</strong> - This function can only be called from <a title="Secure code" href="http://www.wowwiki.com/Secure_code">secure  code</a>. See the <a title="Category:World of Warcraft API/Protected Functions" href="http://www.wowwiki.com/Category:World_of_Warcraft_API/Protected_Functions">Protected  Functions</a> category.
<ul>
<li> <strong>NOCOMBAT</strong> - This function cannot be called from insecure  code while in combat.</li>
</ul>
</li>
<li> <strong>HW</strong> - This function may only be called in response to a  hardware event (from OnClick handlers).</li>
<li> <strong>UI</strong> - This function is implemented in Lua (in <a title="Category:FrameXML documentation" href="http://www.wowwiki.com/Category:FrameXML_documentation">FrameXML</a>) but was considered  important enough to appear here.</li>
<li> <strong>REMOVED</strong> - This function has been removed from the World  of Warcraft API (and should also be removed from this list). For  historical purposes, see the <a title="Category:World of Warcraft API/Removed Functions" href="http://www.wowwiki.com/Category:World_of_Warcraft_API/Removed_Functions">Removed  Functions</a> category.</li>
</ul>
<h2><span class="mw-headline">Global Function Groups </span></h2>
<div id="Liftium_300x250_1" style="float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 20px; clear: left;"></div>
<p><a id="Account_Functions" rel="nofollow" name="Account_Functions"></a></p>
<h3><span class="mw-headline"> Account Functions </span></h3>
<dl>
<dd> <a title="API GetAccountExpansionLevel" href="http://www.wowwiki.com/API_GetAccountExpansionLevel">GetAccountExpansionLevel</a>() -  Returns index of registered expansion. (0=WoW, 1=BC, 2=WotLK) </dd>
</dl>
<p>These functions only return meaningful values on Asian realms; all  three relate to the play time limitation system.</p>
<dl>
<dd> <a title="API GetBillingTimeRested" href="http://www.wowwiki.com/API_GetBillingTimeRested">GetBillingTimeRested</a>() - returns  the time spent logged in in current billing unit. </dd>
<dd> <a title="API PartialPlayTime" href="http://www.wowwiki.com/API_PartialPlayTime">PartialPlayTime</a>() - returns 1 if the  player is currently &#8220;tired&#8221;: reduced XP, loot. </dd>
<dd> <a title="API  NoPlayTime" href="http://www.wowwiki.com/API_NoPlayTime">NoPlayTime</a>() - returns 1 if the player is currently  &#8220;unhealthy&#8221;: no XP, loot. </dd>
</dl>
<p><a id="Achievement_Functions" rel="nofollow" name="Achievement_Functions"></a></p>
<h3><span class="mw-headline"> Achievement Functions </span></h3>
<p>These functions are only available in <a class="mw-redirect" title="Patch 3.0" href="http://www.wowwiki.com/Patch_3.0">Patch 3.0</a>.</p>
<dl>
<dd> <a class="new" title="API AddTrackedAchievement (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_AddTrackedAchievement&amp;action=edit&amp;redlink=1">AddTrackedAchievement</a>(achievementId) - Add an  achievement to tracking. </dd>
<dd> <a title="API CanShowAchievementUI" href="http://www.wowwiki.com/API_CanShowAchievementUI">CanShowAchievementUI</a>() - Returns if  the AchievementUI can be displayed </dd>
<dd> <a class="new" title="API ClearAchievementComparisonUnit (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClearAchievementComparisonUnit&amp;action=edit&amp;redlink=1">ClearAchievementComparisonUnit</a>() - Remove the  unit being compared. </dd>
<dd> <a class="new" title="API GetAchievementCategory (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAchievementCategory&amp;action=edit&amp;redlink=1">GetAchievementCategory</a>(achievementID) - Return the  category number the requested achievement belongs to. </dd>
<dd> <a class="new" title="API GetAchievementComparisonInfo (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAchievementComparisonInfo&amp;action=edit&amp;redlink=1">GetAchievementComparisonInfo</a>(achievementID,  comparisonNum) - Return the status of the achievement for the comparison  player. </dd>
<dd> <a title="API  GetAchievementCriteriaInfo" href="http://www.wowwiki.com/API_GetAchievementCriteriaInfo">GetAchievementCriteriaInfo</a>(achievementID,  criteriaNum) - Return information about the requested criteria. </dd>
<dd> <a title="API GetAchievementInfo" href="http://www.wowwiki.com/API_GetAchievementInfo">GetAchievementInfo</a>((achievementID) or  (category, offset) - Return information about the requested  Achievement. </dd>
<dd> <a title="API GetAchievementInfoFromCriteria" href="http://www.wowwiki.com/API_GetAchievementInfoFromCriteria">GetAchievementInfoFromCriteria</a>(id)  - Return information about the requested Achievement. </dd>
<dd> <a title="API GetAchievementLink" href="http://www.wowwiki.com/API_GetAchievementLink">GetAchievementLink</a>(achievementID) -  Returns a <a title="AchievementLink" href="http://www.wowwiki.com/AchievementLink">achievementLink</a> for the specified  Achievement. </dd>
<dd> <a title="API GetAchievementNumCriteria" href="http://www.wowwiki.com/API_GetAchievementNumCriteria">GetAchievementNumCriteria</a>(achievementID)  - Return the number of criteria the requested Achievement has. </dd>
<dd> <a class="new" title="API GetAchievementNumRewards (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAchievementNumRewards&amp;action=edit&amp;redlink=1">GetAchievementNumRewards</a>(achievementID) - Return the  number of rewards the requested Achievement has. </dd>
<dd> <a title="API GetCategoryInfo" href="http://www.wowwiki.com/API_GetCategoryInfo">GetCategoryInfo</a>(category) - Return  information about the requested category </dd>
<dd> <a title="API GetCategoryList" href="http://www.wowwiki.com/API_GetCategoryList">GetCategoryList</a>() - Returns the list of  Achievement categories. </dd>
<dd> <a class="new" title="API GetCategoryNumAchievements (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCategoryNumAchievements&amp;action=edit&amp;redlink=1">GetCategoryNumAchievements</a>(category) - Return  the number of Achievements, and number completed for the specific  category. </dd>
<dd> <a class="new" title="API GetComparisonAchievementPoints (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetComparisonAchievementPoints&amp;action=edit&amp;redlink=1">GetComparisonAchievementPoints</a>() - Return the  total number of achievement points the comparison unit has earned. </dd>
<dd> <a class="new" title="API GetComparisonCategoryNumAchievements (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetComparisonCategoryNumAchievements&amp;action=edit&amp;redlink=1">GetComparisonCategoryNumAchievements</a>(achievementID) </dd>
<dd> <a title="API GetComparisonStatistic" href="http://www.wowwiki.com/API_GetComparisonStatistic">GetComparisonStatistic</a>(achievementID)  - Return the value of the requested statistic for the comparison  player. </dd>
<dd> <a class="new" title="API GetLatestCompletedAchievements (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLatestCompletedAchievements&amp;action=edit&amp;redlink=1">GetLatestCompletedAchievements</a>() - Return the  ID&#8217;s of the last 5 completed Achievements. </dd>
<dd> <a class="new" title="API GetLatestCompletedComparisonAchievements (page  does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLatestCompletedComparisonAchievements&amp;action=edit&amp;redlink=1">GetLatestCompletedComparisonAchievements</a>() </dd>
<dd> <a class="new" title="API GetLatestUpdatedComparisonStats (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLatestUpdatedComparisonStats&amp;action=edit&amp;redlink=1">GetLatestUpdatedComparisonStats</a>() </dd>
<dd> <a class="new" title="API GetLatestUpdatedStats (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLatestUpdatedStats&amp;action=edit&amp;redlink=1">GetLatestUpdatedStats</a>() - Return the ID&#8217;s of the last  5 updated Statistics. </dd>
<dd> <a class="new" title="API GetNextAchievement (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNextAchievement&amp;action=edit&amp;redlink=1">GetNextAchievement</a>(achievementID) </dd>
<dd> <a class="new" title="API GetNumComparisonCompletedAchievements (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumComparisonCompletedAchievements&amp;action=edit&amp;redlink=1">GetNumComparisonCompletedAchievements</a>() </dd>
<dd> <a title="API  GetNumCompletedAchievements" href="http://www.wowwiki.com/API_GetNumCompletedAchievements">GetNumCompletedAchievements</a>() - Return  the total number of Achievements, and number completed. </dd>
<dd> <a class="new" title="API GetPreviousAchievement (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPreviousAchievement&amp;action=edit&amp;redlink=1">GetPreviousAchievement</a>(achievementID) - Return  previous related achievements. </dd>
<dd> <a title="API  GetStatistic" href="http://www.wowwiki.com/API_GetStatistic">GetStatistic</a>(achievementID) - Return the value of the  requested statistic. </dd>
<dd> <a class="new" title="API GetStatisticsCategoryList (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetStatisticsCategoryList&amp;action=edit&amp;redlink=1">GetStatisticsCategoryList</a>() - Returns the list of  Statistic categories. </dd>
<dd> <a title="API GetTotalAchievementPoints" href="http://www.wowwiki.com/API_GetTotalAchievementPoints">GetTotalAchievementPoints</a>() -  Return the total number of achievement points earned. </dd>
<dd> <a title="API GetTrackedAchievements" href="http://www.wowwiki.com/API_GetTrackedAchievements">GetTrackedAchievements</a>() - Return  the AchievementID of the currently tracked achievements </dd>
<dd> <a class="new" title="API GetNumTrackedAchievements (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumTrackedAchievements&amp;action=edit&amp;redlink=1">GetNumTrackedAchievements</a>() - Return the total  number of the currently tracked achievements </dd>
<dd> <a class="new" title="API RemoveTrackedAchievement (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_RemoveTrackedAchievement&amp;action=edit&amp;redlink=1">RemoveTrackedAchievement</a>(achievementID) - Stops an  achievement from being tracked </dd>
<dd> <a class="new" title="API SetAchievementComparisonUnit (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetAchievementComparisonUnit&amp;action=edit&amp;redlink=1">SetAchievementComparisonUnit</a>(unitId) - Set  the unit to be compared to. </dd>
</dl>
<p><a id="Action_Functions" rel="nofollow" name="Action_Functions"></a></p>
<h3><span class="mw-headline"> Action Functions </span></h3>
<p>These functions are those which operate with the action buttons  (General player actions are likely in the <a href="http://www.wowwiki.com/World_of_Warcraft_API#Activity_Functions">Activity Functions</a> section below).</p>
<dl>
<dd> PROTECTED UI <a title="API  ActionButtonDown" href="http://www.wowwiki.com/API_ActionButtonDown">ActionButtonDown</a>(id) - Press the specified action  button. (2.0 Protected) </dd>
<dd> PROTECTED UI <a title="API  ActionButtonUp" href="http://www.wowwiki.com/API_ActionButtonUp">ActionButtonUp</a>(id) - Release the specified action  button. (2.0 Protected) </dd>
<dd> <a title="API  ActionHasRange" href="http://www.wowwiki.com/API_ActionHasRange">ActionHasRange</a>(slot) - Determine if the specified  action is a range restriction (1 if yes, nil if no) </dd>
<dd> UI <a title="API BonusActionButtonDown" href="http://www.wowwiki.com/API_BonusActionButtonDown">BonusActionButtonDown</a> - Trigger  the specified bonus(pet or minion) action button. </dd>
<dd> UI <a title="API BonusActionButtonUp" href="http://www.wowwiki.com/API_BonusActionButtonUp">BonusActionButtonUp</a> - Release the  specified bonus(pet or minion) action button. </dd>
<dd> PROTECTED <a title="API  CameraOrSelectOrMoveStart" href="http://www.wowwiki.com/API_CameraOrSelectOrMoveStart">CameraOrSelectOrMoveStart</a>() - Begin &#8220;Left  click&#8221; in the 3D world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API  CameraOrSelectOrMoveStop" href="http://www.wowwiki.com/API_CameraOrSelectOrMoveStop">CameraOrSelectOrMoveStop</a>([stickyFlag]) -  End &#8220;Left click&#8221; in the 3D world. (1.10 - Protected) </dd>
<dd> NOCOMBAT <a title="API  ChangeActionBarPage" href="http://www.wowwiki.com/API_ChangeActionBarPage">ChangeActionBarPage</a>(page) - Changes the current  action bar page. </dd>
<dd> <a title="API GetActionBarPage" href="http://www.wowwiki.com/API_GetActionBarPage">GetActionBarPage</a>() - Return the current  action bar page. CURRENT_ACTIONBAR_PAGE is obsolete. </dd>
<dd> <a title="API GetActionBarToggles" href="http://www.wowwiki.com/API_GetActionBarToggles">GetActionBarToggles</a>() - Return the  toggles for each action bar. </dd>
<dd> <a title="API GetActionCooldown" href="http://www.wowwiki.com/API_GetActionCooldown">GetActionCooldown</a>(slot) - This returns  the cooldown values of the specified action.. </dd>
<dd> <a title="API  GetActionCount" href="http://www.wowwiki.com/API_GetActionCount">GetActionCount</a>(slot) - Get the count  (bandage/potion/etc) for an action, returns 0 if none or not applicable. </dd>
<dd> <a title="API  GetActionInfo" href="http://www.wowwiki.com/API_GetActionInfo">GetActionInfo</a>(slot) - Returns type, id, subtype. </dd>
<dd> <a title="API  GetActionText" href="http://www.wowwiki.com/API_GetActionText">GetActionText</a>(slot) - Get the text label (macros,  etc) for an action, returns nil if none. </dd>
<dd> <a title="API GetActionTexture" href="http://www.wowwiki.com/API_GetActionTexture">GetActionTexture</a>(slot) - Gets the  texture path for the specified action. </dd>
<dd> <a title="API GetBonusBarOffset" href="http://www.wowwiki.com/API_GetBonusBarOffset">GetBonusBarOffset</a>() - Determine which  page of bonus actions to show. </dd>
<dd> <a title="API GetMouseButtonClicked" href="http://www.wowwiki.com/API_GetMouseButtonClicked">GetMouseButtonClicked</a>() -Returns  the name of the button that triggered a mouse down/up/click/doubleclick  event. (NEW 2.0.3) </dd>
<dd> <a class="new" title="API GetMultiCastBarOffset (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetMultiCastBarOffset&amp;action=edit&amp;redlink=1">GetMultiCastBarOffset</a>() - Returns the page offset of  the multicast action IDs (NEW in 3.2) </dd>
<dd> <a title="API  GetPossessInfo" href="http://www.wowwiki.com/API_GetPossessInfo">GetPossessInfo</a>(index) - Returns texture, name,  enabled. </dd>
<dd> <a title="API  HasAction" href="http://www.wowwiki.com/API_HasAction">HasAction</a>(slot) - Returns 1 if the player has an action  in the specified slot, nil otherwise. </dd>
<dd> <a title="API IsActionInRange" href="http://www.wowwiki.com/API_IsActionInRange">IsActionInRange</a>(slot,[unit]) - Test if  an action is in range (1=yes, 0=no, nil=not applicable). </dd>
<dd> <a title="API  IsAttackAction" href="http://www.wowwiki.com/API_IsAttackAction">IsAttackAction</a>(slot) - Return 1 if an action is an  &#8216;attack&#8217; action (flashes during combat), nil otherwise. </dd>
<dd> <a title="API IsAutoRepeatAction" href="http://www.wowwiki.com/API_IsAutoRepeatAction">IsAutoRepeatAction</a>(slot) - Return 1  if an action is auto-repeating, nil otherwise. </dd>
<dd> <a title="API IsCurrentAction" href="http://www.wowwiki.com/API_IsCurrentAction">IsCurrentAction</a>(slot) - Return 1 if an  action is the one currently underway, nil otherwise. </dd>
<dd> <a title="API IsConsumableAction" href="http://www.wowwiki.com/API_IsConsumableAction">IsConsumableAction</a>(slot) - Return 1  if an action is consumable (i.e. has a count), nil otherwise. </dd>
<dd> <a title="API IsEquippedAction" href="http://www.wowwiki.com/API_IsEquippedAction">IsEquippedAction</a>(slot) - Return 1 if an  action is equipped (i.e. connected to an item that must be equipped),  nil otherwise. </dd>
<dd> <a title="API  IsUsableAction" href="http://www.wowwiki.com/API_IsUsableAction">IsUsableAction</a>(slot) - Return 1 if an action can be  used at present, nil otherwise. </dd>
<dd> <a title="API PetHasActionBar" href="http://www.wowwiki.com/API_PetHasActionBar">PetHasActionBar</a>() - Determine if player  has a pet with an action bar. </dd>
<dd> NOCOMBAT <a title="API PickupAction" href="http://www.wowwiki.com/API_PickupAction">PickupAction</a>(slot) - Drags an action out of  the specified quickbar slot and holds it on the cursor. </dd>
<dd> NOCOMBAT <a title="API PickupPetAction" href="http://www.wowwiki.com/API_PickupPetAction">PickupPetAction</a>(slot) - Drags an action  from the specified pet action bar slot into the cursor. </dd>
<dd> <a title="API  PlaceAction" href="http://www.wowwiki.com/API_PlaceAction">PlaceAction</a>(slot) - Drops an action from the cursor  into the specified quickbar slot. </dd>
<dd> <a title="API SetActionBarToggles" href="http://www.wowwiki.com/API_SetActionBarToggles">SetActionBarToggles</a>(show1,show2,show3,show4[,  alwaysShow]) - Set show toggle for each action bar - &#8216;alwaysShow&#8217; added  in 1.12 </dd>
<dd> <a class="new" title="API StopAttack (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_StopAttack&amp;action=edit&amp;redlink=1">StopAttack</a>()  - Turns off auto-attack, if currently active. Has no effect is the  player does not currently have auto-attack active. </dd>
<dd> PROTECTED <a title="API  TurnOrActionStart" href="http://www.wowwiki.com/API_TurnOrActionStart">TurnOrActionStart</a>() - Begin &#8220;Right Click&#8221; in the  3D world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API  TurnOrActionStop" href="http://www.wowwiki.com/API_TurnOrActionStop">TurnOrActionStop</a>() - End &#8220;Right Click&#8221; in the 3D  world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API UseAction" href="http://www.wowwiki.com/API_UseAction">UseAction</a>(slot[, checkCursor[, onSelf]]) -  This instructs the interface to use the action associated with the  specified ID, optionally on the player (regardless of target)(2.0 -  Protected). </dd>
</dl>
<p><a id="Activity_Functions" rel="nofollow" name="Activity_Functions"></a></p>
<h3><span class="mw-headline"> Activity Functions </span></h3>
<p>This section is for functions which make the player do something (and  which aren&#8217;t covered elsewhere, and which aren&#8217;t simply confirmation  steps)</p>
<dl>
<dd> <a title="API  AcceptDuel" href="http://www.wowwiki.com/API_AcceptDuel">AcceptDuel</a>() - The player accepts the challenge to duel. </dd>
<dd> PROTECTED <a title="API AttackTarget" href="http://www.wowwiki.com/API_AttackTarget">AttackTarget</a>() - Attacks the targetted  unit. </dd>
<dd> <a title="API  CancelDuel" href="http://www.wowwiki.com/API_CancelDuel">CancelDuel</a>() - Refuse the invitation to fight a duel. </dd>
<dd> <a title="API  CancelLogout" href="http://www.wowwiki.com/API_CancelLogout">CancelLogout</a>() - Cancels the logout timer (from  camping or quitting). </dd>
<dd> <a class="new" title="API ClearTutorials (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClearTutorials&amp;action=edit&amp;redlink=1">ClearTutorials</a>() </dd>
<dd> <a class="new" title="API CancelSummon (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CancelSummon&amp;action=edit&amp;redlink=1">CancelSummon</a>() - Rejects a summon request. </dd>
<dd> <a title="API  ConfirmSummon" href="http://www.wowwiki.com/API_ConfirmSummon">ConfirmSummon</a>() - Accepts a summon request. </dd>
<dd> PROTECTED <a class="new" title="API DescendStop (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DescendStop&amp;action=edit&amp;redlink=1">DescendStop</a>() - The player stops descending (while  swimming or flying) <em>&#8211; added in 2.1</em> </dd>
<dd> <a title="API  Dismount" href="http://www.wowwiki.com/API_Dismount">Dismount</a>() - The player dismounts the current mount. <em>&#8211;  added in 2.0.3</em> </dd>
<dd> <a class="new" title="API FlagTutorial (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_FlagTutorial&amp;action=edit&amp;redlink=1">FlagTutorial</a>(&#8221;tutorial&#8221;) </dd>
<dd> <a title="API  ForceQuit" href="http://www.wowwiki.com/API_ForceQuit">ForceQuit</a>() - Instantly quits the game, bypassing the  timer. </dd>
<dd> <a title="API  GetPVPTimer" href="http://www.wowwiki.com/API_GetPVPTimer">GetPVPTimer</a>() - Returns the amount of time until your  PvP flag fades. </dd>
<dd> <a class="new" title="API GetSummonConfirmAreaName (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSummonConfirmAreaName&amp;action=edit&amp;redlink=1">GetSummonConfirmAreaName</a>() </dd>
<dd> <a class="new" title="API GetSummonConfirmSummoner (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSummonConfirmSummoner&amp;action=edit&amp;redlink=1">GetSummonConfirmSummoner</a>() </dd>
<dd> <a class="new" title="API GetSummonConfirmTimeLeft (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSummonConfirmTimeLeft&amp;action=edit&amp;redlink=1">GetSummonConfirmTimeLeft</a>() </dd>
<dd> <a title="API Logout" href="http://www.wowwiki.com/API_Logout">Logout</a> - Logs the user out of the game. </dd>
<dd> <a title="API Quit" href="http://www.wowwiki.com/API_Quit">Quit</a> - Quits the game, <strong>not</strong> the Lua script. </dd>
<dd> <a title="API  RandomRoll" href="http://www.wowwiki.com/API_RandomRoll">RandomRoll</a>(low, high) - Does a random roll between the  two values. </dd>
<dd> <a title="API SetPVP" href="http://www.wowwiki.com/API_SetPVP">SetPVP</a>(arg1)  - Sets the players PVP mode (1 to enable, nil to toggle off eventually) </dd>
<dd> PROTECTED <a title="API  SitStandOrDescendStart" href="http://www.wowwiki.com/API_SitStandOrDescendStart">SitStandOrDescendStart</a>() - The player sits,  stands, or descends <em>&#8211; added in 2.1</em> </dd>
<dd> PROTECTED <a title="API StartDuel" href="http://www.wowwiki.com/API_StartDuel">StartDuel</a>(&#8221;name&#8221;) - Challenge someone to a  duel (by name) <em>&#8211; protected in 2.0</em> </dd>
<dd> <a title="API  TogglePVP" href="http://www.wowwiki.com/API_TogglePVP">TogglePVP</a>() - Toggles PVP status </dd>
<dd> <a title="API  ToggleSheath" href="http://www.wowwiki.com/API_ToggleSheath">ToggleSheath</a>() - Toggles sheathed or unsheathed  weapons. </dd>
<dd> <a class="new" title="API UseSoulstone (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UseSoulstone&amp;action=edit&amp;redlink=1">UseSoulstone</a>() - Use an active soulstone to resurrect  yourself after death. Also works for Shamans with Reincarnation  available. </dd>
</dl>
<p><a id="AddOn_Functions" rel="nofollow" name="AddOn_Functions"></a></p>
<h3><span class="mw-headline"> AddOn Functions </span></h3>
<dl>
<dd> <a title="API  DisableAddOn" href="http://www.wowwiki.com/API_DisableAddOn">DisableAddOn</a>(index or &#8220;AddOnName&#8221;) - Disable the  specified AddOn for subsequent sessions. </dd>
<dd> <a title="API DisableAllAddOns" href="http://www.wowwiki.com/API_DisableAllAddOns">DisableAllAddOns</a>() - Disable all AddOns  for subsequent sessions. </dd>
<dd> <a title="API  EnableAddOn" href="http://www.wowwiki.com/API_EnableAddOn">EnableAddOn</a>(index or &#8220;AddOnName&#8221;) - Enable the  specified AddOn for subsequent sessions. </dd>
<dd> <a title="API EnableAllAddOns" href="http://www.wowwiki.com/API_EnableAllAddOns">EnableAllAddOns</a>() - Enable all AddOns  for subsequent sessions. </dd>
<dd> <a title="API GetAddOnDependencies" href="http://www.wowwiki.com/API_GetAddOnDependencies">GetAddOnDependencies</a>(index or  &#8220;AddOnName&#8221;) - Get dependency list for an AddOn. </dd>
<dd> <a title="API  GetAddOnInfo" href="http://www.wowwiki.com/API_GetAddOnInfo">GetAddOnInfo</a>(index or &#8220;AddOnName&#8221;) - Get information  about an AddOn. </dd>
<dd> <a title="API GetAddOnMetadata" href="http://www.wowwiki.com/API_GetAddOnMetadata">GetAddOnMetadata</a>(index or &#8220;name&#8221;,  &#8220;variable&#8221;) - Retrieve metadata from addon&#8217;s TOC file. </dd>
<dd> <a title="API  GetNumAddOns" href="http://www.wowwiki.com/API_GetNumAddOns">GetNumAddOns</a>() - Get the number of user supplied  AddOns. </dd>
<dd> <a title="API  IsAddOnLoaded" href="http://www.wowwiki.com/API_IsAddOnLoaded">IsAddOnLoaded</a>(index or &#8220;AddOnName&#8221;) - Returns true if  the specified AddOn is loaded. </dd>
<dd> <a title="API IsAddOnLoadOnDemand" href="http://www.wowwiki.com/API_IsAddOnLoadOnDemand">IsAddOnLoadOnDemand</a>(index or  &#8220;AddOnName&#8221;) - Test whether an AddOn is load-on-demand. </dd>
<dd> <a title="API  LoadAddOn" href="http://www.wowwiki.com/API_LoadAddOn">LoadAddOn</a>(index or &#8220;AddOnName&#8221;) - Request loading of a  Load-On-Demand AddOn. </dd>
<dd> <a class="new" title="API ResetDisabledAddOns (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResetDisabledAddOns&amp;action=edit&amp;redlink=1">ResetDisabledAddOns</a>() - </dd>
</dl>
<p><a id="Arena_Functions" rel="nofollow" name="Arena_Functions"></a></p>
<h3><span class="mw-headline"> Arena Functions </span></h3>
<dl>
<dd> <a title="API  AcceptArenaTeam" href="http://www.wowwiki.com/API_AcceptArenaTeam">AcceptArenaTeam</a>() - Accepts a pending Arena team  invitation. </dd>
<dd> <a class="new" title="API ArenaTeamInviteByName (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ArenaTeamInviteByName&amp;action=edit&amp;redlink=1">ArenaTeamInviteByName</a>(teamIndex, playerName) -  Invites the specified player to the specified arena team. </dd>
<dd> <a class="new" title="API ArenaTeamSetLeaderByName (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ArenaTeamSetLeaderByName&amp;action=edit&amp;redlink=1">ArenaTeamSetLeaderByName</a>(teamIndex, playerName) -  Sets new Team Leader to the specified arena team. </dd>
<dd> <a class="new" title="API ArenaTeamLeave (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ArenaTeamLeave&amp;action=edit&amp;redlink=1">ArenaTeamLeave</a>(teamIndex) - Leaves the specified  arena team. </dd>
<dd> <a title="API ArenaTeamRoster" href="http://www.wowwiki.com/API_ArenaTeamRoster">ArenaTeamRoster</a>(teamIndex) - Sends a  request to the server to request the most recent information on a  specific Arena Team that you are in. </dd>
<dd> <a class="new" title="API ArenaTeamUninviteByName (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ArenaTeamUninviteByName&amp;action=edit&amp;redlink=1">ArenaTeamUninviteByName</a>(teamIndex, playerName) -  Removes the specified played from the specified arena team. </dd>
<dd> <a title="API ArenaTeamDisband" href="http://www.wowwiki.com/API_ArenaTeamDisband">ArenaTeamDisband</a>(teamIndex) - Disbands  the arena team without any warning! Requires you to be the leader of the  team. (Known to be implemented as of 2.1.3, but may have existed  before). </dd>
<dd> <a title="API DeclineArenaTeam" href="http://www.wowwiki.com/API_DeclineArenaTeam">DeclineArenaTeam</a>() - Declines a pending  Arena team invitation. </dd>
<dd> <a title="API GetArenaCurrency" href="http://www.wowwiki.com/API_GetArenaCurrency">GetArenaCurrency</a>() - Gets the amount of  arena points a player currently has to spend. </dd>
<dd> <a title="API  GetArenaTeam" href="http://www.wowwiki.com/API_GetArenaTeam">GetArenaTeam</a>(teamIndex) - Returns information  regarding the players arena team, nil if the player is not in the passed  team </dd>
<dd> <a class="new" title="API GetArenaTeamGdfInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetArenaTeamGdfInfo&amp;action=edit&amp;redlink=1">GetArenaTeamGdfInfo</a>() - ? New in 3.0.8 </dd>
<dd> <a title="API GetArenaTeamRosterInfo" href="http://www.wowwiki.com/API_GetArenaTeamRosterInfo">GetArenaTeamRosterInfo</a>(teamIndex,  playerIndex) - Returns information regarding a player from the  specified team. This requires a call to <a title="API  ArenaTeamRoster" href="http://www.wowwiki.com/API_ArenaTeamRoster">ArenaTeamRoster</a> you only need to do this when the  player logins in, UI reloads will not effect the return. </dd>
<dd> <a title="API GetBattlefieldTeamInfo" href="http://www.wowwiki.com/API_GetBattlefieldTeamInfo">GetBattlefieldTeamInfo</a>(index) -  Gets info about a registered Arena Team at the end of an arena match. </dd>
<dd> <a title="API GetCurrentArenaSeason" href="http://www.wowwiki.com/API_GetCurrentArenaSeason">GetCurrentArenaSeason</a>() - Gets the  current Arena season. </dd>
<dd> <a class="new" title="API GetInspectArenaTeamData (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetInspectArenaTeamData&amp;action=edit&amp;redlink=1">GetInspectArenaTeamData</a>(index) - Retrieves all the  data associated with the inspected player&#8217;s arena team located at index. </dd>
<dd> <a class="new" title="API GetNumArenaTeamMembers (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumArenaTeamMembers&amp;action=edit&amp;redlink=1">GetNumArenaTeamMembers</a>(teamIndex[, showOffline]) -  Gets the number of arena team members. This requires a call to <a title="API  ArenaTeamRoster" href="http://www.wowwiki.com/API_ArenaTeamRoster">ArenaTeamRoster</a> you only need to do this when the  player logins in, UI reloads will not effect the return. </dd>
<dd> <a class="new" title="API GetPreviousArenaSeason (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPreviousArenaSeason&amp;action=edit&amp;redlink=1">GetPreviousArenaSeason</a>() - Gets the previous Arena  season. </dd>
<dd> <a title="API IsActiveBattlefieldArena" href="http://www.wowwiki.com/API_IsActiveBattlefieldArena">IsActiveBattlefieldArena</a>() -  Returns true if in an Arena Match, also Returns true for the second  argument if it&#8217;s a registered match. </dd>
<dd> <a class="new" title="API IsArenaTeamCaptain (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsArenaTeamCaptain&amp;action=edit&amp;redlink=1">IsArenaTeamCaptain</a>(teamIndex) - Returns a value based  on whether the player is the arena team captain. </dd>
<dd> <a class="new" title="API IsBattlefieldArena (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsBattlefieldArena&amp;action=edit&amp;redlink=1">IsBattlefieldArena</a>() - Returns true if the  battlemaster you&#8217;re talking to can queue you for arenas </dd>
<dd> <a class="new" title="API IsInArenaTeam (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsInArenaTeam&amp;action=edit&amp;redlink=1">IsInArenaTeam</a>() - Returns true if you are a member of  an arena team. </dd>
</dl>
<p><a id="Auction_Functions" rel="nofollow" name="Auction_Functions"></a></p>
<h3><span class="mw-headline"> Auction Functions </span></h3>
<dl>
<dd> <a class="new" title="API CalculateAuctionDeposit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalculateAuctionDeposit&amp;action=edit&amp;redlink=1">CalculateAuctionDeposit</a>(runTime, stackSize,  numStacks) - Returns the required deposit for the current selling item  given the specified duration (minutes). </dd>
<dd> <a class="new" title="API CanCancelAuction (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanCancelAuction&amp;action=edit&amp;redlink=1">CanCancelAuction</a>(index) - Returns 1 if auction can be  canceled. </dd>
<dd> <a title="API  CancelSell" href="http://www.wowwiki.com/API_CancelSell">CancelSell</a>() - Clears the auction house listing queue,  not creating any additional auctions. (3.3.3) </dd>
<dd> <a title="API CanSendAuctionQuery" href="http://www.wowwiki.com/API_CanSendAuctionQuery">CanSendAuctionQuery</a>() - Return 1 if  auction search button would be active, nil otherwise. </dd>
<dd> <a class="new" title="API CancelAuction (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CancelAuction&amp;action=edit&amp;redlink=1">CancelAuction</a>(index) - Cancel the specified auction  (on the &#8220;owner&#8221; list). </dd>
<dd> <a title="API  ClickAuctionSellItemButton" href="http://www.wowwiki.com/API_ClickAuctionSellItemButton">ClickAuctionSellItemButton</a>() - Puts the  currently &#8216;picked up&#8217; item into the &#8216;create auction&#8217; slot. </dd>
<dd> <a title="API CloseAuctionHouse" href="http://www.wowwiki.com/API_CloseAuctionHouse">CloseAuctionHouse</a>() - Will close the  AuctionFrame if opened. </dd>
<dd> <a class="new" title="API GetAuctionHouseDepositRate (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAuctionHouseDepositRate&amp;action=edit&amp;redlink=1">GetAuctionHouseDepositRate</a>() - Returns the  deposit rate (percentage) for the currently open auction house (Possibly  out-dated by <a class="new" title="API CalculateAuctionDeposit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalculateAuctionDeposit&amp;action=edit&amp;redlink=1">CalculateAuctionDeposit</a>). </dd>
<dd> <a title="API GetAuctionInvTypes" href="http://www.wowwiki.com/API_GetAuctionInvTypes">GetAuctionInvTypes</a>(classIndex,  subclassIndex) - Returns types of subcategories items. </dd>
<dd> <a title="API GetAuctionItemClasses" href="http://www.wowwiki.com/API_GetAuctionItemClasses">GetAuctionItemClasses</a>() - Returns  major auction item categories. </dd>
<dd> <a title="API GetAuctionItemInfo" href="http://www.wowwiki.com/API_GetAuctionItemInfo">GetAuctionItemInfo</a>(&#8221;type&#8221;, index) -  Returns details about the specified auction item. </dd>
<dd> <a title="API GetAuctionItemLink" href="http://www.wowwiki.com/API_GetAuctionItemLink">GetAuctionItemLink</a>(&#8221;type&#8221;, index) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the specified auction item. </dd>
<dd> <a title="API GetAuctionItemSubClasses" href="http://www.wowwiki.com/API_GetAuctionItemSubClasses">GetAuctionItemSubClasses</a>(classIndex)  - Returns subcategories in the nth auction category. </dd>
<dd> <a title="API GetAuctionItemTimeLeft" href="http://www.wowwiki.com/API_GetAuctionItemTimeLeft">GetAuctionItemTimeLeft</a>(&#8221;type&#8221;,  index) - Returns the time left status of the specified auction item. </dd>
<dd> <a title="API GetAuctionSellItemInfo" href="http://www.wowwiki.com/API_GetAuctionSellItemInfo">GetAuctionSellItemInfo</a>() -  Returns information about the current selling item (or nil if none  selected). </dd>
<dd> <a class="new" title="API GetBidderAuctionItems (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBidderAuctionItems&amp;action=edit&amp;redlink=1">GetBidderAuctionItems</a>([page]) - Returns details about  an auction item on which the user is bidding (possibly out-dated by <a title="API  GetAuctionItemInfo" href="http://www.wowwiki.com/API_GetAuctionItemInfo">GetAuctionItemInfo</a>(&#8221;bidder&#8221;, item)) </dd>
<dd> <a title="API GetNumAuctionItems" href="http://www.wowwiki.com/API_GetNumAuctionItems">GetNumAuctionItems</a>(&#8221;type&#8221;) - Returns  the size of the specified auction item list. </dd>
<dd> <a class="new" title="API GetOwnerAuctionItems (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetOwnerAuctionItems&amp;action=edit&amp;redlink=1">GetOwnerAuctionItems</a>([page]) - Returns details about  an auction item of which the user is the owner (possibly out-dated by <a title="API  GetAuctionItemInfo" href="http://www.wowwiki.com/API_GetAuctionItemInfo">GetAuctionItemInfo</a>(&#8221;owner&#8221;, item)) </dd>
<dd> <a class="new" title="API GetSelectedAuctionItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSelectedAuctionItem&amp;action=edit&amp;redlink=1">GetSelectedAuctionItem</a>(&#8221;type&#8221;) - Returns the index  (1-50) of the selected auction item or 0 if none is selected. </dd>
<dd> <a title="API IsAuctionSortReversed" href="http://www.wowwiki.com/API_IsAuctionSortReversed">IsAuctionSortReversed</a>(&#8221;type&#8221;,  &#8220;sort&#8221;) - Returns 1 if the specified auction list and sort is reversed,  nil otherwise. </dd>
<dd> <a title="API PlaceAuctionBid" href="http://www.wowwiki.com/API_PlaceAuctionBid">PlaceAuctionBid</a>(&#8221;type&#8221;, index, bid) -  Place a bid on the selected auction item. </dd>
<dd> <a title="API QueryAuctionItems" href="http://www.wowwiki.com/API_QueryAuctionItems">QueryAuctionItems</a>(&#8221;name&#8221;, minLevel,  maxLevel, invTypeIndex, classIndex, subclassIndex, page, isUsable,  qualityIndex) - Performs a search of the auction house with the  specified characteristics. </dd>
<dd> <a class="new" title="API SetAuctionsTabShowing (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetAuctionsTabShowing&amp;action=edit&amp;redlink=1">SetAuctionsTabShowing</a>(showing) - Sets whether  auction-related events should be delivered to the client. (3.3.3) </dd>
<dd> <a title="API SetSelectedAuctionItem" href="http://www.wowwiki.com/API_SetSelectedAuctionItem">SetSelectedAuctionItem</a>(&#8221;type&#8221;,  index) - Selects a specific item in the auction house. </dd>
<dd> <a title="API SortAuctionItems" href="http://www.wowwiki.com/API_SortAuctionItems">SortAuctionItems</a>(&#8221;type&#8221;, &#8220;sort&#8221;) -  Request that the specified auction list be sorted by a specific column. </dd>
<dd> <a title="API  StartAuction" href="http://www.wowwiki.com/API_StartAuction">StartAuction</a>(minBid, buyoutPrice, runTime, stackSize,  numStacks) - Starts the auction you have created in the Create Auction  panel. </dd>
<dd> UI <a title="API AuctionFrameAuctions.duration" href="http://www.wowwiki.com/API_AuctionFrameAuctions.duration">AuctionFrameAuctions.duration</a> - Set the amount of time the auction will run for in minutes. </dd>
</dl>
<p><a id="Bank_Functions" rel="nofollow" name="Bank_Functions"></a></p>
<h3><span class="mw-headline"> Bank Functions </span></h3>
<dl>
<dd> <a title="API BankButtonIDToInvSlotID" href="http://www.wowwiki.com/API_BankButtonIDToInvSlotID">BankButtonIDToInvSlotID</a>(buttonID,  isBag) - Returns the ID number of a bank button or bag in terms of  inventory slot ID. </dd>
<dd> <a title="API  CloseBankFrame" href="http://www.wowwiki.com/API_CloseBankFrame">CloseBankFrame</a>() - Close the bank frame if it&#8217;s  open. </dd>
<dd> <a title="API GetBankSlotCost" href="http://www.wowwiki.com/API_GetBankSlotCost">GetBankSlotCost</a>(numSlots) - Returns the  cost of the next bank slot. </dd>
<dd> <a title="API GetNumBankSlots" href="http://www.wowwiki.com/API_GetNumBankSlots">GetNumBankSlots</a>() - Returns total  purchased bank bag slots, and a flag indicating if it&#8217;s full. </dd>
<dd> <a class="new" title="API PurchaseSlot (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PurchaseSlot&amp;action=edit&amp;redlink=1">PurchaseSlot</a>() - Buys another bank slot if available. </dd>
</dl>
<p><a id="Barber_Shop_Functions" rel="nofollow" name="Barber_Shop_Functions"></a></p>
<h3><span class="mw-headline"> Barber  Shop Functions </span></h3>
<p>These functions were introduced in <a title="Patch 3.0.2" href="http://www.wowwiki.com/Patch_3.0.2">Patch  3.0.2</a>.</p>
<dl>
<dd> <a title="API ApplyBarberShopStyle" href="http://www.wowwiki.com/API_ApplyBarberShopStyle">ApplyBarberShopStyle</a>() - Purchase  and apply the cosmetic changes. </dd>
<dd> <a title="API BarberShopReset" href="http://www.wowwiki.com/API_BarberShopReset">BarberShopReset</a>() - Reset any changes  made in the Barber Shop. </dd>
<dd> <a title="API CancelBarberShop" href="http://www.wowwiki.com/API_CancelBarberShop">CancelBarberShop</a>() - Exit the Barber  Shop chair. </dd>
<dd> <a title="API GetBarberShopStyleInfo" href="http://www.wowwiki.com/API_GetBarberShopStyleInfo">GetBarberShopStyleInfo</a>(id) -  Returns information about the currently selected style. </dd>
<dd> <a title="API GetBarberShopTotalCost" href="http://www.wowwiki.com/API_GetBarberShopTotalCost">GetBarberShopTotalCost</a>() -  Returns the total costs of the cosmetic changes. </dd>
<dd> <a title="API  GetFacialHairCustomization" href="http://www.wowwiki.com/API_GetFacialHairCustomization">GetFacialHairCustomization</a>() - Returns  the type of facial hair customization available to the character. </dd>
<dd> <a title="API GetHairCustomization" href="http://www.wowwiki.com/API_GetHairCustomization">GetHairCustomization</a>() - Returns  the type of haircut customization available to the character. </dd>
<dd> <a title="API SetNextBarberShopStyle" href="http://www.wowwiki.com/API_SetNextBarberShopStyle">SetNextBarberShopStyle</a>(id[,  reverse]) - Alters style selection in a particular category. </dd>
</dl>
<p><a id="Battlefield_Functions" rel="nofollow" name="Battlefield_Functions"></a></p>
<h3><span class="mw-headline"> Battlefield Functions </span></h3>
<dl>
<dd> <a title="API AcceptAreaSpiritHeal" href="http://www.wowwiki.com/API_AcceptAreaSpiritHeal">AcceptAreaSpiritHeal</a>() - Accept a  spirit heal. </dd>
<dd> <a title="API AcceptBattlefieldPort" href="http://www.wowwiki.com/API_AcceptBattlefieldPort">AcceptBattlefieldPort</a>(index[,  acceptFlag]) - Accept or reject an offered battlefield port. </dd>
<dd> <a title="API CancelAreaSpiritHeal" href="http://www.wowwiki.com/API_CancelAreaSpiritHeal">CancelAreaSpiritHeal</a>() - Cancel a  spirit heal. </dd>
<dd> <a title="API CanJoinBattlefieldAsGroup" href="http://www.wowwiki.com/API_CanJoinBattlefieldAsGroup">CanJoinBattlefieldAsGroup</a>() -  returns nil if the player can not do a group join for a battlefield. </dd>
<dd> <a class="new" title="API CheckSpiritHealerDist (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CheckSpiritHealerDist&amp;action=edit&amp;redlink=1">CheckSpiritHealerDist</a>() - Return true if you are in  range with spirit healer while dead. </dd>
<dd> <a title="API CloseBattlefield" href="http://www.wowwiki.com/API_CloseBattlefield">CloseBattlefield</a>() - Closes the queue  for battlefield window. </dd>
<dd> <a title="API GetAreaSpiritHealerTime" href="http://www.wowwiki.com/API_GetAreaSpiritHealerTime">GetAreaSpiritHealerTime</a>() -  Returns the time left until the next resurrection by the Sprit Guide. </dd>
<dd> <a title="API GetBattlefieldEstimatedWaitTime" href="http://www.wowwiki.com/API_GetBattlefieldEstimatedWaitTime">GetBattlefieldEstimatedWaitTime</a>(index)  - Get the estimated wait for entry into the battlefield. </dd>
<dd> <a title="API  GetBattlefieldFlagPosition" href="http://www.wowwiki.com/API_GetBattlefieldFlagPosition">GetBattlefieldFlagPosition</a>(index) - Get  the map position and texture of the flag. </dd>
<dd> <a title="API GetBattlefieldInfo" href="http://www.wowwiki.com/API_GetBattlefieldInfo">GetBattlefieldInfo</a>(index) - Returns  detailed information on the Battlefield you last opened a queue window  for. </dd>
<dd> <a title="API GetBattlefieldInstanceExpiration" href="http://www.wowwiki.com/API_GetBattlefieldInstanceExpiration">GetBattlefieldInstanceExpiration</a>()  - Get shutdown timer for the battlefield instance. </dd>
<dd> <a class="new" title="API GetBattlefieldInstanceInfo (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBattlefieldInstanceInfo&amp;action=edit&amp;redlink=1">GetBattlefieldInstanceInfo</a>(index) - Get the  instance ID for a battlefield. </dd>
<dd> <a class="new" title="API GetBattlefieldInstanceRunTime (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBattlefieldInstanceRunTime&amp;action=edit&amp;redlink=1">GetBattlefieldInstanceRunTime</a>() - In  milliseconds, the time since battleground started (seems to be queried  from server because it is not in sync with time()). </dd>
<dd> <a class="new" title="API GetBattlefieldMapIconScale (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBattlefieldMapIconScale&amp;action=edit&amp;redlink=1">GetBattlefieldMapIconScale</a>() - Scale of the  landmark icons on the battlefield minimap. </dd>
<dd> <a title="API GetBattlefieldPortExpiration" href="http://www.wowwiki.com/API_GetBattlefieldPortExpiration">GetBattlefieldPortExpiration</a>(index)  - Get the remaining seconds before the battlefield port expires. </dd>
<dd> <a title="API GetBattlefieldPosition" href="http://www.wowwiki.com/API_GetBattlefieldPosition">GetBattlefieldPosition</a>(index) -  Get the map position and name of a player in the battleground not in  your raid. </dd>
<dd> <a title="API GetBattlefieldScore" href="http://www.wowwiki.com/API_GetBattlefieldScore">GetBattlefieldScore</a>(index) - Get  score information about a player. </dd>
<dd> <a title="API GetBattlefieldStatData" href="http://www.wowwiki.com/API_GetBattlefieldStatData">GetBattlefieldStatData</a>(playerIndex,  slotIndex) - Get information for a player from a column thats specific  to a battleground (like Warsong Gulch flag captures). </dd>
<dd> <a title="API GetBattlefieldStatInfo" href="http://www.wowwiki.com/API_GetBattlefieldStatInfo">GetBattlefieldStatInfo</a>(index) -  Get the battleground specific column for the score board. </dd>
<dd> <a title="API GetBattlefieldStatus" href="http://www.wowwiki.com/API_GetBattlefieldStatus">GetBattlefieldStatus</a>(index) - Get  the battlefield&#8217;s current status. </dd>
<dd> <a title="API GetBattlefieldTimeWaited" href="http://www.wowwiki.com/API_GetBattlefieldTimeWaited">GetBattlefieldTimeWaited</a>(index)  - Get time waited in queue in milliseconds. </dd>
<dd> <a title="API GetBattlefieldWinner" href="http://www.wowwiki.com/API_GetBattlefieldWinner">GetBattlefieldWinner</a>() - Get the  battlefields winner. </dd>
<dd> <a title="API GetBattlegroundInfo" href="http://www.wowwiki.com/API_GetBattlegroundInfo">GetBattlegroundInfo</a>() - Returns  information about a battleground type. </dd>
<dd> <a title="API GetHonorCurrency" href="http://www.wowwiki.com/API_GetHonorCurrency">GetHonorCurrency</a>() - Gets the amount of  honor points the player currently has to spend. </dd>
<dd> <a class="new" title="API GetNumBattlefieldFlagPositions (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumBattlefieldFlagPositions&amp;action=edit&amp;redlink=1">GetNumBattlefieldFlagPositions</a>() - Get the  number of flag positions available from GetBattlefieldFlagPosition(). </dd>
<dd> <a title="API  GetNumBattlefieldPositions" href="http://www.wowwiki.com/API_GetNumBattlefieldPositions">GetNumBattlefieldPositions</a>() - Get the  number of positions available from GetBattlefieldPosition(). </dd>
<dd> <a title="API GetNumBattlefields" href="http://www.wowwiki.com/API_GetNumBattlefields">GetNumBattlefields</a>() - Get the number  of running battlefields for the last battleground queue window you  opened. </dd>
<dd> <a title="API GetNumBattlefieldScores" href="http://www.wowwiki.com/API_GetNumBattlefieldScores">GetNumBattlefieldScores</a>() -  Returns the number of scores(players) listed in the battlefield  scoreboard. </dd>
<dd> <a title="API GetNumBattlefieldStats" href="http://www.wowwiki.com/API_GetNumBattlefieldStats">GetNumBattlefieldStats</a>() - Get  the number of battleground specific columns. </dd>
<dd> <a class="new" title="API GetNumWorldStateUI (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumWorldStateUI&amp;action=edit&amp;redlink=1">GetNumWorldStateUI</a>() - Get the number of WorldState  UI&#8217;s. </dd>
<dd> <a class="new" title="API GetSelectedBattlefield (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSelectedBattlefield&amp;action=edit&amp;redlink=1">GetSelectedBattlefield</a>() - Get the selected  battlefield to join first. </dd>
<dd> <a title="API GetWintergraspWaitTime" href="http://www.wowwiki.com/API_GetWintergraspWaitTime">GetWintergraspWaitTime</a>() - Get  the number of seconds until the next Wintergrasp battle. Returns nil if  battle is in progress. </dd>
<dd> <a title="API GetWorldStateUIInfo" href="http://www.wowwiki.com/API_GetWorldStateUIInfo">GetWorldStateUIInfo</a>(i) - Get score  and flag status within a battlefield. </dd>
<dd> <a class="new" title="API IsPVPTimerRunning (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsPVPTimerRunning&amp;action=edit&amp;redlink=1">IsPVPTimerRunning</a>() </dd>
<dd> <a title="API JoinBattlefield" href="http://www.wowwiki.com/API_JoinBattlefield">JoinBattlefield</a>(index[, joinAs]) - Queue  for a battleground either solo or as a group. </dd>
<dd> <a title="API LeaveBattlefield" href="http://www.wowwiki.com/API_LeaveBattlefield">LeaveBattlefield</a>() - Leave the current  battlefield </dd>
<dd> <a class="new" title="API ReportPlayerIsPVPAFK (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ReportPlayerIsPVPAFK&amp;action=edit&amp;redlink=1">ReportPlayerIsPVPAFK</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Reports  the specified player as AFK in a battleground. </dd>
<dd> <a title="API  RequestBattlefieldPositions" href="http://www.wowwiki.com/API_RequestBattlefieldPositions">RequestBattlefieldPositions</a>() -  Request new data for GetBattlefieldPosition(). </dd>
<dd> <a title="API  RequestBattlefieldScoreData" href="http://www.wowwiki.com/API_RequestBattlefieldScoreData">RequestBattlefieldScoreData</a>() -  Request new data for GetBattlefieldScore(). </dd>
<dd> <a title="API RequestBattlegroundInstanceInfo" href="http://www.wowwiki.com/API_RequestBattlegroundInstanceInfo">RequestBattlegroundInstanceInfo</a>(index)  - Requests data about the available instances of a battleground. </dd>
<dd> <a title="API  SetBattlefieldScoreFaction" href="http://www.wowwiki.com/API_SetBattlefieldScoreFaction">SetBattlefieldScoreFaction</a>([faction]) -  Set the faction to show on the battlefield scoreboard. </dd>
<dd> <a class="new" title="API SetSelectedBattlefield (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSelectedBattlefield&amp;action=edit&amp;redlink=1">SetSelectedBattlefield</a>(index) - Select the  battlefield instance you want to join or the first one that becomes  available. </dd>
<dd> REMOVED (3.3.3) <a class="new" title="API ShowBattlefieldList (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ShowBattlefieldList&amp;action=edit&amp;redlink=1">ShowBattlefieldList</a>(index) - Displays a queue window  for the specified battlefield. Only works if you are already in a queue  for the battlefield. Index corresponds to location in queue array. </dd>
</dl>
<p><a id="Binding_Functions" rel="nofollow" name="Binding_Functions"></a></p>
<h3><span class="mw-headline"> Binding Functions </span></h3>
<dl>
<dd> <a title="API  GetBinding" href="http://www.wowwiki.com/API_GetBinding">GetBinding</a>(index) - Get action and key bindings for that  index. </dd>
<dd> <a title="API GetBindingAction" href="http://www.wowwiki.com/API_GetBindingAction">GetBindingAction</a>(&#8221;KEY&#8221;  [,checkOverride]) - Get the action bound to that key. </dd>
<dd> <a title="API  GetBindingKey" href="http://www.wowwiki.com/API_GetBindingKey">GetBindingKey</a>(&#8221;command&#8221;) - Get the key(s) bound to  that action. </dd>
<dd> UI <a title="API GetBindingText" href="http://www.wowwiki.com/API_GetBindingText">GetBindingText</a>(&#8221;key&#8221;, &#8220;prefix&#8221;,  returnAbbr) - Gets the string value for the key. </dd>
<dd> <a title="API GetCurrentBindingSet" href="http://www.wowwiki.com/API_GetCurrentBindingSet">GetCurrentBindingSet</a>() - Queries if  current set of key bindings is character or account specific </dd>
<dd> <a title="API  GetNumBindings" href="http://www.wowwiki.com/API_GetNumBindings">GetNumBindings</a>() - Get total number key bindings  and headers. </dd>
<dd> <a title="API  LoadBindings" href="http://www.wowwiki.com/API_LoadBindings">LoadBindings</a>(which) - Loads default, account or  character specific key binding set into memory from disk. </dd>
<dd> <a title="API  RunBinding" href="http://www.wowwiki.com/API_RunBinding">RunBinding</a>(&#8221;command&#8221;[, "up"]) - Executes the key binding  named &#8220;command&#8221; </dd>
<dd> <a title="API  SaveBindings" href="http://www.wowwiki.com/API_SaveBindings">SaveBindings</a>(which) - Saves account or character  specific key bindings from memory to disk. </dd>
<dd> NOCOMBAT <a title="API SetBinding" href="http://www.wowwiki.com/API_SetBinding">SetBinding</a>(&#8221;key&#8221;[, "command"[, mode]]) - Sets  or unsets key bindings. (2.0 - Can not be used in combat.) </dd>
<dd> NOCOMBAT <a title="API SetBindingSpell" href="http://www.wowwiki.com/API_SetBindingSpell">SetBindingSpell</a>(&#8221;KEY&#8221;, &#8220;Spell Name&#8221;) -  Set a key binding directly to a spell, uses the same spell name syntax  as /cast. </dd>
<dd> NOCOMBAT <a title="API SetBindingClick" href="http://www.wowwiki.com/API_SetBindingClick">SetBindingClick</a>(&#8221;KEY&#8221;, &#8220;ButtonName&#8221;  [,"mouseButton"]) - Set a key binding directly to a Button object. The  click sends a mouse down when the key is pressed, and a mouse up when it  is released. </dd>
<dd> NOCOMBAT <a title="API SetBindingItem" href="http://www.wowwiki.com/API_SetBindingItem">SetBindingItem</a>(&#8221;KEY&#8221;, &#8220;itemname&#8221;) - </dd>
<dd> NOCOMBAT <a title="API SetBindingMacro" href="http://www.wowwiki.com/API_SetBindingMacro">SetBindingMacro</a>(&#8221;KEY&#8221;,  &#8220;macroname&#8221;|macroid) - </dd>
<dd> <a title="API  SetConsoleKey" href="http://www.wowwiki.com/API_SetConsoleKey">SetConsoleKey</a>(&#8221;key&#8221;) - Sets the console key (normally  ~ ). </dd>
<dd> NOCOMBAT <a title="API  SetOverrideBinding" href="http://www.wowwiki.com/API_SetOverrideBinding">SetOverrideBinding</a>(owner, isPriority, &#8220;KEY&#8221;  [,"COMMAND"]) - Set (or clear) an override key binding. </dd>
<dd> NOCOMBAT <a class="new" title="API SetOverrideBindingSpell (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetOverrideBindingSpell&amp;action=edit&amp;redlink=1">SetOverrideBindingSpell</a>(owner, isPriority, &#8220;KEY&#8221;,  &#8220;spellname&#8221;) - </dd>
<dd> NOCOMBAT <a title="API  SetOverrideBindingClick" href="http://www.wowwiki.com/API_SetOverrideBindingClick">SetOverrideBindingClick</a>(owner, isPriority,  &#8220;key&#8221;, &#8220;buttonName&#8221; [, "mouseClick"]) - Sets an override binding that  acts like a mouse click on a button. </dd>
<dd> NOCOMBAT <a class="new" title="API SetOverrideBindingItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetOverrideBindingItem&amp;action=edit&amp;redlink=1">SetOverrideBindingItem</a>(owner, isPriority, &#8220;KEY&#8221;,  &#8220;itemname&#8221;) - </dd>
<dd> NOCOMBAT <a class="new" title="API SetOverrideBindingMacro (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetOverrideBindingMacro&amp;action=edit&amp;redlink=1">SetOverrideBindingMacro</a>(owner, isPriority, &#8220;KEY&#8221;,  &#8220;macroname&#8221;|macroid) - </dd>
<dd> NOCOMBAT <a class="new" title="API ClearOverrideBindings (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClearOverrideBindings&amp;action=edit&amp;redlink=1">ClearOverrideBindings</a>(owner) - Reset all overrides  belonging to an owner. </dd>
<dd> <a class="new" title="API SetMouselookOverrideBinding (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetMouselookOverrideBinding&amp;action=edit&amp;redlink=1">SetMouselookOverrideBinding</a>(&#8221;KEY&#8221;  [,"COMMAND"]) - </dd>
<dd> <a title="API IsModifierKeyDown" href="http://www.wowwiki.com/API_IsModifierKeyDown">IsModifierKeyDown</a>() - equivalent to  (IsShiftKeyDown() or IsControlKeyDown() or IsAltKeyDown()). </dd>
<dd> <a title="API IsModifiedClick" href="http://www.wowwiki.com/API_IsModifiedClick">IsModifiedClick</a>(&#8221;action&#8221;) - Returns 1 if  the keys for the specified action are down, nil otherwise. </dd>
<dd> <a class="new" title="API IsMouseButtonDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsMouseButtonDown&amp;action=edit&amp;redlink=1">IsMouseButtonDown</a>([button or "button"]) - </dd>
</dl>
<p><a id="Buff.2FDebuff_Functions" rel="nofollow" name="Buff.2FDebuff_Functions"></a></p>
<h3><span class="mw-headline"> Buff/Debuff Functions </span></h3>
<dl>
<dd> <a title="API  CancelUnitBuff" href="http://www.wowwiki.com/API_CancelUnitBuff">CancelUnitBuff</a>(&#8221;unit&#8221;, index or &#8220;spell&#8221; [,"filter"  or "rank"]) - Removes a specific buff from the player. </dd>
<dd> PROTECTED <a title="API  CancelShapeshiftForm" href="http://www.wowwiki.com/API_CancelShapeshiftForm">CancelShapeshiftForm</a>() - Cancels a druid&#8217;s  shapeshift form buff. </dd>
<dd> <a title="API CancelItemTempEnchantment" href="http://www.wowwiki.com/API_CancelItemTempEnchantment">CancelItemTempEnchantment</a>(weaponHand)  - Cancels a temporary weapon enchant on <em>weaponHand</em> (1 for Main  hand, 2 for Off hand). </dd>
<dd> <a title="API GetWeaponEnchantInfo" href="http://www.wowwiki.com/API_GetWeaponEnchantInfo">GetWeaponEnchantInfo</a>() - Return  information about main and offhand weapon enchantments. </dd>
<dd> <a title="API  UnitAura" href="http://www.wowwiki.com/API_UnitAura">UnitAura</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;, index or &#8220;buffName&#8221; [,filter]) - Returns  information about a buff/debuff of a certain unit. </dd>
<dd> <a title="API  UnitBuff" href="http://www.wowwiki.com/API_UnitBuff">UnitBuff</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;, index or &#8220;buffName&#8221; [,castable]) - Retrieves  info about a buff of a certain unit. </dd>
<dd> <a title="API  UnitDebuff" href="http://www.wowwiki.com/API_UnitDebuff">UnitDebuff</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;, index or &#8220;buffName&#8221; [,removable]) - Retrieves  info about a debuff of a certain unit. </dd>
</dl>
<p><a id="Calendar_Functions" rel="nofollow" name="Calendar_Functions"></a></p>
<h3><span class="mw-headline"> Calendar Functions </span></h3>
<dl>
<dd> HW <a title="API CalendarAddEvent" href="http://www.wowwiki.com/API_CalendarAddEvent">CalendarAddEvent</a>() - Saves the selected  event (new events only, requires hardware input to call) </dd>
<dd> <a class="new" title="API CalendarCanAddEvent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarCanAddEvent&amp;action=edit&amp;redlink=1">CalendarCanAddEvent</a>() - Returns true if player can  add an event </dd>
<dd> <a class="new" title="API CalendarCanSendInvite (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarCanSendInvite&amp;action=edit&amp;redlink=1">CalendarCanSendInvite</a>() - Returns true if player can  send invites </dd>
<dd> <a class="new" title="API CalendarCloseEvent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarCloseEvent&amp;action=edit&amp;redlink=1">CalendarCloseEvent</a>() - Closes the selected event  without saving it </dd>
<dd> <a class="new" title="API CalendarContextDeselectEvent (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextDeselectEvent&amp;action=edit&amp;redlink=1">CalendarContextDeselectEvent</a>() - New in 3.0.8 </dd>
<dd> <a class="new" title="API CalendarContextEventCanComplain (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventCanComplain&amp;action=edit&amp;redlink=1">CalendarContextEventCanComplain</a>(monthOffset,  day, eventIndex) - Returns true if player can report the event as spam </dd>
<dd> <a class="new" title="API CalendarContextEventCanEdit (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventCanEdit&amp;action=edit&amp;redlink=1">CalendarContextEventCanEdit</a>(monthOffset, day,  eventIndex) - Returns true if player can edit the event </dd>
<dd> <a class="new" title="API CalendarContextEventClipboard (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventClipboard&amp;action=edit&amp;redlink=1">CalendarContextEventClipboard</a>() </dd>
<dd> <a class="new" title="API CalendarContextEventComplain (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventComplain&amp;action=edit&amp;redlink=1">CalendarContextEventComplain</a>(monthOffset,  day, eventIndex) - Reports the event as spam </dd>
<dd> <a class="new" title="API CalendarContextEventCopy (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventCopy&amp;action=edit&amp;redlink=1">CalendarContextEventCopy</a>(monthOffset, day,  eventIndex) - Copies the event to the clipboard </dd>
<dd> <a class="new" title="API CalendarContextEventGetCalendarType (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventGetCalendarType&amp;action=edit&amp;redlink=1">CalendarContextEventGetCalendarType</a>() - ? </dd>
<dd> <a class="new" title="API CalendarContextEventPaste (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventPaste&amp;action=edit&amp;redlink=1">CalendarContextEventPaste</a>(monthOffset, day) - Pastes  the clipboard event to the date </dd>
<dd> <a class="new" title="API CalendarContextEventRemove (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventRemove&amp;action=edit&amp;redlink=1">CalendarContextEventRemove</a>(monthOffset, day,  eventIndex) - Deletes the event </dd>
<dd> <a class="new" title="API CalendarContextEventSignUp (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextEventSignUp&amp;action=edit&amp;redlink=1">CalendarContextEventSignUp</a>() - ? </dd>
<dd> <a class="new" title="API CalendarContextGetEventIndex (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextGetEventIndex&amp;action=edit&amp;redlink=1">CalendarContextGetEventIndex</a>() - New in 3.0.8 </dd>
<dd> <a class="new" title="API CalendarContextInviteAvailable (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteAvailable&amp;action=edit&amp;redlink=1">CalendarContextInviteAvailable</a>(monthOffset,  day, eventIndex) - Accepts the invitation to the event </dd>
<dd> <a class="new" title="API CalendarContextInviteDecline (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteDecline&amp;action=edit&amp;redlink=1">CalendarContextInviteDecline</a>(monthOffset,  day, eventIndex) - Declines the invitation to the event </dd>
<dd> <a class="new" title="API CalendarContextInviteIsPending (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteIsPending&amp;action=edit&amp;redlink=1">CalendarContextInviteIsPending</a>(monthOffset,  day, eventIndex) - Returns true if the player hasn&#8217;t responded to the  event invite </dd>
<dd> <a class="new" title="API CalendarContextInviteTentative (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteTentative&amp;action=edit&amp;redlink=1">CalendarContextInviteTentative</a>() - ? </dd>
<dd> <a class="new" title="API CalendarContextInviteType (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteType&amp;action=edit&amp;redlink=1">CalendarContextInviteType</a> - ? </dd>
<dd> <a class="new" title="API CalendarContextInviteModeratorStatus (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteModeratorStatus&amp;action=edit&amp;redlink=1">CalendarContextInviteModeratorStatus</a>(monthOffset,  day, eventIndex) - ? </dd>
<dd> <a class="new" title="API CalendarContextInviteRemove (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteRemove&amp;action=edit&amp;redlink=1">CalendarContextInviteRemove</a>(monthOffset, day,  eventIndex) - Removes the event from the calendar </dd>
<dd> <a class="new" title="API CalendarContextInviteStatus (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextInviteStatus&amp;action=edit&amp;redlink=1">CalendarContextInviteStatus</a>(monthOffset, day,  eventIndex) - returns inviteStatus </dd>
<dd> <a class="new" title="API CalendarContextSelectEvent (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarContextSelectEvent&amp;action=edit&amp;redlink=1">CalendarContextSelectEvent</a>(monthOffset, day,  eventIndex) - New in 3.0.8 </dd>
<dd> <a class="new" title="API CalendarDefaultGuildFilter (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarDefaultGuildFilter&amp;action=edit&amp;redlink=1">CalendarDefaultGuildFilter</a>() - returns  minLevel, maxLevel </dd>
<dd> <a class="new" title="API CalendarEventAvailable (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventAvailable&amp;action=edit&amp;redlink=1">CalendarEventAvailable</a>() - Accepts the inviation to  the currently open event </dd>
<dd> <a class="new" title="API CalendarEventCanEdit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventCanEdit&amp;action=edit&amp;redlink=1">CalendarEventCanEdit</a>() - Returns true if the event  can be edited </dd>
<dd> <a class="new" title="API CalendarEventCanModerate (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventCanModerate&amp;action=edit&amp;redlink=1">CalendarEventCanModerate</a> - ? </dd>
<dd> <a class="new" title="API CalendarEventClearAutoApprove (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventClearAutoApprove&amp;action=edit&amp;redlink=1">CalendarEventClearAutoApprove</a>() - Turns off  automatic confirmations </dd>
<dd> <a class="new" title="API CalendarEventClearLocked (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventClearLocked&amp;action=edit&amp;redlink=1">CalendarEventClearLocked</a>() - Unlocks the event </dd>
<dd> <a class="new" title="API CalendarEventClearModerator (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventClearModerator&amp;action=edit&amp;redlink=1">CalendarEventClearModerator</a>() </dd>
<dd> <a class="new" title="API CalendarEventDecline (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventDecline&amp;action=edit&amp;redlink=1">CalendarEventDecline</a>() - Declines the invitation to  the currently open event </dd>
<dd> <a class="new" title="API CalendarEventGetCalendarType (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetCalendarType&amp;action=edit&amp;redlink=1">CalendarEventGetCalendarType</a>() - ? </dd>
<dd> <a title="API CalendarEventGetInvite" href="http://www.wowwiki.com/API_CalendarEventGetInvite">CalendarEventGetInvite</a>(inviteeIndex)  - Returns status information for an invitee for the currently opened  event </dd>
<dd> <a class="new" title="API CalendarEventGetInviteResponseTime (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetInviteResponseTime&amp;action=edit&amp;redlink=1">CalendarEventGetInviteResponseTime</a>(inviteIndex)  - ? </dd>
<dd> <a class="new" title="API CalendarEventGetInviteSortCriterion (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetInviteSortCriterion&amp;action=edit&amp;redlink=1">CalendarEventGetInviteSortCriterion</a>() -  returns criterion, reverse </dd>
<dd> <a title="API  CalendarEventGetNumInvites" href="http://www.wowwiki.com/API_CalendarEventGetNumInvites">CalendarEventGetNumInvites</a>() - Returns  the number of invitees for the currently opened event </dd>
<dd> <a class="new" title="API CalendarEventGetRepeatOptions (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetRepeatOptions&amp;action=edit&amp;redlink=1">CalendarEventGetRepeatOptions</a>() - Returns  opt1, opt2 </dd>
<dd> <a class="new" title="API CalendarEventGetSelectedInvite (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetSelectedInvite&amp;action=edit&amp;redlink=1">CalendarEventGetSelectedInvite</a>() - returns  inviteIndex </dd>
<dd> <a class="new" title="API CalendarEventGetStatusOptions (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetStatusOptions&amp;action=edit&amp;redlink=1">CalendarEventGetStatusOptions</a>() - Returns ?? </dd>
<dd> <a class="new" title="API CalendarEventGetTextures (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetTextures&amp;action=edit&amp;redlink=1">CalendarEventGetTextures</a>(eventType) - Returns title1,  tex1, expLvl1, title2, tex2, expLvl2, &#8230; </dd>
<dd> <a class="new" title="API CalendarEventGetTypes (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventGetTypes&amp;action=edit&amp;redlink=1">CalendarEventGetTypes</a>() - Returns name1, name2, &#8230; </dd>
<dd> <a class="new" title="API CalendarEventHasPendingInvite (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventHasPendingInvite&amp;action=edit&amp;redlink=1">CalendarEventHasPendingInvite</a>() - Returns  true if the player has an unanswered invitation to the currently  selected event </dd>
<dd> <a class="new" title="API CalendarEventHaveSettingsChanged (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventHaveSettingsChanged&amp;action=edit&amp;redlink=1">CalendarEventHaveSettingsChanged</a>() - Returns  true if the currently open event has been modified </dd>
<dd> <a title="API CalendarEventInvite" href="http://www.wowwiki.com/API_CalendarEventInvite">CalendarEventInvite</a>(&#8221;Player&#8221;) -  Invite player to currently selected event </dd>
<dd> <a class="new" title="API CalendarEventIsModerator (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventIsModerator&amp;action=edit&amp;redlink=1">CalendarEventIsModerator</a>() - ? </dd>
<dd> <a class="new" title="API CalendarEventRemoveInvite (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventRemoveInvite&amp;action=edit&amp;redlink=1">CalendarEventRemoveInvite</a>(inviteIndex) </dd>
<dd> <a class="new" title="API CalendarEventSelectInvite (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSelectInvite&amp;action=edit&amp;redlink=1">CalendarEventSelectInvite</a>(inviteIndex) </dd>
<dd> <a class="new" title="API CalendarEventSetAutoApprove (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetAutoApprove&amp;action=edit&amp;redlink=1">CalendarEventSetAutoApprove</a>() </dd>
<dd> <a title="API CalendarEventSetDate" href="http://www.wowwiki.com/API_CalendarEventSetDate">CalendarEventSetDate</a>(month, day,  year) </dd>
<dd> <a class="new" title="API CalendarEventSetDescription (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetDescription&amp;action=edit&amp;redlink=1">CalendarEventSetDescription</a>(description) </dd>
<dd> <a class="new" title="API CalendarEventSetLocked (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetLocked&amp;action=edit&amp;redlink=1">CalendarEventSetLocked</a>() </dd>
<dd> <a class="new" title="API CalendarEventSetLockoutDate (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetLockoutDate&amp;action=edit&amp;redlink=1">CalendarEventSetLockoutDate</a>(lockoutDate) - ?? </dd>
<dd> <a class="new" title="API CalendarEventSetLockoutTime (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetLockoutTime&amp;action=edit&amp;redlink=1">CalendarEventSetLockoutTime</a>(lockoutTime) - ?? </dd>
<dd> <a class="new" title="API CalendarEventSetModerator (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetModerator&amp;action=edit&amp;redlink=1">CalendarEventSetModerator</a>(index) </dd>
<dd> <a class="new" title="API CalendarEventSetRepeatOption (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetRepeatOption&amp;action=edit&amp;redlink=1">CalendarEventSetRepeatOption</a>(repeatoption) </dd>
<dd> <a class="new" title="API CalendarEventSetSize (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetSize&amp;action=edit&amp;redlink=1">CalendarEventSetSize</a> - ?? </dd>
<dd> <a class="new" title="API CalendarEventSetStatus (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetStatus&amp;action=edit&amp;redlink=1">CalendarEventSetStatus</a>(index, status) - Sets the  invitation status of a player to the current event </dd>
<dd> <a class="new" title="API CalendarEventSetTextureID (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetTextureID&amp;action=edit&amp;redlink=1">CalendarEventSetTextureID</a>(textureIndex) </dd>
<dd> <a class="new" title="API CalendarEventSetTime (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetTime&amp;action=edit&amp;redlink=1">CalendarEventSetTime</a>(hour, minute) </dd>
<dd> <a class="new" title="API CalendarEventSetTitle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSetTitle&amp;action=edit&amp;redlink=1">CalendarEventSetTitle</a>(title) </dd>
<dd> <a title="API CalendarEventSetType" href="http://www.wowwiki.com/API_CalendarEventSetType">CalendarEventSetType</a>(type) </dd>
<dd> <a class="new" title="API CalendarEventSignUp (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSignUp&amp;action=edit&amp;redlink=1">CalendarEventSignUp</a>() - ? </dd>
<dd> <a class="new" title="API CalendarEventSortInvites (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventSortInvites&amp;action=edit&amp;redlink=1">CalendarEventSortInvites</a>(criterion) </dd>
<dd> <a class="new" title="API CalendarEventTentative (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarEventTentative&amp;action=edit&amp;redlink=1">CalendarEventTentative</a>() - ? </dd>
<dd> <a class="new" title="API CalendarGetAbsMonth (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetAbsMonth&amp;action=edit&amp;redlink=1">CalendarGetAbsMonth</a>() - returns month, year </dd>
<dd> <a title="API CalendarGetDate" href="http://www.wowwiki.com/API_CalendarGetDate">CalendarGetDate</a>() - Call this only after  PLAYER_ENTERING_WORLD event </dd>
<dd> <a title="API CalendarGetDayEvent" href="http://www.wowwiki.com/API_CalendarGetDayEvent">CalendarGetDayEvent</a>(monthOffset,  day, eventIndex) </dd>
<dd> <a title="API CalendarGetDayEventSequenceInfo" href="http://www.wowwiki.com/API_CalendarGetDayEventSequenceInfo">CalendarGetDayEventSequenceInfo</a> - Retrieve information about the specified event. </dd>
<dd> <a class="new" title="API CalendarGetEventIndex (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetEventIndex&amp;action=edit&amp;redlink=1">CalendarGetEventIndex</a>() - returns monthOffset, day,  index </dd>
<dd> <a title="API CalendarGetEventInfo" href="http://www.wowwiki.com/API_CalendarGetEventInfo">CalendarGetEventInfo</a>() - Returns  detailed information about an event selected with CalendarOpenEvent() </dd>
<dd> <a class="new" title="API CalendarGetFirstPendingInvite (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetFirstPendingInvite&amp;action=edit&amp;redlink=1">CalendarGetFirstPendingInvite</a>(monthOffset,  day) - returns eventIndex </dd>
<dd> <a class="new" title="API CalendarGetHolidayInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetHolidayInfo&amp;action=edit&amp;redlink=1">CalendarGetHolidayInfo</a>(monthOffset, day, eventIndex) </dd>
<dd> <a class="new" title="API CalendarGetMaxCreateDate (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetMaxCreateDate&amp;action=edit&amp;redlink=1">CalendarGetMaxCreateDate</a>() - returns maxWeekday,  maxMonth, maxDay, maxYear </dd>
<dd> <a class="new" title="API CalendarGetMaxDate (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetMaxDate&amp;action=edit&amp;redlink=1">CalendarGetMaxDate</a>() - returns maxWeekday, maxMonth,  maxDay, maxYear </dd>
<dd> <a class="new" title="API CalendarGetMinDate (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetMinDate&amp;action=edit&amp;redlink=1">CalendarGetMinDate</a>() - returns minWeekday, minMonth,  minDay, minYear </dd>
<dd> <a class="new" title="API CalendarGetMinHistoryDate (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetMinHistoryDate&amp;action=edit&amp;redlink=1">CalendarGetMinHistoryDate</a>() - returns minWeekday,  minMonth, minDay, minYear </dd>
<dd> <a title="API CalendarGetMonth" href="http://www.wowwiki.com/API_CalendarGetMonth">CalendarGetMonth</a>([monthOffset]) -  returns month, year </dd>
<dd> <a title="API CalendarGetMonthNames" href="http://www.wowwiki.com/API_CalendarGetMonthNames">CalendarGetMonthNames</a>() - returns a  list of the month names </dd>
<dd> <a title="API CalendarGetNumDayEvents" href="http://www.wowwiki.com/API_CalendarGetNumDayEvents">CalendarGetNumDayEvents</a>(monthOffset[,  day]) </dd>
<dd> <a class="new" title="API CalendarGetNumPendingInvites (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetNumPendingInvites&amp;action=edit&amp;redlink=1">CalendarGetNumPendingInvites</a>() - returns  count </dd>
<dd> <a class="new" title="API CalendarGetRaidInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetRaidInfo&amp;action=edit&amp;redlink=1">CalendarGetRaidInfo</a> (monthOffset, day, eventIndex) -  returns name, calendarType, raidID, hour, minute, difficulty </dd>
<dd> <a class="new" title="API CalendarGetWeekdayNames (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarGetWeekdayNames&amp;action=edit&amp;redlink=1">CalendarGetWeekdayNames</a>() - returns a list of the  weekday names </dd>
<dd> <a class="new" title="API CalendarIsActionPending (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarIsActionPending&amp;action=edit&amp;redlink=1">CalendarIsActionPending</a>() - returns isPending </dd>
<dd> <a class="new" title="API CalendarMassInviteArenaTeam (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarMassInviteArenaTeam&amp;action=edit&amp;redlink=1">CalendarMassInviteArenaTeam</a>(teamType) - ? </dd>
<dd> <a class="new" title="API CalendarMassInviteGuild (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarMassInviteGuild&amp;action=edit&amp;redlink=1">CalendarMassInviteGuild</a>(minLevel, maxLevel, rank) - ? </dd>
<dd> <a title="API CalendarNewEvent" href="http://www.wowwiki.com/API_CalendarNewEvent">CalendarNewEvent</a>() - Creates and  selected a new event </dd>
<dd> <a class="new" title="API CalendarNewGuildAnnouncement (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarNewGuildAnnouncement&amp;action=edit&amp;redlink=1">CalendarNewGuildAnnouncement</a>() - ? </dd>
<dd> <a class="new" title="API CalendarNewGuildEvent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarNewGuildEvent&amp;action=edit&amp;redlink=1">CalendarNewGuildEvent</a>(minLevel, maxLevel, minRank) -  Replaces the invite list of the selected new event with the specified  guild members </dd>
<dd> <a title="API CalendarOpenEvent" href="http://www.wowwiki.com/API_CalendarOpenEvent">CalendarOpenEvent</a>(monthOffset, day,  eventIndex) - Selects an existing event </dd>
<dd> <a class="new" title="API CalendarRemoveEvent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarRemoveEvent&amp;action=edit&amp;redlink=1">CalendarRemoveEvent</a>() - Removes the selected event  from the calendar (invitees only) </dd>
<dd> <a class="new" title="API CalendarSetAbsMonth (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarSetAbsMonth&amp;action=edit&amp;redlink=1">CalendarSetAbsMonth</a>(month, year) - Sets the reference  month and year for functions which use a month offset </dd>
<dd> <a class="new" title="API CalendarSetMonth (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarSetMonth&amp;action=edit&amp;redlink=1">CalendarSetMonth</a>(monthOffset) </dd>
<dd> <a class="new" title="API CalendarUpdateEvent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CalendarUpdateEvent&amp;action=edit&amp;redlink=1">CalendarUpdateEvent</a>() - Saves the selected event  (existing events only, requires hardware input to call) </dd>
<dd> <a class="new" title="API OpenCalendar (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_OpenCalendar&amp;action=edit&amp;redlink=1">OpenCalendar</a>() - New in 3.0.8 </dd>
</dl>
<p><a id="Camera_Functions" rel="nofollow" name="Camera_Functions"></a></p>
<h3><span class="mw-headline"> Camera Functions </span></h3>
<p><em>Mouse Look</em> refers to holding down the right mouse button and  controlling the movement direction. Shifting the view by holding down  the <em>left</em> mouse button is not covered by these APIs.</p>
<dl>
<dd> PROTECTED <a title="API  CameraOrSelectOrMoveStart" href="http://www.wowwiki.com/API_CameraOrSelectOrMoveStart">CameraOrSelectOrMoveStart</a>() - Begin &#8220;Left  click&#8221; in the 3D world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API  CameraOrSelectOrMoveStop" href="http://www.wowwiki.com/API_CameraOrSelectOrMoveStop">CameraOrSelectOrMoveStop</a>([stickyFlag]) -  End &#8220;Left click&#8221; in the 3D world. (1.10 - Protected) </dd>
<dd> <a title="API  CameraZoomIn" href="http://www.wowwiki.com/API_CameraZoomIn">CameraZoomIn</a>(increment) - Zooms the camera into the  viewplane by increment. </dd>
<dd> <a title="API  CameraZoomOut" href="http://www.wowwiki.com/API_CameraZoomOut">CameraZoomOut</a>(increment) - Zooms the camera out of  the viewplane by increment. </dd>
<dd> <a title="API  FlipCameraYaw" href="http://www.wowwiki.com/API_FlipCameraYaw">FlipCameraYaw</a>(degrees) - Rotates the camera about the  Z-axis by the angle amount specified in degrees. </dd>
<dd> <a title="API  IsMouselooking" href="http://www.wowwiki.com/API_IsMouselooking">IsMouselooking</a>() - Returns 1 if mouselook is  currently active, nil otherwise. </dd>
<dd> <a title="API  MouselookStart" href="http://www.wowwiki.com/API_MouselookStart">MouselookStart</a>() - Enters mouse look mode; mouse  movement is used to adjust movement/facing direction. </dd>
<dd> <a title="API  MouselookStop" href="http://www.wowwiki.com/API_MouselookStop">MouselookStop</a>() - Exits mouse look mode; mouse  movement is used to move the mouse cursor. </dd>
<dd> <a title="API MoveViewDownStart" href="http://www.wowwiki.com/API_MoveViewDownStart">MoveViewDownStart</a>() - Begins rotating  the camera downward. </dd>
<dd> <a title="API MoveViewDownStop" href="http://www.wowwiki.com/API_MoveViewDownStop">MoveViewDownStop</a>() - Stops rotating the  camera after <a title="API MoveViewDownStart" href="http://www.wowwiki.com/API_MoveViewDownStart">MoveViewDownStart</a>() is called. </dd>
<dd> <a title="API MoveViewInStart" href="http://www.wowwiki.com/API_MoveViewInStart">MoveViewInStart</a>() - Begins zooming the  camera in. </dd>
<dd> <a title="API  MoveViewInStop" href="http://www.wowwiki.com/API_MoveViewInStop">MoveViewInStop</a>() - Stops zooming the camera in  after <a title="API  MoveViewInStart" href="http://www.wowwiki.com/API_MoveViewInStart">MoveViewInStart</a>() is called. </dd>
<dd> <a title="API MoveViewLeftStart" href="http://www.wowwiki.com/API_MoveViewLeftStart">MoveViewLeftStart</a>() - Begins rotating  the camera to the Left. </dd>
<dd> <a title="API MoveViewLeftStop" href="http://www.wowwiki.com/API_MoveViewLeftStop">MoveViewLeftStop</a>() - Stops rotating the  camera after <a title="API MoveViewLeftStart" href="http://www.wowwiki.com/API_MoveViewLeftStart">MoveViewLeftStart</a>() is called. </dd>
<dd> <a title="API MoveViewOutStart" href="http://www.wowwiki.com/API_MoveViewOutStart">MoveViewOutStart</a>() - Begins zooming the  camera out. </dd>
<dd> <a title="API MoveViewOutStop" href="http://www.wowwiki.com/API_MoveViewOutStop">MoveViewOutStop</a>() - Stops zooming the  camera out after <a title="API MoveViewOutStart" href="http://www.wowwiki.com/API_MoveViewOutStart">MoveViewOutStart</a>() is called. </dd>
<dd> <a title="API MoveViewRightStart" href="http://www.wowwiki.com/API_MoveViewRightStart">MoveViewRightStart</a>() - Begins  rotating the camera to the Right. </dd>
<dd> <a title="API MoveViewRightStop" href="http://www.wowwiki.com/API_MoveViewRightStop">MoveViewRightStop</a>() - Stops rotating  the camera after <a title="API MoveViewRightStart" href="http://www.wowwiki.com/API_MoveViewRightStart">MoveViewRightStart</a>() is called. </dd>
<dd> <a title="API MoveViewUpStart" href="http://www.wowwiki.com/API_MoveViewUpStart">MoveViewUpStart</a>() - Begins rotating the  camera upward. </dd>
<dd> <a title="API  MoveViewUpStop" href="http://www.wowwiki.com/API_MoveViewUpStop">MoveViewUpStop</a>() - Stops rotating the camera after <a title="API  MoveViewUpStart" href="http://www.wowwiki.com/API_MoveViewUpStart">MoveViewUpStart</a>() is called. </dd>
<dd> PROTECTED <a class="new" title="API PitchDownStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PitchDownStart&amp;action=edit&amp;redlink=1">PitchDownStart</a>() - Begins pitching the camera  Downward. </dd>
<dd> PROTECTED <a class="new" title="API PitchDownStop (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PitchDownStop&amp;action=edit&amp;redlink=1">PitchDownStop</a>() - Stops pitching the camera after <a class="new" title="API PitchDownStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PitchDownStart&amp;action=edit&amp;redlink=1">PitchDownStart</a>() is called. </dd>
<dd> PROTECTED <a class="new" title="API PitchUpStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PitchUpStart&amp;action=edit&amp;redlink=1">PitchUpStart</a>() - Begins pitching the camera Upward. </dd>
<dd> PROTECTED <a class="new" title="API PitchUpStop (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PitchUpStop&amp;action=edit&amp;redlink=1">PitchUpStop</a>() - Stops pitching the camera after <a class="new" title="API PitchUpStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PitchUpStart&amp;action=edit&amp;redlink=1">PitchUpStart</a>() is called. </dd>
<dd> <a class="new" title="API NextView (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_NextView&amp;action=edit&amp;redlink=1">NextView</a>()  - Cycles forward through the five predefined camera positions. </dd>
<dd> <a class="new" title="API PrevView (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PrevView&amp;action=edit&amp;redlink=1">PrevView</a>()  - Cycles backward through the five predefined camera positions. </dd>
<dd> <a class="new" title="API ResetView (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResetView&amp;action=edit&amp;redlink=1">ResetView</a>(index)  - Resets the specified (1-5) predefined camera position to it&#8217;s default  if it was changed using <a title="API SaveView" href="http://www.wowwiki.com/API_SaveView">SaveView</a>(index). </dd>
<dd> <a title="API  SaveView" href="http://www.wowwiki.com/API_SaveView">SaveView</a>(index) - Replaces the specified (1-5) predefined  camera positions with the current camera position. </dd>
<dd> <a title="API  SetView" href="http://www.wowwiki.com/API_SetView">SetView</a>(index) - Sets camera position to a specified (1-5)  predefined camera position. </dd>
</dl>
<p><a id="Channel_Functions" rel="nofollow" name="Channel_Functions"></a></p>
<h3><span class="mw-headline"> Channel Functions </span></h3>
<p>These are chat functions which are specific to channels. Also see the  <a href="http://www.wowwiki.com/World_of_Warcraft_API#Chat_Window_Functions">Chat Window Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Communication_Functions">Communication Functions</a> sections.</p>
<dl>
<dd> <a title="API AddChatWindowChannel" href="http://www.wowwiki.com/API_AddChatWindowChannel">AddChatWindowChannel</a>(chatFrameIndex,  &#8220;channel&#8221;) - Make a chat channel visible in a specific ChatFrame. </dd>
<dd> <a title="API  ChannelBan" href="http://www.wowwiki.com/API_ChannelBan">ChannelBan</a>(&#8221;channel&#8221;, &#8220;name&#8221;) - Bans a player from the  specified channel. </dd>
<dd> <a title="API  ChannelInvite" href="http://www.wowwiki.com/API_ChannelInvite">ChannelInvite</a>(&#8221;channel&#8221;, &#8220;name&#8221;) - Invites the  specified user to the channel. </dd>
<dd> <a title="API  ChannelKick" href="http://www.wowwiki.com/API_ChannelKick">ChannelKick</a>(&#8221;channel&#8221;, &#8220;name&#8221;) - Kicks the specified  user from the channel. </dd>
<dd> <a title="API ChannelModerator" href="http://www.wowwiki.com/API_ChannelModerator">ChannelModerator</a>(&#8221;channel&#8221;, &#8220;name&#8221;) -  Sets the specified player as the channel moderator. </dd>
<dd> <a title="API  ChannelMute" href="http://www.wowwiki.com/API_ChannelMute">ChannelMute</a>(&#8221;channel&#8221;, &#8220;name&#8221;) - Turns off the  specified player&#8217;s ability to speak in a channel. </dd>
<dd> <a title="API  ChannelToggleAnnouncements" href="http://www.wowwiki.com/API_ChannelToggleAnnouncements">ChannelToggleAnnouncements</a>(&#8221;channel&#8221;) -  Toggles the channel to display announcements either on or off. </dd>
<dd> <a title="API  ChannelUnban" href="http://www.wowwiki.com/API_ChannelUnban">ChannelUnban</a>(&#8221;channel&#8221;, &#8220;name&#8221;) - Unbans a player from  a channel. </dd>
<dd> <a title="API ChannelUnmoderator" href="http://www.wowwiki.com/API_ChannelUnmoderator">ChannelUnmoderator</a>(&#8221;channel&#8221;, &#8220;name&#8221;)  - Takes the specified user away from the moderator status. </dd>
<dd> <a title="API  ChannelUnmute" href="http://www.wowwiki.com/API_ChannelUnmute">ChannelUnmute</a>(&#8221;channel&#8221;, &#8220;name&#8221;) - Unmutes the  specified user from the channel. </dd>
<dd> <a title="API DisplayChannelOwner" href="http://www.wowwiki.com/API_DisplayChannelOwner">DisplayChannelOwner</a>(&#8221;channel&#8221;) -  Displays the owner of the specified channel in the default chat. </dd>
<dd> <a class="new" title="API DeclineInvite (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DeclineInvite&amp;action=edit&amp;redlink=1">DeclineInvite</a>(&#8221;channel&#8221;) - Declines an invitation to  join a chat channel. </dd>
<dd> <a title="API EnumerateServerChannels" href="http://www.wowwiki.com/API_EnumerateServerChannels">EnumerateServerChannels</a>() -  Retrieves all available server channels (zone dependent). </dd>
<dd> <a title="API  GetChannelList" href="http://www.wowwiki.com/API_GetChannelList">GetChannelList</a>() - Retrieves joined channels. </dd>
<dd> <a title="API  GetChannelName" href="http://www.wowwiki.com/API_GetChannelName">GetChannelName</a>(&#8221;channel&#8221; or index) - Retrieves the  name from a specific channel. </dd>
<dd> <a title="API GetChatWindowChannels" href="http://www.wowwiki.com/API_GetChatWindowChannels">GetChatWindowChannels</a>(index) - Get  the chat channels received by a chat window. </dd>
<dd> <a title="API JoinChannelByName" href="http://www.wowwiki.com/API_JoinChannelByName">JoinChannelByName</a>(&#8221;channel&#8221;[,  "password"[, frameId]]) - Join the specified chat channel (with optional  password, and register for specified frame) (updated in 1.9). </dd>
<dd> <a title="API LeaveChannelByName" href="http://www.wowwiki.com/API_LeaveChannelByName">LeaveChannelByName</a>(&#8221;channel&#8221;) -  Leaves the channel with the specified name. </dd>
<dd> <a title="API ListChannelByName" href="http://www.wowwiki.com/API_ListChannelByName">ListChannelByName</a>(channelMatch) -  Lists members in the given channel to the chat window. </dd>
<dd> <a title="API  ListChannels" href="http://www.wowwiki.com/API_ListChannels">ListChannels</a>() - Lists all of the channels into the  chat window. </dd>
<dd> <a title="API RemoveChatWindowChannel" href="http://www.wowwiki.com/API_RemoveChatWindowChannel">RemoveChatWindowChannel</a>(chatFrameIndex,  &#8220;channel&#8221;) - Make a chat channel invisible (hidden) in a specific  ChatFrame. </dd>
<dd> <a title="API SendChatMessage" href="http://www.wowwiki.com/API_SendChatMessage">SendChatMessage</a>(&#8221;msg&#8221;,[ "chatType",[  "language",[ "channel"]]]) - Sends a chat message. </dd>
<dd> <a title="API SetChannelOwner" href="http://www.wowwiki.com/API_SetChannelOwner">SetChannelOwner</a>(&#8221;channel&#8221;, &#8220;name&#8221;) -  Sets the channel owner. </dd>
<dd> <a title="API SetChannelPassword" href="http://www.wowwiki.com/API_SetChannelPassword">SetChannelPassword</a>(&#8221;channel&#8221;,  &#8220;password&#8221;) - Changes the password of the current channel. </dd>
</dl>
<p><a id="Character_Functions" rel="nofollow" name="Character_Functions"></a></p>
<h3><span class="mw-headline"> Character Functions </span></h3>
<dl>
<dd> <a title="API  AbandonSkill" href="http://www.wowwiki.com/API_AbandonSkill">AbandonSkill</a>(index) - The player abandons a skill. </dd>
<dd> <a title="API AcceptResurrect" href="http://www.wowwiki.com/API_AcceptResurrect">AcceptResurrect</a>() - The player accepts  the request from another player to resurrect him/herself. </dd>
<dd> <a title="API  AcceptSkillUps" href="http://www.wowwiki.com/API_AcceptSkillUps">AcceptSkillUps</a>() - Accepts changes to skills;  unused on live realms. </dd>
<dd> <a title="API  AcceptXPLoss" href="http://www.wowwiki.com/API_AcceptXPLoss">AcceptXPLoss</a>() - Accept the durability loss to be  reborn by a spirit healer. (The name is a remnant from when sprit res  was an XP loss instead.) </dd>
<dd> <a title="API  AddSkillUp" href="http://www.wowwiki.com/API_AddSkillUp">AddSkillUp</a>(index) - Spends skill points to improve a  skill; unused on live realms. </dd>
<dd> <a class="new" title="API BuySkillTier (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BuySkillTier&amp;action=edit&amp;redlink=1">BuySkillTier</a>(index) - Learns the next tier of a  skill; unused on live realms. </dd>
<dd> <a title="API  CancelSkillUps" href="http://www.wowwiki.com/API_CancelSkillUps">CancelSkillUps</a>() - Rejects changes to skills;  unused on live realms. </dd>
<dd> <a class="new" title="API CheckBinderDist (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CheckBinderDist&amp;action=edit&amp;redlink=1">CheckBinderDist</a>() - Check whether the player is close  enough to interact with the Hearthstone binder. </dd>
<dd> <a class="new" title="API ConfirmBinder (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ConfirmBinder&amp;action=edit&amp;redlink=1">ConfirmBinder</a>() - Confirm the request to set the  binding of the player&#8217;s Hearthstone. </dd>
<dd> <a title="API DeclineResurrect" href="http://www.wowwiki.com/API_DeclineResurrect">DeclineResurrect</a>() - Decline the  request from another player to resurrect him/herself. </dd>
<dd> <a title="API  DestroyTotem" href="http://www.wowwiki.com/API_DestroyTotem">DestroyTotem</a>(slot) </dd>
<dd> <a title="API GetBindLocation" href="http://www.wowwiki.com/API_GetBindLocation">GetBindLocation</a>() - Get the name of the  location for your Hearthstone. </dd>
<dd> <a title="API  GetComboPoints" href="http://www.wowwiki.com/API_GetComboPoints">GetComboPoints</a>() - Get the current number of combo  points. </dd>
<dd> <a class="new" title="API GetCorpseRecoveryDelay (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCorpseRecoveryDelay&amp;action=edit&amp;redlink=1">GetCorpseRecoveryDelay</a>() - Time left before a player  can accept a resurrection </dd>
<dd> <a title="API GetCurrentTitle" href="http://www.wowwiki.com/API_GetCurrentTitle">GetCurrentTitle</a>() - Returns the player&#8217;s  current <a title="TitleId" href="http://www.wowwiki.com/TitleId">titleId</a>. </dd>
<dd> <a title="API GetDamageBonusStat" href="http://www.wowwiki.com/API_GetDamageBonusStat">GetDamageBonusStat</a>() - returns index  of which stat a player receives a damage bonus from increasing </dd>
<dd> <a title="API GetMirrorTimerInfo" href="http://www.wowwiki.com/API_GetMirrorTimerInfo">GetMirrorTimerInfo</a>(id) - returns  information about a mirror timer (exhaustion, breath and feign death  timers) </dd>
<dd> <a title="API GetMirrorTimerProgress" href="http://www.wowwiki.com/API_GetMirrorTimerProgress">GetMirrorTimerProgress</a>(id) -  returns the current value of a mirror timer (exhaustion, breath and  feign death timers) </dd>
<dd> <a title="API  GetMoney" href="http://www.wowwiki.com/API_GetMoney">GetMoney</a>() - Returns an integer value of your held money  in copper. </dd>
<dd> <a title="API  GetNumTitles" href="http://www.wowwiki.com/API_GetNumTitles">GetNumTitles</a>() - Returns the maximum <a title="TitleId" href="http://www.wowwiki.com/TitleId">titleId</a> </dd>
<dd> <a class="new" title="API GetPlayerFacing (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPlayerFacing&amp;action=edit&amp;redlink=1">GetPlayerFacing</a>() - Returns the direction the player  is facing in radians ([-π, π] range, 0 is north, π/2 is east). (3.1) </dd>
<dd> <a class="new" title="API GetPowerRegen (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPowerRegen&amp;action=edit&amp;redlink=1">GetPowerRegen</a>() - Returns normal and combat power  regeneration rates </dd>
<dd> <a title="API GetRangedCritChance" href="http://www.wowwiki.com/API_GetRangedCritChance">GetRangedCritChance</a>() - Returns the  players ranged critical strike chance. </dd>
<dd> <a class="new" title="API GetReleaseTimeRemaining (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetReleaseTimeRemaining&amp;action=edit&amp;redlink=1">GetReleaseTimeRemaining</a>() - Returns the amount of  time left before your ghost is pulled from your body. </dd>
<dd> <a class="new" title="API GetResSicknessDuration (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetResSicknessDuration&amp;action=edit&amp;redlink=1">GetResSicknessDuration</a>() </dd>
<dd> <a title="API  GetRestState" href="http://www.wowwiki.com/API_GetRestState">GetRestState</a>() - Returns information about a player&#8217;s  rest state (saved up experience bonus) </dd>
<dd> <a title="API GetRuneCooldown" href="http://www.wowwiki.com/API_GetRuneCooldown">GetRuneCooldown</a>(id) - Returns cooldown  information about a given rune. </dd>
<dd> <a class="new" title="API GetRuneCount (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRuneCount&amp;action=edit&amp;redlink=1">GetRuneCount</a>(slot) - ? </dd>
<dd> <a title="API  GetRuneType" href="http://www.wowwiki.com/API_GetRuneType">GetRuneType</a>(id) - Returns the type of rune with the  given id. </dd>
<dd> <a class="new" title="API GetTimeToWellRested (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTimeToWellRested&amp;action=edit&amp;redlink=1">GetTimeToWellRested</a>() - Defunct. </dd>
<dd> <a title="API  GetTitleName" href="http://www.wowwiki.com/API_GetTitleName">GetTitleName</a>(<a title="TitleId" href="http://www.wowwiki.com/TitleId">titleId</a>) - Returns the player&#8217;s current title name </dd>
<dd> <a title="API GetXPExhaustion" href="http://www.wowwiki.com/API_GetXPExhaustion">GetXPExhaustion</a>() - Returns your  character&#8217;s current rested XP, nil if character is not rested. </dd>
<dd> <a title="API  HasFullControl" href="http://www.wowwiki.com/API_HasFullControl">HasFullControl</a>() </dd>
<dd> <a title="API  HasSoulstone" href="http://www.wowwiki.com/API_HasSoulstone">HasSoulstone</a>() </dd>
<dd> <a title="API  IsFalling" href="http://www.wowwiki.com/API_IsFalling">IsFalling</a>() - Returns 1 if your character is currently  plummeting to their doom. </dd>
<dd> <a title="API  IsFlying" href="http://www.wowwiki.com/API_IsFlying">IsFlying</a>() - Returns 1 if flying, otherwise nil. </dd>
<dd> <a title="API  IsFlyableArea" href="http://www.wowwiki.com/API_IsFlyableArea">IsFlyableArea</a>() - Returns 1 if it is possible to fly  here, nil otherwise. </dd>
<dd> <a title="API  IsIndoors" href="http://www.wowwiki.com/API_IsIndoors">IsIndoors</a>() - Returns 1 if you are indoors, otherwise  nil. Returns nil for indoor areas where you can still mount. </dd>
<dd> <a title="API  IsMounted" href="http://www.wowwiki.com/API_IsMounted">IsMounted</a>() - Returns 1 if mounted, otherwise nil </dd>
<dd> <a title="API  IsOutdoors" href="http://www.wowwiki.com/API_IsOutdoors">IsOutdoors</a>() - Returns 1 if you are outdoors, otherwise  nil. Returns 1 for indoor areas where you can still mount. </dd>
<dd> <a title="API  IsOutOfBounds" href="http://www.wowwiki.com/API_IsOutOfBounds">IsOutOfBounds</a>() - Returns 1 if you fell off the map. </dd>
<dd> <a title="API  IsResting" href="http://www.wowwiki.com/API_IsResting">IsResting</a>() - Returns 1 if your character is currently  resting. </dd>
<dd> <a title="API  IsStealthed" href="http://www.wowwiki.com/API_IsStealthed">IsStealthed</a>() - Returns 1 if stealthed or shadowmeld,  otherwise nil </dd>
<dd> <a class="new" title="API IsSwimming (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsSwimming&amp;action=edit&amp;redlink=1">IsSwimming</a>()  - Returns 1 if your character is currently swimming. </dd>
<dd> <a class="new" title="API IsTitleKnown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsTitleKnown&amp;action=edit&amp;redlink=1">IsTitleKnown</a>(index) - Returns 1 if the title is valid  for the player, otherwise 0. </dd>
<dd> <a class="new" title="API IsXPUserDisabled (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsXPUserDisabled&amp;action=edit&amp;redlink=1">IsXPUserDisabled</a>() - Returns 1 if the character has  disabled experience gain. </dd>
<dd> <a title="API NotWhileDeadError" href="http://www.wowwiki.com/API_NotWhileDeadError">NotWhileDeadError</a>() - Generates an  error message saying you cannot do that while dead. </dd>
<dd> <a title="API  RemoveSkillUp" href="http://www.wowwiki.com/API_RemoveSkillUp">RemoveSkillUp</a>(index) </dd>
<dd> <a class="new" title="API ResurrectHasSickness (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResurrectHasSickness&amp;action=edit&amp;redlink=1">ResurrectHasSickness</a>() - Appears to be used when  accepting a resurrection will give you resurrection sickessness. </dd>
<dd> <a class="new" title="API ResurrectHasTimer (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResurrectHasTimer&amp;action=edit&amp;redlink=1">ResurrectHasTimer</a>() - Does the player have to wait  before accepting a resurrection </dd>
<dd> <a class="new" title="API ResurrectGetOfferer (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResurrectGetOfferer&amp;action=edit&amp;redlink=1">ResurrectGetOfferer</a>() - Returns the name of the  person offering to resurrect you. </dd>
<dd> <a title="API  RetrieveCorpse" href="http://www.wowwiki.com/API_RetrieveCorpse">RetrieveCorpse</a>() - Resurrects when near corpse.  e.g., The &#8220;Accept&#8221; button one sees after running back to your body. </dd>
<dd> HW <a title="API SetCurrentTitle" href="http://www.wowwiki.com/API_SetCurrentTitle">SetCurrentTitle</a>(<a title="TitleId" href="http://www.wowwiki.com/TitleId">titleId</a>) -  Sets the player&#8217;s current title id </dd>
<dd> <a class="new" title="API SetSelectedSkill (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSelectedSkill&amp;action=edit&amp;redlink=1">SetSelectedSkill</a>(index) </dd>
<dd> <a class="new" title="API TargetTotem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TargetTotem&amp;action=edit&amp;redlink=1">TargetTotem</a>() - New in 3.0.8 </dd>
<dd> <a title="API  GetPVPDesired" href="http://www.wowwiki.com/API_GetPVPDesired">GetPVPDesired</a>() - Returns whether the player has  permanently turned on their PvP flag. </dd>
</dl>
<p><a id="Character_Statistics_Functions" rel="nofollow" name="Character_Statistics_Functions"></a></p>
<h3><span class="mw-headline"> Character Statistics Functions </span></h3>
<dl>
<dd> <a class="new" title="API GetArmorPenetration (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetArmorPenetration&amp;action=edit&amp;redlink=1">GetArmorPenetration</a> </dd>
<dd> <a class="new" title="API GetAttackPowerForStat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAttackPowerForStat&amp;action=edit&amp;redlink=1">GetAttackPowerForStat</a> </dd>
<dd> <a title="API  GetBlockChance" href="http://www.wowwiki.com/API_GetBlockChance">GetBlockChance</a>() - Returns the player&#8217;s percentage  block chance. </dd>
<dd> <a title="API GetCombatRating" href="http://www.wowwiki.com/API_GetCombatRating">GetCombatRating</a>(ratingID) - Returns the  player&#8217;s combat rating for a particular combat rating. (2.0) </dd>
<dd> <a title="API GetCombatRatingBonus" href="http://www.wowwiki.com/API_GetCombatRatingBonus">GetCombatRatingBonus</a>(ratingID) -  Returns the player&#8217;s combat rating bonus for a particular combat rating.  (2.0) </dd>
<dd> <a title="API  GetCritChance" href="http://www.wowwiki.com/API_GetCritChance">GetCritChance</a>() - Returns the player&#8217;s melee critical  hit chance </dd>
<dd> <a title="API  GetDodgeChance" href="http://www.wowwiki.com/API_GetDodgeChance">GetDodgeChance</a>() - Returns the player&#8217;s percentage  dodge chance. </dd>
<dd> <a class="new" title="API GetExpertise (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetExpertise&amp;action=edit&amp;redlink=1">GetExpertise</a> </dd>
<dd> <a class="new" title="API GetExpertisePercent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetExpertisePercent&amp;action=edit&amp;redlink=1">GetExpertisePercent</a> </dd>
<dd> <a title="API  GetManaRegen" href="http://www.wowwiki.com/API_GetManaRegen">GetManaRegen</a>() - Returns the player&#8217;s mana  regeneration rates. </dd>
<dd> <a class="new" title="API GetMaxCombatRatingBonus (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetMaxCombatRatingBonus&amp;action=edit&amp;redlink=1">GetMaxCombatRatingBonus</a>(lowestRating) </dd>
<dd> <a title="API  GetParryChance" href="http://www.wowwiki.com/API_GetParryChance">GetParryChance</a>() - Returns the player&#8217;s percentage  parry chance. </dd>
<dd> <a class="new" title="API GetPetSpellBonusDamage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPetSpellBonusDamage&amp;action=edit&amp;redlink=1"> GetPetSpellBonusDamage</a> </dd>
<dd> <a title="API GetSpellBonusDamage" href="http://www.wowwiki.com/API_GetSpellBonusDamage">GetSpellBonusDamage</a>(spellTreeID) -  Returns the raw spell damage of the player for a given spell tree. </dd>
<dd> <a title="API GetRangedCritChance" href="http://www.wowwiki.com/API_GetRangedCritChance">GetRangedCritChance</a> </dd>
<dd> <a title="API GetSpellBonusHealing" href="http://www.wowwiki.com/API_GetSpellBonusHealing">GetSpellBonusHealing</a>() - Returns  the raw bonus healing of the player. </dd>
<dd> <a title="API GetSpellCritChance" href="http://www.wowwiki.com/API_GetSpellCritChance">GetSpellCritChance</a>(school) - returns  the players critical hit chance with a particular spell school. </dd>
<dd> <a class="new" title="API GetShieldBlock (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetShieldBlock&amp;action=edit&amp;redlink=1">GetShieldBlock</a> </dd>
<dd> <a title="API GetSpellCritChance" href="http://www.wowwiki.com/API_GetSpellCritChance">GetSpellCritChance</a> </dd>
<dd> <a class="new" title="API GetSpellCritChanceFromIntellect (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSpellCritChanceFromIntellect&amp;action=edit&amp;redlink=1">GetSpellCritChanceFromIntellect</a> </dd>
<dd> <a class="new" title="API GetSpellPenetration (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSpellPenetration&amp;action=edit&amp;redlink=1">GetSpellPenetration</a> </dd>
</dl>
<p><a id="Chat_Window_Functions" rel="nofollow" name="Chat_Window_Functions"></a></p>
<h3><span class="mw-headline"> Chat  Window Functions </span></h3>
<p>These are functions which are specific to chat <em>window</em> management. Also see the <a href="http://www.wowwiki.com/World_of_Warcraft_API#Channel_Functions">Channel Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Communication_Functions">Communication Functions</a> sections. <small>(→ <a title="World of Warcraft API/Mikk's spiel on chat windows" href="http://www.wowwiki.com/World_of_Warcraft_API/Mikk%27s_spiel_on_chat_windows">Mikk&#8217;s spiel  on chat windows</a>)</small></p>
<dl>
<dd> <a title="API AddChatWindowChannel" href="http://www.wowwiki.com/API_AddChatWindowChannel">AddChatWindowChannel</a>(chatFrameIndex,  &#8220;channel&#8221;) - Make a chat channel visible in a specific ChatFrame. </dd>
<dd> <a title="API AddChatWindowMessages" href="http://www.wowwiki.com/API_AddChatWindowMessages">AddChatWindowMessages</a> - Adds a  messaging group to the specified chat window. </dd>
<dd> <a title="API ChangeChatColor" href="http://www.wowwiki.com/API_ChangeChatColor">ChangeChatColor</a>(channelname,r,g,b) -  Update the color for a type of chat message. </dd>
<dd> UI <a title="API ChatFrame AddChannel" href="http://www.wowwiki.com/API_ChatFrame_AddChannel">ChatFrame_AddChannel</a>(chatFrame,  &#8220;channelName&#8221;) - Activate channel in chatFrame. </dd>
<dd> UI <a title="API ChatFrame AddMessageEventFilter" href="http://www.wowwiki.com/API_ChatFrame_AddMessageEventFilter">ChatFrame_AddMessageEventFilter</a>(&#8221;event&#8221;,  filterFunc) - Add a chat message filtering function (new in 2.4) </dd>
<dd> UI <a class="mw-redirect" title="API ChatFrame GetMessageEventFilters" href="http://www.wowwiki.com/API_ChatFrame_GetMessageEventFilters">ChatFrame_GetMessageEventFilters</a>(&#8221;event&#8221;)  - Retreive the list of chat message filtering functions. (new in 2.4) </dd>
<dd> UI <a title="API  ChatFrame OnHyperlinkShow" href="http://www.wowwiki.com/API_ChatFrame_OnHyperlinkShow">ChatFrame_OnHyperlinkShow</a>(reference,  link, button) - called when the user clicks on a chatlink. </dd>
<dd> UI <a class="mw-redirect" title="API ChatFrame RemoveMessageEventFilter" href="http://www.wowwiki.com/API_ChatFrame_RemoveMessageEventFilter">ChatFrame_RemoveMessageEventFilter</a>(&#8221;event&#8221;,  filterFunc) - Unregister a chat message filtering function (new in 2.4) </dd>
<dd> <a title="API GetAutoCompleteResults" href="http://www.wowwiki.com/API_GetAutoCompleteResults">GetAutoCompleteResults</a>(&#8221;text&#8221;,  include, exclude, maxResults[, cursorPosition]) - Returns possible  player names matching a given prefix string and specified requirements. </dd>
<dd> <a title="API GetChatTypeIndex" href="http://www.wowwiki.com/API_GetChatTypeIndex">GetChatTypeIndex</a>(type) - Get the  numeric ID of a type of chat message. </dd>
<dd> <a title="API GetChatWindowChannels" href="http://www.wowwiki.com/API_GetChatWindowChannels">GetChatWindowChannels</a>(index) - Get  the chat channels received by a chat window. </dd>
<dd> <a title="API GetChatWindowInfo" href="http://www.wowwiki.com/API_GetChatWindowInfo">GetChatWindowInfo</a>(index) - Get setup  information about a chat window. </dd>
<dd> <a title="API GetChatWindowMessages" href="http://www.wowwiki.com/API_GetChatWindowMessages">GetChatWindowMessages</a>(index) - Get  the chat message types received by a chat window. </dd>
<dd> <a title="API JoinChannelByName" href="http://www.wowwiki.com/API_JoinChannelByName">JoinChannelByName</a>(&#8221;channel&#8221;[,  "password"[, frameId]]) - Join the specified chat channel (with optional  password, and register for specified frame) (updated in 1.9) </dd>
<dd> <a title="API  LoggingChat" href="http://www.wowwiki.com/API_LoggingChat">LoggingChat</a>(newState) - Gets or sets whether logging  chat to Logs\WoWChatLog.txt is enabled. </dd>
<dd> <a title="API  LoggingCombat" href="http://www.wowwiki.com/API_LoggingCombat">LoggingCombat</a>(newState) - Gets or sets whether  logging combat to Logs\WoWCombatLog.txt is enabled. </dd>
<dd> <a title="API RemoveChatWindowChannel" href="http://www.wowwiki.com/API_RemoveChatWindowChannel">RemoveChatWindowChannel</a>(chatFrameIndex,  &#8220;channel&#8221;) - Make a chat channel invisible (hidden) in a specific  ChatFrame. </dd>
<dd> <a title="API RemoveChatWindowMessages" href="http://www.wowwiki.com/API_RemoveChatWindowMessages">RemoveChatWindowMessages</a>(chatFrameIndex,&#8221;messageGroup&#8221;)  - Remove a set of chat messages from this window. </dd>
</dl>
<p>These functions get applied after reload ui (index 1 is General and  index 2 is Combat Log):</p>
<dl>
<dd> <a class="new" title="API SetChatWindowAlpha (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowAlpha&amp;action=edit&amp;redlink=1">SetChatWindowAlpha</a>(index,alpha) - Sets the Alpha  value(transparency) of ChatFrame&lt;index&gt; (alpha - 0-100) </dd>
<dd> <a class="new" title="API SetChatWindowColor (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowColor&amp;action=edit&amp;redlink=1">SetChatWindowColor</a>(index,r,g,b) - Sets the background  color of a a chat window. (r/g/b - 0-255) </dd>
<dd> <a class="new" title="API SetChatWindowDocked (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowDocked&amp;action=edit&amp;redlink=1">SetChatWindowDocked</a>(index,docked) - Set whether a  chat window is docked. (docked - 0/1) </dd>
<dd> <a class="new" title="API SetChatWindowLocked (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowLocked&amp;action=edit&amp;redlink=1">SetChatWindowLocked</a>(index,locked) - Sets  ChatFrame&lt;index&gt; so that it is or is not movable. (locked - 0/1) </dd>
<dd> <a class="new" title="API SetChatWindowName (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowName&amp;action=edit&amp;redlink=1">SetChatWindowName</a>(index,&#8221;name&#8221;) - Sets the name of  ChatFrame&lt;index&gt; to &lt;&#8221;name&#8221;&gt;. </dd>
<dd> <a class="new" title="API SetChatWindowShown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowShown&amp;action=edit&amp;redlink=1">SetChatWindowShown</a>(index,shown) - Shows or Hides  ChatFrame&lt;index&gt; depending on value of &lt;shown&gt; (shown - 0/1) </dd>
<dd> <a class="new" title="API SetChatWindowSize (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowSize&amp;action=edit&amp;redlink=1">SetChatWindowSize</a>(index,size) - Sets the font size of  a chat window. (size - default 14) </dd>
<dd> <a class="new" title="API SetChatWindowUninteractable (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetChatWindowUninteractable&amp;action=edit&amp;redlink=1">SetChatWindowUninteractable</a>(id,  isUninteractable) - New in 3.0.8 </dd>
</dl>
<p><a id="Communication_Functions" rel="nofollow" name="Communication_Functions"></a></p>
<h3><span class="mw-headline"> Communication Functions </span></h3>
<p>These are the functions which communicate with other players. Also  see the <a href="http://www.wowwiki.com/World_of_Warcraft_API#Channel_Functions">Channel Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Chat_Window_Functions">Chat Window Functions</a> sections.</p>
<dl>
<dd> <a title="API  DoEmote" href="http://www.wowwiki.com/API_DoEmote">DoEmote</a>(&#8221;emote&#8221;,["target"]) - Perform a voice emote. </dd>
<dd> <a title="API GetDefaultLanguage" href="http://www.wowwiki.com/API_GetDefaultLanguage">GetDefaultLanguage</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  the default language that the unit is speaking after logon. </dd>
<dd> <a title="API GetLanguageByIndex" href="http://www.wowwiki.com/API_GetLanguageByIndex">GetLanguageByIndex</a>(index) - Returns  the language specified by the index. </dd>
<dd> <a title="API GetNumLanguages" href="http://www.wowwiki.com/API_GetNumLanguages">GetNumLanguages</a>() - Returns the number  of languages your character can speak (Renamed in 2.4, formerly mistyped  GetNumLaguages). </dd>
<dd> <a title="API  RandomRoll" href="http://www.wowwiki.com/API_RandomRoll">RandomRoll</a>(low, high) - Does a random roll between the  two values. </dd>
<dd> <a title="API SendAddonMessage" href="http://www.wowwiki.com/API_SendAddonMessage">SendAddonMessage</a>(&#8221;prefix&#8221;, &#8220;text&#8221;,  &#8220;type&#8221; [, "player"]) - Sends a message to hidden AddOn channels. - Added  in 1.12 </dd>
<dd> <a title="API SendChatMessage" href="http://www.wowwiki.com/API_SendChatMessage">SendChatMessage</a>(&#8221;msg&#8221;,[ "chatType",[  "language",[ "channel"]]]) - Sends a chat message. </dd>
</dl>
<p><a id="Companion_Functions" rel="nofollow" name="Companion_Functions"></a></p>
<h3><span class="mw-headline"> Companion Functions </span></h3>
<p>These functions relate to companions &#8212; mounts and non-combat pets.  All functions were introduced in <a class="mw-redirect" title="Patch 3.0" href="http://www.wowwiki.com/Patch_3.0">Patch 3.0</a>.</p>
<dl>
<dd> <a title="API  CallCompanion" href="http://www.wowwiki.com/API_CallCompanion">CallCompanion</a>(<a title="API TYPE TypeId" href="http://www.wowwiki.com/API_TYPE_TypeId">TypeID</a>,  slotid) - Summons a companion. </dd>
<dd> <a class="new" title="API DismissCompanion (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DismissCompanion&amp;action=edit&amp;redlink=1">DismissCompanion</a>(<a title="API TYPE TypeId" href="http://www.wowwiki.com/API_TYPE_TypeId">TypeID</a>)  - Dismisses an active companion. </dd>
<dd> <a title="API GetCompanionInfo" href="http://www.wowwiki.com/API_GetCompanionInfo">GetCompanionInfo</a>(<a title="API TYPE TypeId" href="http://www.wowwiki.com/API_TYPE_TypeId">TypeID</a>,  slotid) - Returns info about a selected companion. </dd>
<dd> <a title="API GetNumCompanions" href="http://www.wowwiki.com/API_GetNumCompanions">GetNumCompanions</a>(<a title="API TYPE TypeId" href="http://www.wowwiki.com/API_TYPE_TypeId">TypeID</a>)  - Get the number of companions of the specified type. </dd>
<dd> <a title="API GetCompanionCooldown" href="http://www.wowwiki.com/API_GetCompanionCooldown">GetCompanionCooldown</a>(<a title="API TYPE TypeId" href="http://www.wowwiki.com/API_TYPE_TypeId">TypeID</a>,  index) - Returns cooldown information. </dd>
<dd> <a class="new" title="API PickupCompanion (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PickupCompanion&amp;action=edit&amp;redlink=1">PickupCompanion</a>(<a title="API TYPE TypeId" href="http://www.wowwiki.com/API_TYPE_TypeId">TypeID</a>,  index) - Picks up the indexed companion onto the mouse cursor. </dd>
<dd> <a title="API SummonRandomCritter" href="http://www.wowwiki.com/API_SummonRandomCritter">SummonRandomCritter</a>() - Summons a  random critter companion. (New: 3.3.3) </dd>
</dl>
<p><a id="Container.2FBag_Functions" rel="nofollow" name="Container.2FBag_Functions"></a></p>
<h3><span class="mw-headline"> Container/Bag Functions </span></h3>
<p>These functions manage containers (bags, backpack). See also <a href="http://www.wowwiki.com/World_of_Warcraft_API#Inventory_Functions">Inventory Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Bank_Functions">Bank Functions</a>.</p>
<dl>
<dd> <a title="API ContainerIDToInventoryID" href="http://www.wowwiki.com/API_ContainerIDToInventoryID">ContainerIDToInventoryID</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) </dd>
<dd> <a title="API  GetBagName" href="http://www.wowwiki.com/API_GetBagName">GetBagName</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) - Get the name of one of the player&#8217;s bags. </dd>
<dd> <a title="API GetContainerItemCooldown" href="http://www.wowwiki.com/API_GetContainerItemCooldown">GetContainerItemCooldown</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>, slot) </dd>
<dd> <a title="API  GetContainerItemDurability" href="http://www.wowwiki.com/API_GetContainerItemDurability">GetContainerItemDurability</a>(bag, slot) -  Get current and maximum durability of an item in the character&#8217;s bags. </dd>
<dd> <a title="API GetContainerItemGems" href="http://www.wowwiki.com/API_GetContainerItemGems">GetContainerItemGems</a>(bag, slot) -  Returns item IDs of gems inserted into the item in a specified container  slot. </dd>
<dd> <a title="API GetContainerItemID" href="http://www.wowwiki.com/API_GetContainerItemID">GetContainerItemID</a>(bag, slot) -  Returns the item ID of the item in a particular container slot. </dd>
<dd> <a title="API GetContainerItemInfo" href="http://www.wowwiki.com/API_GetContainerItemInfo">GetContainerItemInfo</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>, slot) - Get  the info for an item in one of the player&#8217;s bags. </dd>
<dd> <a title="API GetContainerItemLink" href="http://www.wowwiki.com/API_GetContainerItemLink">GetContainerItemLink</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>, slot) -  Returns the <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> of the item located in bag#, slot#. </dd>
<dd> <a title="API GetContainerNumSlots" href="http://www.wowwiki.com/API_GetContainerNumSlots">GetContainerNumSlots</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) - Returns  the total number of slots in the bag specified by the index. </dd>
<dd> <a title="API GetContainerItemQuestInfo" href="http://www.wowwiki.com/API_GetContainerItemQuestInfo">GetContainerItemQuestInfo</a>(bag,  slot) - Returns information about quest and quest-starting items in  your bags. (New: 3.3.3) </dd>
<dd> <a title="API GetContainerNumFreeSlots" href="http://www.wowwiki.com/API_GetContainerNumFreeSlots">GetContainerNumFreeSlots</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) - Returns  the number of free slots and type of slots in the bag specified by the  index. (New in <a class="mw-redirect" title="Patch  2.4" href="http://www.wowwiki.com/Patch_2.4">Patch 2.4</a>) </dd>
<dd> <a title="API HasKey" href="http://www.wowwiki.com/API_HasKey">HasKey</a>()  - Returns 1 if the player has a keyring, nil otherwise. </dd>
<dd> UI <a title="API  OpenAllBags" href="http://www.wowwiki.com/API_OpenAllBags">OpenAllBags</a>() - Open all bags </dd>
<dd> UI <a title="API CloseAllBags" href="http://www.wowwiki.com/API_CloseAllBags">CloseAllBags</a>() - Close all bags </dd>
<dd> <a title="API PickupBagFromSlot" href="http://www.wowwiki.com/API_PickupBagFromSlot">PickupBagFromSlot</a>(slot) - Picks up the  bag from the specified slot, placing it in the cursor. </dd>
<dd> <a title="API PickupContainerItem" href="http://www.wowwiki.com/API_PickupContainerItem">PickupContainerItem</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>,slot) </dd>
<dd> <a title="API PutItemInBackpack" href="http://www.wowwiki.com/API_PutItemInBackpack">PutItemInBackpack</a>() - attempts to  place item in backpack (bag slot 0). </dd>
<dd> <a title="API  PutItemInBag" href="http://www.wowwiki.com/API_PutItemInBag">PutItemInBag</a>(inventoryId) - attempts to place item in a  specific bag. </dd>
<dd> UI <a class="new" title="API PutKeyInKeyRing (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PutKeyInKeyRing&amp;action=edit&amp;redlink=1">PutKeyInKeyRing</a>() - attempts to place item in your  keyring. </dd>
<dd> <a title="API SplitContainerItem" href="http://www.wowwiki.com/API_SplitContainerItem">SplitContainerItem</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>,slot,amount) </dd>
<dd> UI <a title="API ToggleBackpack" href="http://www.wowwiki.com/API_ToggleBackpack">ToggleBackpack</a>() - Toggles your backpack  open/closed. </dd>
<dd> UI <a title="API  ToggleBag" href="http://www.wowwiki.com/API_ToggleBag">ToggleBag</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) - Opens or closes the specified bag. </dd>
<dd> PROTECTED (Situational) <a title="API  UseContainerItem" href="http://www.wowwiki.com/API_UseContainerItem">UseContainerItem</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>, slot[,  onSelf]) - Uses an item located in bag# and slot#. (Warning: If a vendor  window is open, using items in your pack may sell them!) - &#8216;onSelf&#8217;  added in 1.12 </dd>
</dl>
<p><a id="Currency_Functions" rel="nofollow" name="Currency_Functions"></a></p>
<h3><span class="mw-headline"> Currency Functions </span></h3>
<p>Most of these functions were added in 3.0.2</p>
<dl>
<dd> <a title="API  GetCoinText" href="http://www.wowwiki.com/API_GetCoinText">GetCoinText</a>(amount, &#8220;separator&#8221;) - Breaks down money  and inserts separator strings.  Added in 2.4.2. </dd>
<dd> <a title="API GetCoinTextureString" href="http://www.wowwiki.com/API_GetCoinTextureString">GetCoinTextureString</a>(amount[,  fontHeight]) - Breaks down money and inserts texture strings. </dd>
<dd> <a title="API GetCurrencyListSize" href="http://www.wowwiki.com/API_GetCurrencyListSize">GetCurrencyListSize</a>()  - returns the  number of elements (both headers and currencies) in the currency list. </dd>
<dd> <a title="API GetCurrencyListInfo" href="http://www.wowwiki.com/API_GetCurrencyListInfo">GetCurrencyListInfo</a>(index)  - return  information about an element in the currency list. </dd>
<dd> <a title="API ExpandCurrencyList" href="http://www.wowwiki.com/API_ExpandCurrencyList">ExpandCurrencyList</a>(index, state) -  sets the expanded/collapsed state of a currency list header. </dd>
<dd> <a title="API SetCurrencyUnused" href="http://www.wowwiki.com/API_SetCurrencyUnused">SetCurrencyUnused</a>(id, state) - alters  whether a currency is marked as unused. </dd>
<dd> <a title="API GetNumWatchedTokens" href="http://www.wowwiki.com/API_GetNumWatchedTokens">GetNumWatchedTokens</a>()  - returns the  number of currently watched. </dd>
<dd> <a title="API GetBackpackCurrencyInfo" href="http://www.wowwiki.com/API_GetBackpackCurrencyInfo">GetBackpackCurrencyInfo</a>(id) -  returns information about a watched currency. </dd>
<dd> <a title="API SetCurrencyBackpack" href="http://www.wowwiki.com/API_SetCurrencyBackpack">SetCurrencyBackpack</a>(id, state)  -  alters whether a currency is tracked. </dd>
</dl>
<p><a id="Cursor_Functions" rel="nofollow" name="Cursor_Functions"></a></p>
<h3><span class="mw-headline"> Cursor Functions </span></h3>
<dl>
<dd> <a title="API AutoEquipCursorItem" href="http://www.wowwiki.com/API_AutoEquipCursorItem">AutoEquipCursorItem</a>() - Causes the  equipment on the cursor to be equipped. </dd>
<dd> <a title="API  ClearCursor" href="http://www.wowwiki.com/API_ClearCursor">ClearCursor</a>() - Clears whatever item the cursor is  dragging from the cursor. - Added in 1.12 </dd>
<dd> <a title="API CursorCanGoInSlot" href="http://www.wowwiki.com/API_CursorCanGoInSlot">CursorCanGoInSlot</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Return true if the item currently held by the cursor can go into the  given inventory (equipment) slot. </dd>
<dd> <a title="API  CursorHasItem" href="http://www.wowwiki.com/API_CursorHasItem">CursorHasItem</a>() - Returns true if the cursor  currently holds an item. </dd>
<dd> <a class="new" title="API CursorHasMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CursorHasMoney&amp;action=edit&amp;redlink=1">CursorHasMoney</a>() - true/false </dd>
<dd> <a class="new" title="API CursorHasSpell (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CursorHasSpell&amp;action=edit&amp;redlink=1">CursorHasSpell</a>() - true/false </dd>
<dd> <a title="API DeleteCursorItem" href="http://www.wowwiki.com/API_DeleteCursorItem">DeleteCursorItem</a>() - Destroys the item  on the cursor. </dd>
<dd> <a title="API DropCursorMoney" href="http://www.wowwiki.com/API_DropCursorMoney">DropCursorMoney</a>() - Drops the amount of  money held by the cursor. </dd>
<dd> <a title="API  DropItemOnUnit" href="http://www.wowwiki.com/API_DropItemOnUnit">DropItemOnUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Drops  an item from the cursor onto a unit. </dd>
<dd> <a title="API EquipCursorItem" href="http://www.wowwiki.com/API_EquipCursorItem">EquipCursorItem</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>) </dd>
<dd> <a title="API  GetCursorInfo" href="http://www.wowwiki.com/API_GetCursorInfo">GetCursorInfo</a>() - Returns information about what the  cursor is holding. </dd>
<dd> <a title="API  GetCursorMoney" href="http://www.wowwiki.com/API_GetCursorMoney">GetCursorMoney</a> - Returns the amount of money held  by the cursor. </dd>
<dd> <a title="API GetCursorPosition" href="http://www.wowwiki.com/API_GetCursorPosition">GetCursorPosition</a>() - Returns the  cursor&#8217;s position on the screen. </dd>
<dd> <a title="API HideRepairCursor" href="http://www.wowwiki.com/API_HideRepairCursor">HideRepairCursor</a>() </dd>
<dd> <a title="API  InRepairMode" href="http://www.wowwiki.com/API_InRepairMode">InRepairMode</a>() - Returns true if your cursor is in  repair mode </dd>
<dd> NOCOMBAT <a title="API PickupAction" href="http://www.wowwiki.com/API_PickupAction">PickupAction</a>(slot) - Drags an action out of  the specified quickbar slot and holds it on the cursor. </dd>
<dd> <a title="API PickupBagFromSlot" href="http://www.wowwiki.com/API_PickupBagFromSlot">PickupBagFromSlot</a>(slot) - Picks up the  bag from the specified slot, placing it in the cursor. If an item is  already picked up, this places the item into the specified slot,  swapping the items if needed. </dd>
<dd> <a title="API PickupContainerItem" href="http://www.wowwiki.com/API_PickupContainerItem">PickupContainerItem</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>,slot) </dd>
<dd> <a title="API PickupInventoryItem" href="http://www.wowwiki.com/API_PickupInventoryItem">PickupInventoryItem</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - &#8220;Picks up&#8221; an item from the player&#8217;s worn inventory. </dd>
<dd> NOCOMBAT <a title="API PickupItem" href="http://www.wowwiki.com/API_PickupItem">PickupItem</a>(itemId or &#8220;<a title="ItemString" href="http://www.wowwiki.com/ItemString">itemString</a>&#8221;  or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;) </dd>
<dd> <a title="API  PickupMacro" href="http://www.wowwiki.com/API_PickupMacro">PickupMacro</a>(&#8221;macroName&#8221; or index) - Adds the specified  macro to the Cursor. </dd>
<dd> <a title="API PickupMerchantItem" href="http://www.wowwiki.com/API_PickupMerchantItem">PickupMerchantItem</a>(index) - Places  the item on the cursor. If the cursor already has an item, the item in  the cursor will be sold. </dd>
<dd> NOCOMBAT <a title="API PickupPetAction" href="http://www.wowwiki.com/API_PickupPetAction">PickupPetAction</a>(slot) - Drags an action  from the specified pet action bar slot into the cursor. </dd>
<dd> <a title="API PickupPlayerMoney" href="http://www.wowwiki.com/API_PickupPlayerMoney">PickupPlayerMoney</a> - Picks up an amount  of money from the player. </dd>
<dd> NOCOMBAT <a title="API PickupSpell" href="http://www.wowwiki.com/API_PickupSpell">PickupSpell</a>(&#8221;spellName&#8221; | spellID,  &#8220;bookType&#8221;) - Adds the specified spell to the Cursor. </dd>
<dd> <a title="API PickupStablePet" href="http://www.wowwiki.com/API_PickupStablePet">PickupStablePet</a>(index) - ?. </dd>
<dd> <a title="API PickupTradeMoney" href="http://www.wowwiki.com/API_PickupTradeMoney">PickupTradeMoney</a>(amount) </dd>
<dd> <a title="API  PlaceAction" href="http://www.wowwiki.com/API_PlaceAction">PlaceAction</a>(slot) - Drops an action from the cursor  into the specified quickbar slot. </dd>
<dd> <a title="API PutItemInBackpack" href="http://www.wowwiki.com/API_PutItemInBackpack">PutItemInBackpack</a>() - attempts to  place item in backpack (bag slot 0). </dd>
<dd> <a title="API  PutItemInBag" href="http://www.wowwiki.com/API_PutItemInBag">PutItemInBag</a>(inventoryId) - attempts to place item in a  specific bag. </dd>
<dd> <a title="API  ResetCursor" href="http://www.wowwiki.com/API_ResetCursor">ResetCursor</a>() </dd>
<dd> <a title="API  SetCursor" href="http://www.wowwiki.com/API_SetCursor">SetCursor</a>(&#8221;cursor&#8221; or nil) </dd>
<dd> <a class="new" title="API ShowContainerSellCursor (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ShowContainerSellCursor&amp;action=edit&amp;redlink=1">ShowContainerSellCursor</a>(index,slot) </dd>
<dd> <a title="API ShowInspectCursor" href="http://www.wowwiki.com/API_ShowInspectCursor">ShowInspectCursor</a>() - Change the  cursor to the magnifying glass inventory inspection cursor </dd>
<dd> <a class="new" title="API ShowInventorySellCursor (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ShowInventorySellCursor&amp;action=edit&amp;redlink=1">ShowInventorySellCursor</a>() - ?. </dd>
<dd> <a title="API ShowMerchantSellCursor" href="http://www.wowwiki.com/API_ShowMerchantSellCursor">ShowMerchantSellCursor</a>(index) -  Changes the cursor to the merchant sell cursor. </dd>
<dd> <a title="API ShowRepairCursor" href="http://www.wowwiki.com/API_ShowRepairCursor">ShowRepairCursor</a>() </dd>
<dd> <a title="API SplitContainerItem" href="http://www.wowwiki.com/API_SplitContainerItem">SplitContainerItem</a>(bagID,slot,amount)  - Picks up part of a stack. </dd>
</dl>
<p><a id="Debugging_Functions" rel="nofollow" name="Debugging_Functions"></a></p>
<h3><span class="mw-headline"> Debugging Functions </span></h3>
<dl>
<dd> <a class="new" title="API ConsoleAddMessage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ConsoleAddMessage&amp;action=edit&amp;redlink=1">ConsoleAddMessage</a>(message) - New in 3.0.8 </dd>
<dd> <a title="API debugprofilestart" href="http://www.wowwiki.com/API_debugprofilestart">debugprofilestart</a>() - starts a timer  for profiling during debugging. </dd>
<dd> <a title="API debugprofilestop" href="http://www.wowwiki.com/API_debugprofilestop">debugprofilestop</a>() - return the time in  milliseconds since the last call to debugprofilestart() </dd>
<dd> <a title="API  debugstack" href="http://www.wowwiki.com/API_debugstack">debugstack</a>(start, count1, count2) - Returns a string  representation of the current calling stack (as of 1.9) </dd>
<dd> <a class="new" title="API FrameXML Debug (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_FrameXML_Debug&amp;action=edit&amp;redlink=1">FrameXML_Debug</a>(flag) - Sets FrameXML logging state  which is output to /WoW Folder/Logs/FrameXML.log </dd>
<dd> <a class="new" title="API GetDebugStats (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetDebugStats&amp;action=edit&amp;redlink=1">GetDebugStats</a>() </dd>
<dd> UI <a title="API getprinthandler" href="http://www.wowwiki.com/API_getprinthandler">getprinthandler</a>() - Returns the function  currently handling print() output. </dd>
<dd> UI <a title="API  print" href="http://www.wowwiki.com/API_print">print</a>(&#8230;) - Calls the current print output handler with the  provided values; by default printing the values to the default chat  frame. </dd>
<dd> UI <a title="API setprinthandler" href="http://www.wowwiki.com/API_setprinthandler">setprinthandler</a>(func) - Changes the  function handling print() output. </dd>
<dd> UI <a class="new" title="API tostringall (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_tostringall&amp;action=edit&amp;redlink=1">tostringall</a>(&#8230;) - Converts and returns the passed  arguments to string. </dd>
<dd> <a title="API wipe" href="http://www.wowwiki.com/API_wipe">wipe</a>(table)  - removes all key/value pairs from a table; also available as  table.wipe(). </dd>
</dl>
<p><a id="Dressing_Room_Functions" rel="nofollow" name="Dressing_Room_Functions"></a></p>
<h3><span class="mw-headline"> Dressing Room Functions </span></h3>
<p>Functions Controlling the Dressing Room interface. NEW in 1700.</p>
<dl>
<dd> UI <a class="new" title="API DressUpItemLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DressUpItemLink&amp;action=edit&amp;redlink=1">DressUpItemLink</a>(&#8221;<a title="ItemString" href="http://www.wowwiki.com/ItemString">itemString</a>&#8221;  or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;)  - Will show the DressingRoom UI with the given item equipped. </dd>
<dd> UI <a class="new" title="API SetDressUpBackground (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetDressUpBackground&amp;action=edit&amp;redlink=1">SetDressUpBackground</a>(isAuctionFrame) - Given an Item  shown in the Auction House will show the DressingRoom UI with the item  equipped. </dd>
</dl>
<p><a id="Dungeon_Finder_Functions" rel="nofollow" name="Dungeon_Finder_Functions"></a></p>
<h3><span class="mw-headline"> Dungeon Finder Functions </span></h3>
<p>Functions hidden behind and supporting the Dungeon Finder UI  introduced in 3.3. See also: <a href="http://www.wowwiki.com/World_of_Warcraft_API#Raid_Browser_Functions">Raid Browser Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Looking_For_Group_Functions">Looking For Group Functions</a></p>
<dl>
<dd> HW <a title="API AcceptProposal" href="http://www.wowwiki.com/API_AcceptProposal">AcceptProposal</a>() - Accept an LFD group  invite and enter the dungeon. </dd>
<dd> <a title="API  RejectProposal" href="http://www.wowwiki.com/API_RejectProposal">RejectProposal</a>() - Reject an LFD group invite and  exit the queue. </dd>
<dd> <a title="API  GetLFGProposal" href="http://www.wowwiki.com/API_GetLFGProposal">GetLFGProposal</a>() - Returns information about an LFD  group invite. </dd>
<dd> <a class="new" title="API CanPartyLFGBackfill (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanPartyLFGBackfill&amp;action=edit&amp;redlink=1">CanPartyLFGBackfill</a>() - Returns whether the party is  eligible to recruit additional members from the LFG pool. </dd>
<dd> <a class="new" title="API IsLFGDungeonJoinable (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsLFGDungeonJoinable&amp;action=edit&amp;redlink=1">IsLFGDungeonJoinable</a>(dungeonId) - Returns whether you  can queue for a particular dungeon. </dd>
<dd> <a class="new" title="API GetLFGDungeonInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFGDungeonInfo&amp;action=edit&amp;redlink=1">GetLFGDungeonInfo</a>(dungeonId) - Returns information  about a particular dungeon queue. </dd>
<dd> <a class="new" title="API GetLFDChoiceInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFDChoiceInfo&amp;action=edit&amp;redlink=1">GetLFDChoiceInfo</a>(nil or table) - Returns a table of  all dungeon info keyed by dungeonID </dd>
<dd> UI <a class="new" title="API GetLFDChoiceLockedState (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFDChoiceLockedState&amp;action=edit&amp;redlink=1">GetLFDChoiceLockedState</a>([table]) - Returns a table  mapping dungeonID to isLocked (in LFD UI) </dd>
<dd> <a class="new" title="API GetLFGRandomDungeonInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFGRandomDungeonInfo&amp;action=edit&amp;redlink=1">GetLFGRandomDungeonInfo</a>(index) - Returns information  about a random dungeon queue. </dd>
<dd> <a class="new" title="API GetNumRandomDungeons (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumRandomDungeons&amp;action=edit&amp;redlink=1">GetNumRandomDungeons</a>() - Returns the number of random  dungeon queues currently available. </dd>
<dd> <a class="new" title="API GetPartyLFGBackfillInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPartyLFGBackfillInfo&amp;action=edit&amp;redlink=1">GetPartyLFGBackfillInfo</a>() - Returns information about  the dungeon for which you may currently recruit additional members from  the LFG pool. </dd>
<dd> <a class="new" title="API GetRandomDungeonBestChoice (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRandomDungeonBestChoice&amp;action=edit&amp;redlink=1">GetRandomDungeonBestChoice</a>() - Returns  suggested random dungeon ID. </dd>
<dd> <a title="API  LFGTeleport" href="http://www.wowwiki.com/API_LFGTeleport">LFGTeleport</a>([toSafety]) - Teleports the player to (nil)  or from (true) a dungeon </dd>
<dd> <a title="API UnitGroupRolesAssigned" href="http://www.wowwiki.com/API_UnitGroupRolesAssigned">UnitGroupRolesAssigned</a>(UnitID) -  Return&#8217;s the targeted unit&#8217;s assigned role. </dd>
<dd> <a title="API HasLFGRestrictions" href="http://www.wowwiki.com/API_HasLFGRestrictions">HasLFGRestrictions</a>() - Returns  whether the player is in a random party formed by the dungeon finder  system. </dd>
</dl>
<p><a id="Enchanting_Functions" rel="nofollow" name="Enchanting_Functions"></a></p>
<h3><span class="mw-headline"> Enchanting Functions </span></h3>
<dl>
<dd> <a title="API GetWeaponEnchantInfo" href="http://www.wowwiki.com/API_GetWeaponEnchantInfo">GetWeaponEnchantInfo</a>() - Return  information about main and offhand weapon enchantments. </dd>
<dd> <a title="API  ReplaceEnchant" href="http://www.wowwiki.com/API_ReplaceEnchant">ReplaceEnchant</a>() </dd>
<dd> <a title="API ReplaceTradeEnchant" href="http://www.wowwiki.com/API_ReplaceTradeEnchant">ReplaceTradeEnchant</a>() - Confirm the  replacement of an enchantment via trade. </dd>
<dd> <a class="new" title="API BindEnchant (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BindEnchant&amp;action=edit&amp;redlink=1">BindEnchant</a>() - Confirm the binding of the item when  enchanting. </dd>
</dl>
<p><a id="Equipment_Manager_Functions" rel="nofollow" name="Equipment_Manager_Functions"></a></p>
<h3><span class="mw-headline"> Equipment Manager Functions </span></h3>
<p>Equipment management was added to the UI in <a title="Patch 3.1.2" href="http://www.wowwiki.com/Patch_3.1.2">Patch  3.1.2</a>.</p>
<dl>
<dd> <a title="API GetNumEquipmentSets" href="http://www.wowwiki.com/API_GetNumEquipmentSets">GetNumEquipmentSets</a>() - Returns the  number of saved equipment sets. </dd>
<dd> <a title="API GetEquipmentSetInfo" href="http://www.wowwiki.com/API_GetEquipmentSetInfo">GetEquipmentSetInfo</a>(index) - Returns  information about an equipment set. </dd>
<dd> <a class="mw-redirect" title="API GetEquipmentSetInfoByName" href="http://www.wowwiki.com/API_GetEquipmentSetInfoByName">GetEquipmentSetInfoByName</a>(&#8221;name&#8221;)  - Returns information about an equipment set. </dd>
<dd> <a title="API GetEquipmentSetItemIDs" href="http://www.wowwiki.com/API_GetEquipmentSetItemIDs">GetEquipmentSetItemIDs</a>(&#8221;name&#8221;[,  returnTable]) - Populates and returns a table with the item IDs. </dd>
<dd> <a title="API GetEquipmentSetLocations" href="http://www.wowwiki.com/API_GetEquipmentSetLocations">GetEquipmentSetLocations</a>(&#8221;name&#8221;[,  returnTable]) - Populates and returns a table with the item locations. </dd>
<dd> <a title="API EquipmentManager UnpackLocation" href="http://www.wowwiki.com/API_EquipmentManager_UnpackLocation">EquipmentManager_UnpackLocation</a>(location)  - Unpacks a location integer to determine the actual inventory  location. </dd>
<dd> <a title="API PickupEquipmentSet" href="http://www.wowwiki.com/API_PickupEquipmentSet">PickupEquipmentSet</a>(index) - Places an  equipment set on the cursor. </dd>
<dd> <a class="mw-redirect" title="API PickupEquipmentSetByName" href="http://www.wowwiki.com/API_PickupEquipmentSetByName">PickupEquipmentSetByName</a>(&#8221;name&#8221;)  - Places an equipment set on the cursor. </dd>
<dd> <a class="new" title="API EquipmentSetContainsLockedItems (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_EquipmentSetContainsLockedItems&amp;action=edit&amp;redlink=1">EquipmentSetContainsLockedItems</a>(&#8221;name&#8221;) -  Checks if some of the items in the set are currently locked (pending  client/server interaction). </dd>
<dd> <a title="API UseEquipmentSet" href="http://www.wowwiki.com/API_UseEquipmentSet">UseEquipmentSet</a>(&#8221;name&#8221;) - Equips an  equipment set. </dd>
<dd> <a class="new" title="API EquipmentManagerIgnoreSlotForSave (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_EquipmentManagerIgnoreSlotForSave&amp;action=edit&amp;redlink=1">EquipmentManagerIgnoreSlotForSave</a>(slot) -  flags the slot to be ignored when saving an equipment set. </dd>
<dd> <a class="new" title="API EquipmentManagerUnignoreSlotForSave (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_EquipmentManagerUnignoreSlotForSave&amp;action=edit&amp;redlink=1">EquipmentManagerUnignoreSlotForSave</a>(slot)  - removes the ignore flag from a slot when saving an equipment set. </dd>
<dd> <a class="new" title="API EquipmentManagerClearIgnoredSlotsForSave (page  does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_EquipmentManagerClearIgnoredSlotsForSave&amp;action=edit&amp;redlink=1">EquipmentManagerClearIgnoredSlotsForSave</a>()  - removes the ignore flag from all slots when saving an equipment set. </dd>
<dd> <a class="new" title="API SaveEquipmentSet (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SaveEquipmentSet&amp;action=edit&amp;redlink=1">SaveEquipmentSet</a>(&#8221;name&#8221;, iconIndex) - Saves the  currently equipped items in a set. </dd>
<dd> <a class="new" title="API RenameEquipmentSet (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_RenameEquipmentSet&amp;action=edit&amp;redlink=1">RenameEquipmentSet</a>(&#8221;oldName&#8221;, &#8220;newName&#8221;) - Renames an  equipment set. </dd>
<dd> <a class="new" title="API DeleteEquipmentSet (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DeleteEquipmentSet&amp;action=edit&amp;redlink=1">DeleteEquipmentSet</a>(&#8221;name&#8221;) - Forgets an equipment  set. </dd>
<dd> UI <a class="new" title="API GetEquipmentSetIconInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetEquipmentSetIconInfo&amp;action=edit&amp;redlink=1">GetEquipmentSetIconInfo</a>(index) - Returns information  about available icons. </dd>
</dl>
<p><a id="Faction_Functions" rel="nofollow" name="Faction_Functions"></a></p>
<h3><span class="mw-headline"> Faction Functions </span></h3>
<dl>
<dd> <a title="API CollapseFactionHeader" href="http://www.wowwiki.com/API_CollapseFactionHeader">CollapseFactionHeader</a>(index) -  Collapse a faction header row. </dd>
<dd> <a class="new" title="API CollapseAllFactionHeaders (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CollapseAllFactionHeaders&amp;action=edit&amp;redlink=1">CollapseAllFactionHeaders</a>() - Collapse all faction  header rows. </dd>
<dd> <a title="API ExpandFactionHeader" href="http://www.wowwiki.com/API_ExpandFactionHeader">ExpandFactionHeader</a>(index) - Expand a  faction header row. </dd>
<dd> <a class="new" title="API ExpandAllFactionHeaders (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ExpandAllFactionHeaders&amp;action=edit&amp;redlink=1">ExpandAllFactionHeaders</a>() - Expand all faction header  rows. </dd>
<dd> <a title="API FactionToggleAtWar" href="http://www.wowwiki.com/API_FactionToggleAtWar">FactionToggleAtWar</a>(index) - Toggle  the At War flag for a faction. </dd>
<dd> <a title="API  GetFactionInfo" href="http://www.wowwiki.com/API_GetFactionInfo">GetFactionInfo</a>(index) - Gets details for a specific  faction/faction header. </dd>
<dd> <a title="API  GetNumFactions" href="http://www.wowwiki.com/API_GetNumFactions">GetNumFactions</a>() - Returns the number of lines in  the faction display. </dd>
<dd> <a class="new" title="API GetSelectedFaction (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSelectedFaction&amp;action=edit&amp;redlink=1">GetSelectedFaction</a>() - Returns the row index of the  currently selected faction in reputation window. (New in 1.10) </dd>
<dd> <a title="API GetWatchedFactionInfo" href="http://www.wowwiki.com/API_GetWatchedFactionInfo">GetWatchedFactionInfo</a>() - Returns  information about the currently watched faction. (New in 1.10) </dd>
<dd> <a title="API IsFactionInactive" href="http://www.wowwiki.com/API_IsFactionInactive">IsFactionInactive</a>(index) - Returns  true if the faction is marked inactive. (New in 1.10) </dd>
<dd> <a title="API SetFactionActive" href="http://www.wowwiki.com/API_SetFactionActive">SetFactionActive</a>(index) - Remove a  faction from inactive group. (New in 1.10) </dd>
<dd> <a title="API SetFactionInactive" href="http://www.wowwiki.com/API_SetFactionInactive">SetFactionInactive</a>(index) - Move a  faction to inactive group. (New in 1.10) </dd>
<dd> <a class="new" title="API SetSelectedFaction (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSelectedFaction&amp;action=edit&amp;redlink=1">SetSelectedFaction</a>(index) - Sets the currently  selected faction in reputation window. (New in 1.10) </dd>
<dd> <a title="API SetWatchedFactionIndex" href="http://www.wowwiki.com/API_SetWatchedFactionIndex">SetWatchedFactionIndex</a>(index) -  Sets which faction should be watched in Blizzard reputation bar. (New in  1.10) </dd>
<dd> <a title="API UnitFactionGroup" href="http://www.wowwiki.com/API_UnitFactionGroup">UnitFactionGroup</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  the faction group id and name of the specified unit. (eg. &#8220;Alliance&#8221;) -  string returned is localization-independent (used in filepath) </dd>
</dl>
<p><a id="Frame_Management" rel="nofollow" name="Frame_Management"></a></p>
<h3><span class="mw-headline"> Frame Management </span></h3>
<dl>
<dd> <a title="API  CreateFrame" href="http://www.wowwiki.com/API_CreateFrame">CreateFrame</a>(&#8221;frameType&#8221;[ ,"name"][, parent][,  "inheritFrame"]) - Create a new frame of the specified type </dd>
<dd> <a class="new" title="API CreateFont (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CreateFont&amp;action=edit&amp;redlink=1">CreateFont</a>(&#8221;name&#8221;)  - Dynamically create a font object </dd>
<dd> <a title="API  GetFramesRegisteredForEvent" href="http://www.wowwiki.com/API_GetFramesRegisteredForEvent">GetFramesRegisteredForEvent</a>(event) -  Returns a list of frames that are registered for the given event. -  Added in 2.3 </dd>
<dd> <a class="new" title="API GetNumFrames (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumFrames&amp;action=edit&amp;redlink=1">GetNumFrames</a>() - Get the current number of Frame (and  derivative) objects </dd>
<dd> <a title="API EnumerateFrames" href="http://www.wowwiki.com/API_EnumerateFrames">EnumerateFrames</a>(currentFrame) - Get the  Frame which follows currentFrame </dd>
<dd> <a title="API  GetMouseFocus" href="http://www.wowwiki.com/API_GetMouseFocus">GetMouseFocus</a>() - Returns the frame that currently  has the mouse focus. </dd>
<dd> UI <a title="API  MouseIsOver" href="http://www.wowwiki.com/API_MouseIsOver">MouseIsOver</a> - Determines whether or not the mouse is  over the specified frame. </dd>
<dd> UI <a title="API ToggleDropDownMenu" href="http://www.wowwiki.com/API_ToggleDropDownMenu">ToggleDropDownMenu</a>(level, value,  dropDownFrame, anchorName, xOffset, yOffset) </dd>
<dd> UI <a title="API UIFrameFadeIn" href="http://www.wowwiki.com/API_UIFrameFadeIn">UIFrameFadeIn</a>(frame, fadeTime, startAlpha,  endAlpha) </dd>
<dd> UI <a title="API UIFrameFlash" href="http://www.wowwiki.com/API_UIFrameFlash">UIFrameFlash</a>(&#8230;) </dd>
</dl>
<p><a id="FrameXML_API" rel="nofollow" name="FrameXML_API"></a></p>
<h3><span class="mw-headline"> FrameXML API </span></h3>
<p>This is a very limited selection of utility functions provided by  Blizzard&#8217;s FrameXML implementation.</p>
<dl>
<dd> UI <a title="API  EasyMenu" href="http://www.wowwiki.com/API_EasyMenu">EasyMenu</a>(menuList, menuFrame, anchor, x, y, displayMode,  autoHideDelay) </dd>
</dl>
<p><a id="Friend_Functions" rel="nofollow" name="Friend_Functions"></a></p>
<h3><span class="mw-headline"> Friend Functions </span></h3>
<dl>
<dd> <a title="API  AddFriend" href="http://www.wowwiki.com/API_AddFriend">AddFriend</a>(&#8221;playerName&#8221;) - Add a friend to your friend  list. </dd>
<dd> <a title="API AddOrRemoveFriend" href="http://www.wowwiki.com/API_AddOrRemoveFriend">AddOrRemoveFriend</a>(&#8221;playerName&#8221;[,  "note"]) - Toggles a player&#8217;s presence on your friends list. </dd>
<dd> <a title="API  GetFriendInfo" href="http://www.wowwiki.com/API_GetFriendInfo">GetFriendInfo</a>(index) - Returns name, level, class,  location, connected, status, and friend note of a friend. </dd>
<dd> <a title="API  SetFriendNotes" href="http://www.wowwiki.com/API_SetFriendNotes">SetFriendNotes</a>(index, &#8220;note&#8221;) - Sets the note text  for a friend. </dd>
<dd> <a title="API  GetNumFriends" href="http://www.wowwiki.com/API_GetNumFriends">GetNumFriends</a>() - Returns how many friends are on  your friend list. </dd>
<dd> <a title="API GetSelectedFriend" href="http://www.wowwiki.com/API_GetSelectedFriend">GetSelectedFriend</a>() - Returns the  index of the current selected friend. </dd>
<dd> <a title="API  RemoveFriend" href="http://www.wowwiki.com/API_RemoveFriend">RemoveFriend</a>(&#8221;name&#8221; or index) - Removes a friend from  your friend list </dd>
<dd> <a title="API SetSelectedFriend" href="http://www.wowwiki.com/API_SetSelectedFriend">SetSelectedFriend</a>(index) - Update the  current selected friend. </dd>
<dd> <a title="API  ShowFriends" href="http://www.wowwiki.com/API_ShowFriends">ShowFriends</a>() - Request updated friends information  from server. </dd>
<dd> UI <a title="API ToggleFriendsFrame" href="http://www.wowwiki.com/API_ToggleFriendsFrame">ToggleFriendsFrame</a>([tabNumber]) -  Opens/closes the friends pane (possibly on a specific tab). </dd>
</dl>
<p><a id="Glyph_Functions" rel="nofollow" name="Glyph_Functions"></a></p>
<h3><span class="mw-headline"> Glyph Functions </span></h3>
<p><a title="Glyph  SocketID" href="http://www.wowwiki.com/Glyph_SocketID">socketID</a> is a number between 1 and GetNumGlyphSockets().</p>
<dl>
<dd> <a title="API GetNumGlyphSockets" href="http://www.wowwiki.com/API_GetNumGlyphSockets">GetNumGlyphSockets</a>() - Returns the  number of Glyph Sockets. (Same result as NUM_GLYPH_SLOTS) </dd>
<dd> <a title="API GetGlyphSocketInfo" href="http://www.wowwiki.com/API_GetGlyphSocketInfo">GetGlyphSocketInfo</a>(socketID[,  talentGroup]) - Returns info on a specific Glyph Socket. </dd>
<dd> <a class="new" title="API GetGlyphLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGlyphLink&amp;action=edit&amp;redlink=1">GetGlyphLink</a>(socketID[, talentGroup]) - Returns link  text for a Glyph in the desired Socket. </dd>
<dd> <a class="new" title="API GlyphMatchesSocket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GlyphMatchesSocket&amp;action=edit&amp;redlink=1">GlyphMatchesSocket</a>(socketID) - See if the Glyph held  by the cursor matches the desired Socket. </dd>
<dd> <a class="new" title="API PlaceGlyphInSocket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PlaceGlyphInSocket&amp;action=edit&amp;redlink=1">PlaceGlyphInSocket</a>(socketID) - Places the Glyph held  by the cursor into the desired Socket. </dd>
<dd> <a class="new" title="API RemoveGlyphFromSocket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_RemoveGlyphFromSocket&amp;action=edit&amp;redlink=1">RemoveGlyphFromSocket</a>(socketID) - Removes the Glyph  from the desired Socket. </dd>
<dd> <a class="new" title="API SpellCanTargetGlyph (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SpellCanTargetGlyph&amp;action=edit&amp;redlink=1">SpellCanTargetGlyph</a>() </dd>
</dl>
<p><a id="GM_Functions" rel="nofollow" name="GM_Functions"></a></p>
<h3><span class="mw-headline"> GM Functions </span></h3>
<dl>
<dd> <a title="API  CanComplainChat" href="http://www.wowwiki.com/API_CanComplainChat">CanComplainChat</a>(lineID) - determines if we should  show the menu for reporting a line of chat spam (lineID comes from the  player link in the chat line) </dd>
<dd> <a class="new" title="API CanComplainInboxItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanComplainInboxItem&amp;action=edit&amp;redlink=1">CanComplainInboxItem</a>(index) - determines if we should  show the “report spam” button on a mail item </dd>
<dd> <a title="API  ComplainChat" href="http://www.wowwiki.com/API_ComplainChat">ComplainChat</a>(lineID) - complains about a particular  line of chat spam </dd>
<dd> <a class="new" title="API ComplainInboxItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ComplainInboxItem&amp;action=edit&amp;redlink=1">ComplainInboxItem</a>(index) - complains about a  particular mail item </dd>
<dd> PROTECTED <a class="new" title="API DeleteGMTicket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DeleteGMTicket&amp;action=edit&amp;redlink=1">DeleteGMTicket</a>() </dd>
<dd> <a title="API GMRequestPlayerInfo" href="http://www.wowwiki.com/API_GMRequestPlayerInfo">GMRequestPlayerInfo</a>() - access  denied (darn) </dd>
<dd> <a class="new" title="API GetGMStatus (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGMStatus&amp;action=edit&amp;redlink=1">GetGMStatus</a>() </dd>
<dd> <a class="new" title="API GetGMTicket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGMTicket&amp;action=edit&amp;redlink=1">GetGMTicket</a>() </dd>
<dd> <a title="API GetGMTicketCategories" href="http://www.wowwiki.com/API_GetGMTicketCategories">GetGMTicketCategories</a>() - Return  all available ticket categories (not as a table) </dd>
<dd> <a class="new" title="API GMSurveyAnswerSubmit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GMSurveyAnswerSubmit&amp;action=edit&amp;redlink=1">GMSurveyAnswerSubmit</a>(question, rank, comment) - ? </dd>
<dd> <a class="new" title="API GMSurveyCommentSubmit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GMSurveyCommentSubmit&amp;action=edit&amp;redlink=1">GMSurveyCommentSubmit</a>(comment) - ? </dd>
<dd> <a title="API GMSurveyQuestion" href="http://www.wowwiki.com/API_GMSurveyQuestion">GMSurveyQuestion</a> ? </dd>
<dd> <a class="new" title="API GMSurveySubmit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GMSurveySubmit&amp;action=edit&amp;redlink=1">GMSurveySubmit</a> ? </dd>
<dd> <a title="API  HelpReportLag" href="http://www.wowwiki.com/API_HelpReportLag">HelpReportLag</a>(type) - Uses the Report Lag function on  the help screen to report the specified type of lag </dd>
<dd> PROTECTED <a class="new" title="API NewGMTicket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_NewGMTicket&amp;action=edit&amp;redlink=1">NewGMTicket</a>(type,&#8221;text&#8221;) </dd>
<dd> PROTECTED UI <a title="API Stuck" href="http://www.wowwiki.com/API_Stuck">Stuck</a>() - Informs the game engine that the player  is Stuck. </dd>
<dd> PROTECTED <a class="new" title="API UpdateGMTicket (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UpdateGMTicket&amp;action=edit&amp;redlink=1">UpdateGMTicket</a>(type,&#8221;text&#8221;) </dd>
</dl>
<p><a id="Gossip_Functions" rel="nofollow" name="Gossip_Functions"></a></p>
<h3><span class="mw-headline"> Gossip Functions </span></h3>
<dl>
<dd> <a title="API  CloseGossip" href="http://www.wowwiki.com/API_CloseGossip">CloseGossip</a>() - Dismiss the gossip window. </dd>
<dd> <a title="API  ForceGossip" href="http://www.wowwiki.com/API_ForceGossip">ForceGossip</a>() - Returns whether the gossip text <em>must</em> be displayed. (New: 3.3.3) </dd>
<dd> <a title="API GetGossipActiveQuests" href="http://www.wowwiki.com/API_GetGossipActiveQuests">GetGossipActiveQuests</a>() -  Retrieves a list of the active (?) quests on the NPC you are talking to. </dd>
<dd> <a title="API GetGossipAvailableQuests" href="http://www.wowwiki.com/API_GetGossipAvailableQuests">GetGossipAvailableQuests</a>() -  Retrieves a list of the available (!) quests on the NPC you are talking  to. </dd>
<dd> <a title="API GetGossipOptions" href="http://www.wowwiki.com/API_GetGossipOptions">GetGossipOptions</a>() - Retrieves a list  of the available gossip items on the NPC you are talking to. </dd>
<dd> <a title="API  GetGossipText" href="http://www.wowwiki.com/API_GetGossipText">GetGossipText</a>() - Retrieves the gossip text. </dd>
<dd> <a title="API GetNumGossipActiveQuests" href="http://www.wowwiki.com/API_GetNumGossipActiveQuests">GetNumGossipActiveQuests</a>() -  Returns the number of active quests that you should eventually turn in  to this NPC. </dd>
<dd> <a title="API  GetNumGossipAvailableQuests" href="http://www.wowwiki.com/API_GetNumGossipAvailableQuests">GetNumGossipAvailableQuests</a>() -  Returns the number of quests (that you are not already on) offered by  this NPC. </dd>
<dd> <a title="API GetNumGossipOptions" href="http://www.wowwiki.com/API_GetNumGossipOptions">GetNumGossipOptions</a>() - Returns the  number of conversation options available with this NPC. </dd>
<dd> <a title="API SelectGossipActiveQuest" href="http://www.wowwiki.com/API_SelectGossipActiveQuest">SelectGossipActiveQuest</a>(index) -  Selects an active quest. </dd>
<dd> <a title="API  SelectGossipAvailableQuest" href="http://www.wowwiki.com/API_SelectGossipAvailableQuest">SelectGossipAvailableQuest</a>(index) -  Selects an available quest. </dd>
<dd> <a title="API SelectGossipOption" href="http://www.wowwiki.com/API_SelectGossipOption">SelectGossipOption</a>(index) - Selects  on a gossip item. </dd>
</dl>
<p><a id="Group_Functions" rel="nofollow" name="Group_Functions"></a></p>
<h3><span class="mw-headline"> Group Functions </span></h3>
<p>See also: <a href="http://www.wowwiki.com/World_of_Warcraft_API#Raid_Functions">Raid Functions</a></p>
<dl>
<dd> <a title="API  AcceptGroup" href="http://www.wowwiki.com/API_AcceptGroup">AcceptGroup</a>() - Accept the invitation to party. </dd>
<dd> <a title="API ConfirmReadyCheck" href="http://www.wowwiki.com/API_ConfirmReadyCheck">ConfirmReadyCheck</a>(isReady) - Indicate  if you are ready or not. </dd>
<dd> <a class="new" title="API ConvertToRaid (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ConvertToRaid&amp;action=edit&amp;redlink=1">ConvertToRaid</a>() - Converts party to raid. </dd>
<dd> <a class="new" title="API DeclineGroup (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DeclineGroup&amp;action=edit&amp;redlink=1">DeclineGroup</a>() - Decline the invitation to a party. </dd>
<dd> <a title="API  DoReadyCheck" href="http://www.wowwiki.com/API_DoReadyCheck">DoReadyCheck</a>() - Initiate a ready check. </dd>
<dd> <a title="API  GetLootMethod" href="http://www.wowwiki.com/API_GetLootMethod">GetLootMethod</a>() - Return the currently active <a title="LootMethod" href="http://www.wowwiki.com/LootMethod">lootMethod</a> </dd>
<dd> <a title="API GetLootThreshold" href="http://www.wowwiki.com/API_GetLootThreshold">GetLootThreshold</a>() - Return the current  loot threshold (for group/master loot) </dd>
<dd> <a title="API GetMasterLootCandidate" href="http://www.wowwiki.com/API_GetMasterLootCandidate">GetMasterLootCandidate</a>(index) -  Return the name of a player who is eligible to receive loot in master  mode </dd>
<dd> <a title="API GetNumPartyMembers" href="http://www.wowwiki.com/API_GetNumPartyMembers">GetNumPartyMembers</a>() - Returns the  number of party members </dd>
<dd> <a title="API GetPartyLeaderIndex" href="http://www.wowwiki.com/API_GetPartyLeaderIndex">GetPartyLeaderIndex</a>() - Returns the  index of the party leader (1-4) if not yourself. </dd>
<dd> <a title="API  GetPartyMember" href="http://www.wowwiki.com/API_GetPartyMember">GetPartyMember</a>(index) - Returns 1 if the party  member at the given index exists, nil otherwise.. </dd>
<dd> <a title="API  InviteUnit" href="http://www.wowwiki.com/API_InviteUnit">InviteUnit</a>(&#8221;name&#8221; or &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Invites  the specified player to the group you are currently in <em>(new for WoW  2.0)</em> </dd>
<dd> <a class="new" title="API IsPartyLeader (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsPartyLeader&amp;action=edit&amp;redlink=1">IsPartyLeader</a>() - Returns true if the player is the  party leader. </dd>
<dd> <a title="API  LeaveParty" href="http://www.wowwiki.com/API_LeaveParty">LeaveParty</a>() - Quit the party, often useful to  troubleshoot &#8220;phantom party&#8221; bugs which may list you in a party when you  are in fact not. </dd>
<dd> <a title="API PromoteToLeader" href="http://www.wowwiki.com/API_PromoteToLeader">PromoteToLeader</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Promote  a unit to party leader. </dd>
<dd> <a title="API  SetLootMethod" href="http://www.wowwiki.com/API_SetLootMethod">SetLootMethod</a>(&#8221;<a title="LootMethod" href="http://www.wowwiki.com/LootMethod">lootMethod</a>&#8220;[,  "masterPlayer" or threshold]) - Set the current loot method </dd>
<dd> <a title="API SetLootThreshold" href="http://www.wowwiki.com/API_SetLootThreshold">SetLootThreshold</a>(<a class="new" title="ItemQuality (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=ItemQuality&amp;action=edit&amp;redlink=1">itemQuality</a>)  - Set the threshold for group/master loot </dd>
<dd> <a title="API  UninviteUnit" href="http://www.wowwiki.com/API_UninviteUnit">UninviteUnit</a>(&#8221;name&#8221; [, "reason"]) - Kick a unit from  the party if player is group leader; or initiate a kick vote in an LFD  group. </dd>
<dd> <a title="API  UnitInParty" href="http://www.wowwiki.com/API_UnitInParty">UnitInParty</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns true if the unit is a member of your  party. </dd>
<dd> <a title="API UnitIsPartyLeader" href="http://www.wowwiki.com/API_UnitIsPartyLeader">UnitIsPartyLeader</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  true if the unit is the leader of its party. </dd>
</dl>
<p><a id="Guild_Functions" rel="nofollow" name="Guild_Functions"></a></p>
<h3><span class="mw-headline"> Guild Functions </span></h3>
<dl>
<dd> <a title="API  AcceptGuild" href="http://www.wowwiki.com/API_AcceptGuild">AcceptGuild</a>() - The player accepts the invitation to  join a guild. </dd>
<dd> <a title="API BuyGuildCharter" href="http://www.wowwiki.com/API_BuyGuildCharter">BuyGuildCharter</a>(&#8221;guildName&#8221;) - Purchases  a guild charter for <em>guildName</em>. </dd>
<dd> <a class="new" title="API CanEditGuildEvent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanEditGuildEvent&amp;action=edit&amp;redlink=1">CanEditGuildEvent</a>() - Returns true if you are allowed  to edit guild events (in the calendar), </dd>
<dd> <a class="new" title="API CanEditGuildInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanEditGuildInfo&amp;action=edit&amp;redlink=1">CanEditGuildInfo</a>() - Returns true if you are allowed  to edit the guild info </dd>
<dd> <a class="new" title="API CanEditMOTD (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanEditMOTD&amp;action=edit&amp;redlink=1">CanEditMOTD</a>() - Returns true if you are allowed to  edit the guild motd. </dd>
<dd> <a class="new" title="API CanEditOfficerNote (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanEditOfficerNote&amp;action=edit&amp;redlink=1">CanEditOfficerNote</a>() - Returns true if you are  allowed to edit a guild member&#8217;s officer note. </dd>
<dd> <a class="new" title="API CanEditPublicNote (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanEditPublicNote&amp;action=edit&amp;redlink=1">CanEditPublicNote</a>() - Returns true if you are allowed  to edit a guild member&#8217;s public note. </dd>
<dd> <a class="new" title="API CanGuildDemote (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanGuildDemote&amp;action=edit&amp;redlink=1">CanGuildDemote</a>() - Returns true if you are allowed to  demote a guild member. </dd>
<dd> <a title="API  CanGuildInvite" href="http://www.wowwiki.com/API_CanGuildInvite">CanGuildInvite</a>() - Returns true if you are allowed  to invite a new member to the guild. </dd>
<dd> <a class="new" title="API CanGuildPromote (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanGuildPromote&amp;action=edit&amp;redlink=1">CanGuildPromote</a>() - Returns true if you are allowed  to demote a guild member. </dd>
<dd> <a class="new" title="API CanGuildRemove (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanGuildRemove&amp;action=edit&amp;redlink=1">CanGuildRemove</a>() - Returns true if you are allowed to  remove a guild member. </dd>
<dd> <a class="new" title="API CanViewOfficerNote (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanViewOfficerNote&amp;action=edit&amp;redlink=1">CanViewOfficerNote</a>() - Returns true if you are  allowed to view a Officer Note. </dd>
<dd> <a class="new" title="API CloseGuildRegistrar (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CloseGuildRegistrar&amp;action=edit&amp;redlink=1">CloseGuildRegistrar</a>() - ?. </dd>
<dd> <a class="new" title="API CloseGuildRoster (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CloseGuildRoster&amp;action=edit&amp;redlink=1">CloseGuildRoster</a>() - ?. </dd>
<dd> <a class="new" title="API CloseTabardCreation (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CloseTabardCreation&amp;action=edit&amp;redlink=1">CloseTabardCreation</a>() - ?. </dd>
<dd> <a title="API  DeclineGuild" href="http://www.wowwiki.com/API_DeclineGuild">DeclineGuild</a>() - The player declines the invitation to  join a guild. </dd>
<dd> <a class="new" title="API GetGuildCharterCost (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildCharterCost&amp;action=edit&amp;redlink=1">GetGuildCharterCost</a>() - Returns the cost of  purchasing a guild charter. </dd>
<dd> <a class="new" title="API GetGuildEventInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildEventInfo&amp;action=edit&amp;redlink=1">GetGuildEventInfo</a>(index) - Returns the event  information. (Added in 2.3) </dd>
<dd> <a title="API  GetGuildInfo" href="http://www.wowwiki.com/API_GetGuildInfo">GetGuildInfo</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - This function returns the name of the guild <em>unit</em> belongs to. </dd>
<dd> <a class="new" title="API GetGuildInfoText (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildInfoText&amp;action=edit&amp;redlink=1">GetGuildInfoText</a>() - Returns the persistant Guild  Information data. (new in 1.9) </dd>
<dd> <a title="API GetGuildRosterInfo" href="http://www.wowwiki.com/API_GetGuildRosterInfo">GetGuildRosterInfo</a>(index) - This  function is used to get info on members in the guild. </dd>
<dd> <a title="API GetGuildRosterLastOnline" href="http://www.wowwiki.com/API_GetGuildRosterLastOnline">GetGuildRosterLastOnline</a>(index)  - Returns time since last online for indexth member in current sort  order. </dd>
<dd> <a class="new" title="API GetGuildRosterMOTD (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildRosterMOTD&amp;action=edit&amp;redlink=1">GetGuildRosterMOTD</a>() - Returns guild&#8217;s MOTD. </dd>
<dd> <a title="API GetGuildRosterSelection" href="http://www.wowwiki.com/API_GetGuildRosterSelection">GetGuildRosterSelection</a>() -  Returns the index of the current selected guild member. </dd>
<dd> <a title="API GetGuildRosterShowOffline" href="http://www.wowwiki.com/API_GetGuildRosterShowOffline">GetGuildRosterShowOffline</a>() -  Returns true if showing offline members of the guild. </dd>
<dd> <a class="new" title="API GetNumGuildEvents (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumGuildEvents&amp;action=edit&amp;redlink=1">GetNumGuildEvents</a>() - Returns the number of guild  events. (Added in 2.3) </dd>
<dd> <a title="API GetNumGuildMembers" href="http://www.wowwiki.com/API_GetNumGuildMembers">GetNumGuildMembers</a>(offline) - Returns  the number of guild members total. </dd>
<dd> <a class="new" title="API GetTabardCreationCost (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTabardCreationCost&amp;action=edit&amp;redlink=1">GetTabardCreationCost</a>() - Returns cost in coppers. </dd>
<dd> <a class="new" title="API GetTabardInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTabardInfo&amp;action=edit&amp;redlink=1">GetTabardInfo</a>() -?. </dd>
<dd> <a class="new" title="API GuildControlAddRank (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GuildControlAddRank&amp;action=edit&amp;redlink=1">GuildControlAddRank</a>(&#8221;name&#8221;) - Add another rank called  &#8220;name&#8221;. Only Guildmaster. </dd>
<dd> <a title="API GuildControlDelRank" href="http://www.wowwiki.com/API_GuildControlDelRank">GuildControlDelRank</a>(&#8221;name&#8221;) - Delete  rank &#8220;name&#8221;. Only Guildmaster. </dd>
<dd> <a class="new" title="API GuildControlGetNumRanks (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GuildControlGetNumRanks&amp;action=edit&amp;redlink=1">GuildControlGetNumRanks</a>() - Returns number of ranks  after guild frame open. Any guild member can use this. </dd>
<dd> <a title="API GuildControlGetRankFlags" href="http://www.wowwiki.com/API_GuildControlGetRankFlags">GuildControlGetRankFlags</a>() -  Returns list of values for each permission for a select rank (default  rank 1). </dd>
<dd> <a title="API GuildControlGetRankName" href="http://www.wowwiki.com/API_GuildControlGetRankName">GuildControlGetRankName</a>(index) -  Returns name of the rank at index. Any guild member can use this. </dd>
<dd> <a title="API GuildControlSaveRank" href="http://www.wowwiki.com/API_GuildControlSaveRank">GuildControlSaveRank</a>(&#8221;name&#8221;) -  Saves the permissions for rank &#8220;name&#8221;. Only Guildmaster. </dd>
<dd> <a title="API GuildControlSetRank" href="http://www.wowwiki.com/API_GuildControlSetRank">GuildControlSetRank</a>(rank) - Sets the  currently selected rank to view. </dd>
<dd> <a title="API GuildControlSetRankFlag" href="http://www.wowwiki.com/API_GuildControlSetRankFlag">GuildControlSetRankFlag</a>(index,  enabled) - Enable/disable permission for an action at index. Only  Guildmaster. </dd>
<dd> <a title="API  GuildDemote" href="http://www.wowwiki.com/API_GuildDemote">GuildDemote</a>(&#8221;name&#8221;) - Demotes a player &#8220;name&#8221;. </dd>
<dd> <a title="API  GuildDisband" href="http://www.wowwiki.com/API_GuildDisband">GuildDisband</a>() - Disbands at once your guild. You must  be the guild&#8217;s leader to do so. Be careful, no warning is given prior  disbanding. </dd>
<dd> <a title="API  GuildInfo" href="http://www.wowwiki.com/API_GuildInfo">GuildInfo</a>() - Displays information about the guild you  are a member of. </dd>
<dd> <a title="API  GuildInvite" href="http://www.wowwiki.com/API_GuildInvite">GuildInvite</a>(&#8221;name&#8221;) - Invites a player to your guild. </dd>
<dd> <a title="API  GuildLeave" href="http://www.wowwiki.com/API_GuildLeave">GuildLeave</a>() - Removes you from your current guild. </dd>
<dd> <a title="API  GuildPromote" href="http://www.wowwiki.com/API_GuildPromote">GuildPromote</a>(&#8221;name&#8221;) - Promotes a player &#8220;name&#8221;. </dd>
<dd> <a title="API  GuildRoster" href="http://www.wowwiki.com/API_GuildRoster">GuildRoster</a>() - Fetches the guild list and fires a  GUILD_ROSTER_UPDATE event. </dd>
<dd> <a title="API GuildRosterSetOfficerNote" href="http://www.wowwiki.com/API_GuildRosterSetOfficerNote">GuildRosterSetOfficerNote</a>(index,  &#8220;note&#8221;) - Sets the officer note at index to &#8220;note&#8221;. </dd>
<dd> <a title="API GuildRosterSetPublicNote" href="http://www.wowwiki.com/API_GuildRosterSetPublicNote">GuildRosterSetPublicNote</a>(index,  &#8220;note&#8221;) - Sets the public note at index to &#8220;note&#8221;. </dd>
<dd> <a title="API  GuildSetMOTD" href="http://www.wowwiki.com/API_GuildSetMOTD">GuildSetMOTD</a>(&#8221;note&#8221;) - Set Guild Message of the Day to  &#8220;note&#8221;. </dd>
<dd> <a title="API  GuildSetLeader" href="http://www.wowwiki.com/API_GuildSetLeader">GuildSetLeader</a>(&#8221;name&#8221;) - Transfers guild leadership  to another character. </dd>
<dd> <a class="new" title="API GuildUninvite (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GuildUninvite&amp;action=edit&amp;redlink=1">GuildUninvite</a>(&#8221;name&#8221;) - Removes the member &#8220;name&#8221;. </dd>
<dd> <a title="API  IsGuildLeader" href="http://www.wowwiki.com/API_IsGuildLeader">IsGuildLeader</a>(&#8221;name&#8221;) - Determine if player &#8220;name&#8221; is  a guild master. </dd>
<dd> <a title="API  IsInGuild" href="http://www.wowwiki.com/API_IsInGuild">IsInGuild</a>() - Lets you know whether you are in a guild. </dd>
<dd> <a class="new" title="API QueryGuildEventLog (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_QueryGuildEventLog&amp;action=edit&amp;redlink=1">QueryGuildEventLog</a>() - Fetches the guild event list  and fires a GUILD_EVENT_LOG_UPDATE event. (Added in 2.3) </dd>
<dd> <a title="API SetGuildInfoText" href="http://www.wowwiki.com/API_SetGuildInfoText">SetGuildInfoText</a>() - Sets the  persistant Guild Information data. Limit is 500 letters  (GuildInfoEditBox is limited to this number). Longer texts are possible,  but will be reseted during the day. (new in 1.9) </dd>
<dd> <a title="API SetGuildRosterSelection" href="http://www.wowwiki.com/API_SetGuildRosterSelection">SetGuildRosterSelection</a>(index) -  Selects/deselects a guild member according current sorting order. </dd>
<dd> <a title="API SetGuildRosterShowOffline" href="http://www.wowwiki.com/API_SetGuildRosterShowOffline">SetGuildRosterShowOffline</a>(enabled)  - Sets/Resets the show offline members flag. </dd>
<dd> <a title="API SortGuildRoster" href="http://www.wowwiki.com/API_SortGuildRoster">SortGuildRoster</a>(&#8221;sort&#8221;) - Sorts  guildroster according &#8220;sort&#8221;. Any unknown values sort on &#8220;name&#8221;. </dd>
</dl>
<p><a id="Guild_Bank_Functions" rel="nofollow" name="Guild_Bank_Functions"></a></p>
<h3><span class="mw-headline"> Guild Bank Functions </span></h3>
<p>All functions were added in <a class="mw-redirect" title="Patch 2.3" href="http://www.wowwiki.com/Patch_2.3">Patch 2.3</a></p>
<dl>
<dd> <a title="API AutoStoreGuildBankItem" href="http://www.wowwiki.com/API_AutoStoreGuildBankItem">AutoStoreGuildBankItem</a>(tab, slot)  - Withdraws an item from the bank, and automatically stores it in the  player&#8217;s inventory. </dd>
<dd> <a class="new" title="API BuyGuildBankTab (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BuyGuildBankTab&amp;action=edit&amp;redlink=1">BuyGuildBankTab</a>() - Buys a guild bank tab, without  confirmation. </dd>
<dd> <a class="new" title="API CanWithdrawGuildBankMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanWithdrawGuildBankMoney&amp;action=edit&amp;redlink=1">CanWithdrawGuildBankMoney</a>() - Boolean, true if  player is permitted to withdraw funds. No bank proximity required. </dd>
<dd> <a class="new" title="API CloseGuildBankFrame (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CloseGuildBankFrame&amp;action=edit&amp;redlink=1">CloseGuildBankFrame</a>() - Closes the guild bank frame </dd>
<dd> <a class="new" title="API DepositGuildBankMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DepositGuildBankMoney&amp;action=edit&amp;redlink=1">DepositGuildBankMoney</a>(money) - Deposits &#8220;money&#8221;  amount in copper. </dd>
<dd> <a class="new" title="API GetCurrentGuildBankTab (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCurrentGuildBankTab&amp;action=edit&amp;redlink=1">GetCurrentGuildBankTab</a>() - Integer of selected tab,  &gt;= 1 </dd>
<dd> <a class="new" title="API GetGuildBankItemInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildBankItemInfo&amp;action=edit&amp;redlink=1">GetGuildBankItemInfo</a>(tab, slot) - Returns texture,  amount and integer 1 or nil depending on locked state </dd>
<dd> <a class="new" title="API GetGuildBankItemLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildBankItemLink&amp;action=edit&amp;redlink=1">GetGuildBankItemLink</a>(tab, slot) - Returns itemLink </dd>
<dd> <a title="API GetGuildBankMoney" href="http://www.wowwiki.com/API_GetGuildBankMoney">GetGuildBankMoney</a>() - Integer, funds  available in copper. </dd>
<dd> <a title="API GetGuildBankMoneyTransaction" href="http://www.wowwiki.com/API_GetGuildBankMoneyTransaction">GetGuildBankMoneyTransaction</a>(index)  - No bank proximity required, however QueryGuildBankLog function  requires proximity. </dd>
<dd> <a class="new" title="API GetGuildBankTabCost (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildBankTabCost&amp;action=edit&amp;redlink=1">GetGuildBankTabCost</a>() - Integer OR nil - cost in  copper OR no tabs available to buy </dd>
<dd> <a title="API GetGuildBankTabInfo" href="http://www.wowwiki.com/API_GetGuildBankTabInfo">GetGuildBankTabInfo</a>(tab) - Returns  the name and icon of the guild bank tab queried. </dd>
<dd> <a title="API  GetGuildBankTabPermissions" href="http://www.wowwiki.com/API_GetGuildBankTabPermissions">GetGuildBankTabPermissions</a>(tab) - Gets  display / player&#8217;s access info. Limited data available without bank  proximity. </dd>
<dd> <a title="API GetGuildBankTransaction" href="http://www.wowwiki.com/API_GetGuildBankTransaction">GetGuildBankTransaction</a>(tab,  index) - Requires Guild Bank Proximity </dd>
<dd> <a class="new" title="API GetGuildBankWithdrawLimit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGuildBankWithdrawLimit&amp;action=edit&amp;redlink=1">GetGuildBankWithdrawLimit</a>() - Returns withdraw limit  for currently selected rank in guild control </dd>
<dd> <a title="API GetGuildTabardFileNames" href="http://www.wowwiki.com/API_GetGuildTabardFileNames">GetGuildTabardFileNames</a>() </dd>
<dd> <a class="new" title="API GetNumGuildBankMoneyTransactions (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumGuildBankMoneyTransactions&amp;action=edit&amp;redlink=1">GetNumGuildBankMoneyTransactions</a>() - Returns  number of money log entries </dd>
<dd> <a class="new" title="API GetNumGuildBankTabs (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumGuildBankTabs&amp;action=edit&amp;redlink=1">GetNumGuildBankTabs</a>() - Integer count of bought tabs,  &gt;= 0. No bank proximity required. </dd>
<dd> <a class="new" title="API GetNumGuildBankTransactions (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumGuildBankTransactions&amp;action=edit&amp;redlink=1">GetNumGuildBankTransactions</a>(tab) - Returns  number of log transactions for tab &#8220;tab&#8221; </dd>
<dd> <a class="new" title="API PickupGuildBankItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PickupGuildBankItem&amp;action=edit&amp;redlink=1">PickupGuildBankItem</a>(tab, slot) - Picks up an item  from the guild bank </dd>
<dd> <a class="new" title="API PickupGuildBankMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PickupGuildBankMoney&amp;action=edit&amp;redlink=1">PickupGuildBankMoney</a>(money) - Picks up &#8220;money&#8221; copper  from the guild bank </dd>
<dd> <a class="new" title="API QueryGuildBankLog (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_QueryGuildBankLog&amp;action=edit&amp;redlink=1">QueryGuildBankLog</a>(tab) - Updates bank log data from  the server, called before all transaction functions. &#8220;Money tab&#8221; is  MAX_GUILDBANK_TABS+1 </dd>
<dd> <a class="new" title="API QueryGuildBankTab (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_QueryGuildBankTab&amp;action=edit&amp;redlink=1">QueryGuildBankTab</a>(tab) - Updates bank tab data from  the server, called before all item functions. </dd>
<dd> <a class="new" title="API SetCurrentGuildBankTab (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetCurrentGuildBankTab&amp;action=edit&amp;redlink=1">SetCurrentGuildBankTab</a>(tab) - Select different bank  tab in the UI </dd>
<dd> <a class="new" title="API SetGuildBankTabInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetGuildBankTabInfo&amp;action=edit&amp;redlink=1">SetGuildBankTabInfo</a>(tab, name, iconIndex) - Modifies  name and icon for tab </dd>
<dd> <a title="API  SetGuildBankTabPermissions" href="http://www.wowwiki.com/API_SetGuildBankTabPermissions">SetGuildBankTabPermissions</a>(tab, index,  enabled) - Modifies the permissions for the GuildBankTab. Guild Leader  Only. </dd>
<dd> <a title="API SetGuildBankTabWithdraw" href="http://www.wowwiki.com/API_SetGuildBankTabWithdraw">SetGuildBankTabWithdraw</a>(tab,  amount) - Modifies the stacks per day withdraw limit for select guild  bank tab. Guild Leader Only. </dd>
<dd> <a title="API SetGuildBankWithdrawLimit" href="http://www.wowwiki.com/API_SetGuildBankWithdrawLimit">SetGuildBankWithdrawLimit</a>(amount)  - Sets the gold withdraw limit from the guild bank. Guild Leader Only. </dd>
<dd> <a class="new" title="API SplitGuildBankItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SplitGuildBankItem&amp;action=edit&amp;redlink=1">SplitGuildBankItem</a>(tab, slot, amount) - Picks up part  of a stack </dd>
<dd> <a class="new" title="API WithdrawGuildBankMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_WithdrawGuildBankMoney&amp;action=edit&amp;redlink=1">WithdrawGuildBankMoney</a>(money) - Withdraws &#8220;money&#8221;  copper from the guild bank </dd>
</dl>
<p><a id="Honor_Functions" rel="nofollow" name="Honor_Functions"></a></p>
<h3><span class="mw-headline"> Honor Functions </span></h3>
<dl>
<dd> <a title="API GetHolidayBGHonorCurrencyBonuses" href="http://www.wowwiki.com/API_GetHolidayBGHonorCurrencyBonuses">GetHolidayBGHonorCurrencyBonuses</a>()  - Return rewards for participating in a Call to Arms (holiday)  battleground. (New: 3.3.3) </dd>
<dd> <a title="API GetHonorCurrency" href="http://www.wowwiki.com/API_GetHonorCurrency">GetHonorCurrency</a>() - Return the amount  of honor the player has available to purchase items. </dd>
<dd> <a title="API GetInspectHonorData" href="http://www.wowwiki.com/API_GetInspectHonorData">GetInspectHonorData</a>() - Return honor  info for the inspected unit (if available). </dd>
<dd> <a title="API GetPVPLifetimeStats" href="http://www.wowwiki.com/API_GetPVPLifetimeStats">GetPVPLifetimeStats</a>() - Get your  PvP/Honor statistics for your lifetime. </dd>
<dd> <a title="API  GetPVPRankInfo" href="http://www.wowwiki.com/API_GetPVPRankInfo">GetPVPRankInfo</a>(rank[, <a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>]) - Get  information about a specific PvP rank. </dd>
<dd> <a title="API GetPVPRankProgress" href="http://www.wowwiki.com/API_GetPVPRankProgress">GetPVPRankProgress</a>() - Get  information about the PvP rank progress. </dd>
<dd> <a title="API GetPVPSessionStats" href="http://www.wowwiki.com/API_GetPVPSessionStats">GetPVPSessionStats</a>() - Get your  PvP/Honor statistics for this session. </dd>
<dd> <a title="API GetPVPYesterdayStats" href="http://www.wowwiki.com/API_GetPVPYesterdayStats">GetPVPYesterdayStats</a>() - Get your  PvP/Honor statistics for yesterday. </dd>
<dd> <a title="API GetRandomBGHonorCurrencyBonuses" href="http://www.wowwiki.com/API_GetRandomBGHonorCurrencyBonuses">GetRandomBGHonorCurrencyBonuses</a>()  - Returns rewards for participating in a random battleground. (New:  3.3.3) </dd>
<dd> <a title="API HasInspectHonorData" href="http://www.wowwiki.com/API_HasInspectHonorData">HasInspectHonorData</a>() - Determine if  the inspected unit&#8217;s honor data is available. </dd>
<dd> <a title="API RequestInspectHonorData" href="http://www.wowwiki.com/API_RequestInspectHonorData">RequestInspectHonorData</a>() -  Request honor data for inspected unit. </dd>
<dd> <a title="API  UnitPVPName" href="http://www.wowwiki.com/API_UnitPVPName">UnitPVPName</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns unit&#8217;s name with PvP rank prefix  (e.g., &#8220;Corporal Allianceguy&#8221;). </dd>
<dd> <a title="API  UnitPVPRank" href="http://www.wowwiki.com/API_UnitPVPRank">UnitPVPRank</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Get PvP rank information for requested unit. </dd>
</dl>
<p><a id="Ignore_Functions" rel="nofollow" name="Ignore_Functions"></a></p>
<h3><span class="mw-headline"> Ignore Functions </span></h3>
<dl>
<dd> <a title="API  AddIgnore" href="http://www.wowwiki.com/API_AddIgnore">AddIgnore</a>(&#8221;name&#8221;) - Add a player to your ignore list. </dd>
<dd> <a title="API  AddOrDelIgnore" href="http://www.wowwiki.com/API_AddOrDelIgnore">AddOrDelIgnore</a>(&#8221;name&#8221;) - Toggles the ignore state  of the specified name. </dd>
<dd> <a title="API  DelIgnore" href="http://www.wowwiki.com/API_DelIgnore">DelIgnore</a>(&#8221;name&#8221;) - Delete a player from your ignore  list. </dd>
<dd> <a title="API  GetIgnoreName" href="http://www.wowwiki.com/API_GetIgnoreName">GetIgnoreName</a>(index) - Get the name of the player on  your ignore list at index. </dd>
<dd> <a title="API  GetNumIgnores" href="http://www.wowwiki.com/API_GetNumIgnores">GetNumIgnores</a>() - Get the number of players on your  ignore list. </dd>
<dd> <a title="API GetSelectedIgnore" href="http://www.wowwiki.com/API_GetSelectedIgnore">GetSelectedIgnore</a>() - Returns the  currently selected index in the ignore listing </dd>
<dd> <a title="API SetSelectedIgnore" href="http://www.wowwiki.com/API_SetSelectedIgnore">SetSelectedIgnore</a>(index) - Sets the  currently selected ignore entry </dd>
</dl>
<p><a id="Inspection_Functions" rel="nofollow" name="Inspection_Functions"></a></p>
<h3><span class="mw-headline"> Inspection Functions </span></h3>
<dl>
<dd> <a class="new" title="API CanInspect (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanInspect&amp;action=edit&amp;redlink=1">CanInspect</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;[,showError])  - Returns 1 if within inspect range of player, or nil if not able to  inspect the target </dd>
<dd> <a title="API CheckInteractDistance" href="http://www.wowwiki.com/API_CheckInteractDistance">CheckInteractDistance</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,distIndex) </dd>
<dd> <a class="new" title="API ClearInspectPlayer (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClearInspectPlayer&amp;action=edit&amp;redlink=1">ClearInspectPlayer</a>() - Reset inspect data once  finished with it (Called on inspect window hide) </dd>
<dd> <a class="new" title="API GetInspectArenaTeamData (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetInspectArenaTeamData&amp;action=edit&amp;redlink=1">GetInspectArenaTeamData</a>(index) - Retrieves all the  data associated with the inspected player&#8217;s arena team located at index. </dd>
<dd> <a title="API GetInspectHonorData" href="http://www.wowwiki.com/API_GetInspectHonorData">GetInspectHonorData</a>() - Return honor  info for the inspected unit (if available). </dd>
<dd> <a title="API HasInspectHonorData" href="http://www.wowwiki.com/API_HasInspectHonorData">HasInspectHonorData</a>() - Determine if  the inspected unit&#8217;s honor data is available. </dd>
<dd> UI <a title="API  InspectUnit" href="http://www.wowwiki.com/API_InspectUnit">InspectUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Calls <a class="new" title="API NotifyInspect (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_NotifyInspect&amp;action=edit&amp;redlink=1">NotifyInspect</a> and opens/updates the inspection  window. </dd>
<dd> <a class="new" title="API NotifyInspect (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_NotifyInspect&amp;action=edit&amp;redlink=1">NotifyInspect</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) -  Inspects the specified / selected &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;. </dd>
<dd> <a title="API RequestInspectHonorData" href="http://www.wowwiki.com/API_RequestInspectHonorData">RequestInspectHonorData</a>() -  Request honor data for inspected unit. </dd>
</dl>
<p><a id="Instance_Functions" rel="nofollow" name="Instance_Functions"></a></p>
<h3><span class="mw-headline"> Instance Functions </span></h3>
<dl>
<dd> <a title="API CanShowResetInstances" href="http://www.wowwiki.com/API_CanShowResetInstances">CanShowResetInstances</a>() -  Determine if player can reset instances at the moment. </dd>
<dd> <a title="API GetBattlefieldInstanceExpiration" href="http://www.wowwiki.com/API_GetBattlefieldInstanceExpiration">GetBattlefieldInstanceExpiration</a>()  - Get shutdown timer for the battlefield instance. </dd>
<dd> <a class="new" title="API GetBattlefieldInstanceInfo (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBattlefieldInstanceInfo&amp;action=edit&amp;redlink=1">GetBattlefieldInstanceInfo</a>(index) - Get the  instance ID for a battlefield. </dd>
<dd> <a class="new" title="API GetBattlefieldInstanceRunTime (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBattlefieldInstanceRunTime&amp;action=edit&amp;redlink=1">GetBattlefieldInstanceRunTime</a>() - In  milliseconds, the time since battleground started (seems to be queried  from server because it is not in sync with time()). </dd>
<dd> <a class="new" title="API GetInstanceBootTimeRemaining (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetInstanceBootTimeRemaining&amp;action=edit&amp;redlink=1">GetInstanceBootTimeRemaining</a>() - Gets the  time in seconds after which the player will be ejected from an instance. </dd>
<dd> <a title="API GetInstanceInfo" href="http://www.wowwiki.com/API_GetInstanceInfo">GetInstanceInfo</a>() - Gets informations  about the current Instance </dd>
<dd> <a title="API GetNumSavedInstances" href="http://www.wowwiki.com/API_GetNumSavedInstances">GetNumSavedInstances</a>() - Gets the  number of instances that the player is saved to. </dd>
<dd> <a title="API GetSavedInstanceInfo" href="http://www.wowwiki.com/API_GetSavedInstanceInfo">GetSavedInstanceInfo</a>(index) - Gets  information about an instance that the player is saved to. </dd>
<dd> <a title="API  IsInInstance" href="http://www.wowwiki.com/API_IsInInstance">IsInInstance</a>() - Returns 1 if the player is in an  instance, as well as the type of instance (pvp, raid, etc.). </dd>
<dd> <a title="API  ResetInstances" href="http://www.wowwiki.com/API_ResetInstances">ResetInstances</a>() - Reset instances. </dd>
<dd> <a class="mw-redirect" title="API GetDungeonDifficulty" href="http://www.wowwiki.com/API_GetDungeonDifficulty">GetDungeonDifficulty</a>()  - Returns the player&#8217;s current Dungeon Difficulty setting (1-3). </dd>
<dd> <a title="API SetDungeonDifficulty" href="http://www.wowwiki.com/API_SetDungeonDifficulty">SetDungeonDifficulty</a>(difficulty) -  Sets the player&#8217;s Dungeon Difficulty setting (for the 5-man instances). </dd>
<dd> <a title="API GetInstanceDifficulty" href="http://www.wowwiki.com/API_GetInstanceDifficulty">GetInstanceDifficulty</a>() - Returns  the current instance&#8217;s Dungeon Difficulty (1-4, or 1 if player is not in  an instance). </dd>
<dd> <a title="API GetInstanceLockTimeRemaining" href="http://www.wowwiki.com/API_GetInstanceLockTimeRemaining">GetInstanceLockTimeRemaining</a>()  - Returns information about the instance lock timer for the instance  the player is currently entering. </dd>
<dd> <a title="API GetInstanceLockTimeRemainingEncounter" href="http://www.wowwiki.com/API_GetInstanceLockTimeRemainingEncounter">GetInstanceLockTimeRemainingEncounter</a>(id)  - Returns information about bosses in the instance the player is about  to be saved to. </dd>
</dl>
<p><a id="Inventory_Functions" rel="nofollow" name="Inventory_Functions"></a></p>
<h3><span class="mw-headline"> Inventory Functions </span></h3>
<p>These functions manage your &#8220;inventory&#8221;, that is, <strong>equipped items</strong>.  See also <a href="http://www.wowwiki.com/World_of_Warcraft_API#Container.2FBag_Functions">Container/Bag Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Bank_Functions">Bank Functions</a>.</p>
<dl>
<dd> <a title="API AutoEquipCursorItem" href="http://www.wowwiki.com/API_AutoEquipCursorItem">AutoEquipCursorItem</a>() - Causes the  equipment on the cursor to be equipped. </dd>
<dd> <a title="API BankButtonIDToInvSlotID" href="http://www.wowwiki.com/API_BankButtonIDToInvSlotID">BankButtonIDToInvSlotID</a>(buttonID,  isBag) - Returns the ID number of a bank button or bag in terms of  inventory slot ID. </dd>
<dd> <a title="API CancelPendingEquip" href="http://www.wowwiki.com/API_CancelPendingEquip">CancelPendingEquip</a>(index) - This  function is used to cancel a pending equip. </dd>
<dd> <a title="API ConfirmBindOnUse" href="http://www.wowwiki.com/API_ConfirmBindOnUse">ConfirmBindOnUse</a>() </dd>
<dd> <a title="API ContainerIDToInventoryID" href="http://www.wowwiki.com/API_ContainerIDToInventoryID">ContainerIDToInventoryID</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) </dd>
<dd> <a title="API CursorCanGoInSlot" href="http://www.wowwiki.com/API_CursorCanGoInSlot">CursorCanGoInSlot</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Return true if the item currently held by the cursor can go into the  given inventory (equipment) slot </dd>
<dd> <a title="API EquipCursorItem" href="http://www.wowwiki.com/API_EquipCursorItem">EquipCursorItem</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>) </dd>
<dd> <a title="API EquipPendingItem" href="http://www.wowwiki.com/API_EquipPendingItem">EquipPendingItem</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Equips the currently pending Bind-on-Equip or Bind-on-Pickup item  from the specified inventory slot. (Internal — do not use.) </dd>
<dd> <a title="API GetInventoryAlertStatus" href="http://www.wowwiki.com/API_GetInventoryAlertStatus">GetInventoryAlertStatus</a>(index) -  Returns one of several codes describing the &#8220;status&#8221; of an equipped  item. </dd>
<dd> <a title="API GetInventoryItemBroken" href="http://www.wowwiki.com/API_GetInventoryItemBroken">GetInventoryItemBroken</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Determine if an inventory item is broken (no durability). </dd>
<dd> <a title="API GetInventoryItemCooldown" href="http://www.wowwiki.com/API_GetInventoryItemCooldown">GetInventoryItemCooldown</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Get cooldown information for an inventory item. </dd>
<dd> <a title="API GetInventoryItemCount" href="http://www.wowwiki.com/API_GetInventoryItemCount">GetInventoryItemCount</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Determine the quantity of an item in an inventory slot. </dd>
<dd> <a title="API  GetInventoryItemDurability" href="http://www.wowwiki.com/API_GetInventoryItemDurability">GetInventoryItemDurability</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Returns the maximum and remaining durability points for an inventory  item. </dd>
<dd> <a title="API GetInventoryItemGems" href="http://www.wowwiki.com/API_GetInventoryItemGems">GetInventoryItemGems</a>(invSlot) -  Returns item ids of the gems socketed in the item in the specified  inventory slot. </dd>
<dd> <a title="API GetInventoryItemID" href="http://www.wowwiki.com/API_GetInventoryItemID">GetInventoryItemID</a>(invSlot) - Returns  the item id of the item in the specified inventory slot. </dd>
<dd> <a title="API GetInventoryItemLink" href="http://www.wowwiki.com/API_GetInventoryItemLink">GetInventoryItemLink</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">slotId</a>)  - Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for an inventory (equipped) item. </dd>
<dd> <a title="API GetInventoryItemQuality" href="http://www.wowwiki.com/API_GetInventoryItemQuality">GetInventoryItemQuality</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Return the quality of an inventory item. </dd>
<dd> <a title="API GetInventoryItemTexture" href="http://www.wowwiki.com/API_GetInventoryItemTexture">GetInventoryItemTexture</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Return the texture for an inventory item. </dd>
<dd> <a title="API GetInventorySlotInfo" href="http://www.wowwiki.com/API_GetInventorySlotInfo">GetInventorySlotInfo</a>(<a title="InventorySlotName" href="http://www.wowwiki.com/InventorySlotName">invSlotName</a>) - Get the info for a named  inventory slot (slot ID and texture) </dd>
<dd> <a title="API GetWeaponEnchantInfo" href="http://www.wowwiki.com/API_GetWeaponEnchantInfo">GetWeaponEnchantInfo</a>() - Return  information about main and offhand weapon enchantments. </dd>
<dd> <a title="API HasWandEquipped" href="http://www.wowwiki.com/API_HasWandEquipped">HasWandEquipped</a>() - Returns 1 if a wand  is equipped, false otherwise. </dd>
<dd> <a title="API IsInventoryItemLocked" href="http://www.wowwiki.com/API_IsInventoryItemLocked">IsInventoryItemLocked</a>(id) -  Returns whether an inventory item is locked, usually as it awaits  pending action. </dd>
<dd> <a title="API  KeyRingButtonIDToInvSlotID" href="http://www.wowwiki.com/API_KeyRingButtonIDToInvSlotID">KeyRingButtonIDToInvSlotID</a>(buttonID) -  Map a keyring button to an inventory slot button for use in inventory  functions. </dd>
<dd> <a title="API PickupBagFromSlot" href="http://www.wowwiki.com/API_PickupBagFromSlot">PickupBagFromSlot</a>(slot) - Picks up the  bag from the specified slot, placing it in the cursor. If an item is  already picked up, this places the item into the specified slot,  swapping the items if needed. </dd>
<dd> <a title="API PickupInventoryItem" href="http://www.wowwiki.com/API_PickupInventoryItem">PickupInventoryItem</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - &#8220;Picks up&#8221; an item from the player&#8217;s worn inventory. </dd>
<dd> <a class="new" title="API UpdateInventoryAlertStatus (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UpdateInventoryAlertStatus&amp;action=edit&amp;redlink=1">UpdateInventoryAlertStatus</a>() </dd>
<dd> PROTECTED <a title="API  UseInventoryItem" href="http://www.wowwiki.com/API_UseInventoryItem">UseInventoryItem</a>(<a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">invSlot</a>)  - Use an item in a specific inventory slot. </dd>
</dl>
<p><a id="Item_Functions" rel="nofollow" name="Item_Functions"></a></p>
<h3><span class="mw-headline"> Item Functions </span></h3>
<p>These functions are those which operate on item links or item  information directly. See also <a href="http://www.wowwiki.com/World_of_Warcraft_API#Container.2FBag_Functions">Container/Bag Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Inventory_Functions">Inventory Functions</a>.</p>
<dl>
<dd> <a title="API  EquipItemByName" href="http://www.wowwiki.com/API_EquipItemByName">EquipItemByName</a>(itemId or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;[, <a title="InventorySlotId" href="http://www.wowwiki.com/InventorySlotId">slot</a>])  - Equips an item, optionally into a specified slot. </dd>
<dd> <a title="API GetAuctionItemLink" href="http://www.wowwiki.com/API_GetAuctionItemLink">GetAuctionItemLink</a>(&#8221;type&#8221;, index) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the specified auction item. </dd>
<dd> <a title="API GetContainerItemLink" href="http://www.wowwiki.com/API_GetContainerItemLink">GetContainerItemLink</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>, slot) -  Returns the <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> of the item located in bag#, slot#. </dd>
<dd> <a title="API GetItemCooldown" href="http://www.wowwiki.com/API_GetItemCooldown">GetItemCooldown</a>(itemId or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;) -  Returns startTime, duration, enable. </dd>
<dd> <a title="API  GetItemCount" href="http://www.wowwiki.com/API_GetItemCount">GetItemCount</a>(itemId or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;[,  includeBank][, includeCharges]) - Returns number of such items in  inventory[, or charges instead if it has charges] </dd>
<dd> <a title="API  GetItemFamily" href="http://www.wowwiki.com/API_GetItemFamily">GetItemFamily</a>(itemId or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;) -  Returns the bag type that an item can go into, or for bags the type of  items that it can contain. (New in <a class="mw-redirect" title="Patch 2.4" href="http://www.wowwiki.com/Patch_2.4">Patch 2.4</a>) </dd>
<dd> <a title="API  GetItemIcon" href="http://www.wowwiki.com/API_GetItemIcon">GetItemIcon</a>(itemId or &#8220;<a title="ItemString" href="http://www.wowwiki.com/ItemString">itemString</a>&#8221;  or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;) - Returns the icon for the item. Works  for any valid item even if it&#8217;s not in the cache. (New in <a class="mw-redirect" title="Patch 2.4" href="http://www.wowwiki.com/Patch_2.4">Patch 2.4</a>) </dd>
<dd> <a title="API  GetItemInfo" href="http://www.wowwiki.com/API_GetItemInfo">GetItemInfo</a>(itemId or &#8220;<a title="ItemString" href="http://www.wowwiki.com/ItemString">itemString</a>&#8221;  or &#8220;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;) - Returns information about an item. </dd>
<dd> <a title="API GetItemQualityColor" href="http://www.wowwiki.com/API_GetItemQualityColor">GetItemQualityColor</a>(quality) -  Returns the RGB color codes for a quality. </dd>
<dd> <a class="new" title="API GetItemSpell (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetItemSpell&amp;action=edit&amp;redlink=1">GetItemSpell</a>(item) - Returns name, rank. </dd>
<dd> <a title="API GetMerchantItemLink" href="http://www.wowwiki.com/API_GetMerchantItemLink">GetMerchantItemLink</a>(index) - Returns  an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the given purchasable item </dd>
<dd> <a title="API GetQuestItemLink" href="http://www.wowwiki.com/API_GetQuestItemLink">GetQuestItemLink</a>(&#8221;type&#8221;, index) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for a quest reward item. </dd>
<dd> <a title="API GetQuestLogItemLink" href="http://www.wowwiki.com/API_GetQuestLogItemLink">GetQuestLogItemLink</a>(&#8221;type&#8221;, index) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for a quest reward item. </dd>
<dd> <a title="API GetTradePlayerItemLink" href="http://www.wowwiki.com/API_GetTradePlayerItemLink">GetTradePlayerItemLink</a>(id) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the given item in your side of the trade window (if open) </dd>
<dd> <a title="API GetTradeSkillItemLink" href="http://www.wowwiki.com/API_GetTradeSkillItemLink">GetTradeSkillItemLink</a>(index) -  Returns the <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for a trade skill item. </dd>
<dd> <a title="API GetTradeSkillReagentItemLink" href="http://www.wowwiki.com/API_GetTradeSkillReagentItemLink">GetTradeSkillReagentItemLink</a>(index,  reagentId) - Returns the <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for one of the reagents needed to craft  the given item </dd>
<dd> <a title="API GetTradeTargetItemLink" href="http://www.wowwiki.com/API_GetTradeTargetItemLink">GetTradeTargetItemLink</a>(id) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the given item in the other player&#8217;s side of the trade window (if  open) </dd>
<dd> <a class="new" title="API IsUsableItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsUsableItem&amp;action=edit&amp;redlink=1">IsUsableItem</a>(item) - Returns usable, noMana. </dd>
<dd> <a class="new" title="API IsConsumableItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsConsumableItem&amp;action=edit&amp;redlink=1">IsConsumableItem</a>(item) - </dd>
<dd> <a class="new" title="API IsCurrentItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsCurrentItem&amp;action=edit&amp;redlink=1">IsCurrentItem</a>(item) - </dd>
<dd> <a title="API  IsEquippedItem" href="http://www.wowwiki.com/API_IsEquippedItem">IsEquippedItem</a>(item) - </dd>
<dd> <a title="API IsEquippableItem" href="http://www.wowwiki.com/API_IsEquippableItem">IsEquippableItem</a>(itemId or &#8220;itemName&#8221;  or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;)  - Returns 1 or nil. </dd>
<dd> <a title="API IsEquippedItemType" href="http://www.wowwiki.com/API_IsEquippedItemType">IsEquippedItemType</a>(&#8221;type&#8221;) - Where  &#8220;type&#8221; is any valid inventory type, item class, or item subclass. </dd>
<dd> <a title="API  IsItemInRange" href="http://www.wowwiki.com/API_IsItemInRange">IsItemInRange</a>(&#8221;itemName&#8221; or &#8220;<a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a>&#8220;, &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Nil  for invalid target, 0 for out of range, 1 for in range. </dd>
<dd> <a class="new" title="API ItemHasRange (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ItemHasRange&amp;action=edit&amp;redlink=1">ItemHasRange</a>(item) - </dd>
<dd> <a title="API OffhandHasWeapon" href="http://www.wowwiki.com/API_OffhandHasWeapon">OffhandHasWeapon</a>() - Determine if your  offhand carries a weapon. </dd>
<dd> <a title="API SplitContainerItem" href="http://www.wowwiki.com/API_SplitContainerItem">SplitContainerItem</a>(bagID,slot,amount)  - Picks up part of a stack. </dd>
<dd> UI <a title="API  SetItemRef" href="http://www.wowwiki.com/API_SetItemRef">SetItemRef</a>(link, text, button) - Handles item link  tooltips in chat. </dd>
</dl>
<p><a id="Item_Socketing_Functions" rel="nofollow" name="Item_Socketing_Functions"></a></p>
<h3><span class="mw-headline"> Item  Socketing Functions </span></h3>
<p>The following were introduced along with socketed items and gems in <a class="mw-redirect" title="Patch 2.0" href="http://www.wowwiki.com/Patch_2.0">Patch 2.0</a>. id refers to a 1-based index of the  sockets in the item being considered for socketing.</p>
<dl>
<dd> <a title="API  AcceptSockets" href="http://www.wowwiki.com/API_AcceptSockets">AcceptSockets</a>() - Sockets tentative gems into the  sockets, replacing existing gems if necessary. </dd>
<dd> <a class="new" title="API ClickSocketButton (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClickSocketButton&amp;action=edit&amp;redlink=1">ClickSocketButton</a>(id) - If the cursor is currently  holding a gem, tentatively insert it into the socket. </dd>
<dd> <a title="API CloseSocketInfo" href="http://www.wowwiki.com/API_CloseSocketInfo">CloseSocketInfo</a>() - Stops considering  the item for socketing, without applying changes. </dd>
<dd> <a title="API GetSocketItemInfo" href="http://www.wowwiki.com/API_GetSocketItemInfo">GetSocketItemInfo</a>() - Returns  information about the item currently being socketed. </dd>
<dd> <a class="new" title="API GetSocketItemRefundable (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSocketItemRefundable&amp;action=edit&amp;redlink=1">GetSocketItemRefundable</a>() - Returns whether the item  currently being socketed is refundable. </dd>
<dd> <a class="new" title="API GetSocketItemBoundTradeable (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSocketItemBoundTradeable&amp;action=edit&amp;redlink=1">GetSocketItemBoundTradeable</a>() - Returns  whether the item currently being socketed is temporarily tradable (BoP  boss loot). </dd>
<dd> <a title="API  GetNumSockets" href="http://www.wowwiki.com/API_GetNumSockets">GetNumSockets</a>() - Returns the number of sockets in  the item currently being socketed. </dd>
<dd> <a title="API  GetSocketTypes" href="http://www.wowwiki.com/API_GetSocketTypes">GetSocketTypes</a>(id) - Returns the type (color) of a  socket in the item. </dd>
<dd> <a class="new" title="API GetExistingSocketInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetExistingSocketInfo&amp;action=edit&amp;redlink=1">GetExistingSocketInfo</a>(id) - Returns information about  the existing gem in the socket. </dd>
<dd> <a class="new" title="API GetExistingSocketLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetExistingSocketLink&amp;action=edit&amp;redlink=1">GetExistingSocketLink</a>(id) - Returns an item link for  the existing gem in the socket. </dd>
<dd> <a class="new" title="API GetNewSocketInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNewSocketInfo&amp;action=edit&amp;redlink=1">GetNewSocketInfo</a>(id) - Returns information about the  new (tentative) gem in the socket. </dd>
<dd> <a class="new" title="API GetNewSocketLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNewSocketLink&amp;action=edit&amp;redlink=1">GetNewSocketLink</a>(id) - Returns an item link for the  new (tentative) gem in the socket. </dd>
<dd> <a class="new" title="API SocketInventoryItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SocketInventoryItem&amp;action=edit&amp;redlink=1">SocketInventoryItem</a>(slot) - Considers the item in the  inventory slot for socketing. </dd>
<dd> <a class="new" title="API SocketContainerItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SocketContainerItem&amp;action=edit&amp;redlink=1">SocketContainerItem</a>(bag, slot) - Consider an item in a  container slot for socketing. </dd>
</dl>
<p><a id="Item_Text_Functions" rel="nofollow" name="Item_Text_Functions"></a></p>
<h3><span class="mw-headline"> Item Text Functions </span></h3>
<p>These functions relate to item text (books, etc)</p>
<dl>
<dd> <a title="API  CloseItemText" href="http://www.wowwiki.com/API_CloseItemText">CloseItemText</a>() - Close an open item text (book,  plaque, etc). </dd>
<dd> <a title="API ItemTextGetCreator" href="http://www.wowwiki.com/API_ItemTextGetCreator">ItemTextGetCreator</a>() - Get the  creator of the current text (if player-created). </dd>
<dd> <a title="API ItemTextGetItem" href="http://www.wowwiki.com/API_ItemTextGetItem">ItemTextGetItem</a>() - Get the name of the  text. </dd>
<dd> <a title="API ItemTextGetMaterial" href="http://www.wowwiki.com/API_ItemTextGetMaterial">ItemTextGetMaterial</a>() - Get the  material on which the text is printed. </dd>
<dd> <a title="API ItemTextGetPage" href="http://www.wowwiki.com/API_ItemTextGetPage">ItemTextGetPage</a>() - Get the page number  of the currently viewed page. </dd>
<dd> <a title="API ItemTextGetText" href="http://www.wowwiki.com/API_ItemTextGetText">ItemTextGetText</a>() - Get the page  contents of the currently viewed page. </dd>
<dd> <a title="API ItemTextHasNextPage" href="http://www.wowwiki.com/API_ItemTextHasNextPage">ItemTextHasNextPage</a>() - Determine if  there is another page after the current one. </dd>
<dd> <a title="API ItemTextNextPage" href="http://www.wowwiki.com/API_ItemTextNextPage">ItemTextNextPage</a>() - Request the next  page of the text. </dd>
<dd> <a title="API ItemTextPrevPage" href="http://www.wowwiki.com/API_ItemTextPrevPage">ItemTextPrevPage</a>() - Request the  previous page of the text. </dd>
</dl>
<p><a id="Knowledge_Base_Functions" rel="nofollow" name="Knowledge_Base_Functions"></a></p>
<h3><span class="mw-headline"> Knowledge Base Functions </span></h3>
<dl>
<dd><a title="API KBArticle BeginLoading" href="http://www.wowwiki.com/API_KBArticle_BeginLoading">KBArticle_BeginLoading</a>(articleId,  searchType) - Starts the article loading process. </dd>
<dd><a title="API KBArticle GetData" href="http://www.wowwiki.com/API_KBArticle_GetData">KBArticle_GetData</a>() - Returns  information about the current article. </dd>
<dd><a title="API KBArticle IsLoaded" href="http://www.wowwiki.com/API_KBArticle_IsLoaded">KBArticle_IsLoaded</a>() - Returns true  if an article is loaded. </dd>
<dd><a class="new" title="API KBQuery BeginLoading (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_KBQuery_BeginLoading&amp;action=edit&amp;redlink=1">KBQuery_BeginLoading</a>(searchText, categoryIndex,  subcategoryIndex, articlesPerPage, curPage) - Starts a query for  articles. </dd>
<dd><a class="new" title="API KBQuery GetArticleHeaderCount (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_KBQuery_GetArticleHeaderCount&amp;action=edit&amp;redlink=1">KBQuery_GetArticleHeaderCount</a>() - Returns the  number of article headers in the current query. </dd>
<dd><a class="new" title="API KBQuery GetArticleHeaderData (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_KBQuery_GetArticleHeaderData&amp;action=edit&amp;redlink=1">KBQuery_GetArticleHeaderData</a>(index) - Returns  information about an article header of the current query. </dd>
<dd><a class="new" title="API KBQuery GetTotalArticleCount (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_KBQuery_GetTotalArticleCount&amp;action=edit&amp;redlink=1">KBQuery_GetTotalArticleCount</a>() - Returns the  total number of articles that matches the current query. </dd>
<dd><a class="new" title="API KBQuery IsLoaded (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_KBQuery_IsLoaded&amp;action=edit&amp;redlink=1">KBQuery_IsLoaded</a>() - Returns true if a query loaded  successfuly. </dd>
<dd><a title="API KBSetup BeginLoading" href="http://www.wowwiki.com/API_KBSetup_BeginLoading">KBSetup_BeginLoading</a>(articlesPerPage,  curPage) - Starts the loading process for the KB start page. </dd>
<dd><a title="API KBSetup GetArticleHeaderCount" href="http://www.wowwiki.com/API_KBSetup_GetArticleHeaderCount">KBSetup_GetArticleHeaderCount</a>()  - Returns the number of articles for the current page. </dd>
<dd><a title="API KBSetup GetArticleHeaderData" href="http://www.wowwiki.com/API_KBSetup_GetArticleHeaderData">KBSetup_GetArticleHeaderData</a>(index)  - Returns information for an article header. </dd>
<dd><a title="API KBSetup GetCategoryCount" href="http://www.wowwiki.com/API_KBSetup_GetCategoryCount">KBSetup_GetCategoryCount</a>() -  Returns the number of categories in the knowledge base. </dd>
<dd><a title="API KBSetup GetCategoryData" href="http://www.wowwiki.com/API_KBSetup_GetCategoryData">KBSetup_GetCategoryData</a>(index) -  Returns information about a category. </dd>
<dd><a title="API KBSetup GetLanguageCount" href="http://www.wowwiki.com/API_KBSetup_GetLanguageCount">KBSetup_GetLanguageCount</a>() -  Returns the number of languages in the knowledge base. </dd>
<dd><a title="API KBSetup GetLanguageData" href="http://www.wowwiki.com/API_KBSetup_GetLanguageData">KBSetup_GetLanguageData</a>(index) -  Returns information about a language. </dd>
<dd><a title="API  KBSetup GetSubCategoryCount" href="http://www.wowwiki.com/API_KBSetup_GetSubCategoryCount">KBSetup_GetSubCategoryCount</a>(category) -  Returns the number of subcategories for a category. </dd>
<dd><a title="API KBSetup GetSubCategoryData" href="http://www.wowwiki.com/API_KBSetup_GetSubCategoryData">KBSetup_GetSubCategoryData</a>(category,  index) - Returns information about a subcategory. </dd>
<dd><a title="API KBSetup GetTotalArticleCount" href="http://www.wowwiki.com/API_KBSetup_GetTotalArticleCount">KBSetup_GetTotalArticleCount</a>()  - Returns the total number of articles in the knowlege base. </dd>
<dd><a title="API KBSetup IsLoaded" href="http://www.wowwiki.com/API_KBSetup_IsLoaded">KBSetup_IsLoaded</a>() - Returns true if  the knowledge base is loaded successfuly. </dd>
<dd><a title="API KBSystem GetMOTD" href="http://www.wowwiki.com/API_KBSystem_GetMOTD">KBSystem_GetMOTD</a>() - Returns the server  message of the day. </dd>
<dd><a title="API KBSystem GetServerNotice" href="http://www.wowwiki.com/API_KBSystem_GetServerNotice">KBSystem_GetServerNotice</a>() -  Returns the server notice. </dd>
<dd><a title="API KBSystem GetServerStatus" href="http://www.wowwiki.com/API_KBSystem_GetServerStatus">KBSystem_GetServerStatus</a>() -  Returns the server status text. </dd>
</dl>
<p><a id="Location_Functions" rel="nofollow" name="Location_Functions"></a></p>
<h3><span class="mw-headline"> Location Functions </span></h3>
<p>These functions are related to the current location of the player and  how it is displayed.</p>
<dl>
<dd> <a title="API GetMinimapZoneText" href="http://www.wowwiki.com/API_GetMinimapZoneText">GetMinimapZoneText</a>() - Returns the  zone text, that is displayed over the minimap. </dd>
<dd> <a title="API GetRealZoneText" href="http://www.wowwiki.com/API_GetRealZoneText">GetRealZoneText</a>() - Returns either  instance name or zone name </dd>
<dd> <a title="API  GetSubZoneText" href="http://www.wowwiki.com/API_GetSubZoneText">GetSubZoneText</a>() - Returns the subzone text (e.g.  &#8220;The Canals&#8221;). </dd>
<dd> <a title="API  GetZonePVPInfo" href="http://www.wowwiki.com/API_GetZonePVPInfo">GetZonePVPInfo</a>() - Returns PVP info for the current  zone. </dd>
<dd> <a title="API  GetZoneText" href="http://www.wowwiki.com/API_GetZoneText">GetZoneText</a>() - Returns the zone text (e.g. &#8220;Stormwind  City&#8221;). </dd>
</dl>
<p><a id="Looking_For_Group_Functions" rel="nofollow" name="Looking_For_Group_Functions"></a></p>
<h3><span class="mw-headline"> Looking For Group Functions</span></h3>
<p>Functions for use in the Looking For Group tool. See also: <a href="http://www.wowwiki.com/World_of_Warcraft_API#Dungeon_Finder_Functions">Dungeon Finder Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Raid_Browser_Functions">Raid Browser Functions</a></p>
<dl>
<dd> <a title="API GetAvailableRoles" href="http://www.wowwiki.com/API_GetAvailableRoles">GetAvailableRoles</a>() - Returns which  LFG roles your character may fulfill. </dd>
<dd> <a title="API  GetLFGTypes" href="http://www.wowwiki.com/API_GetLFGTypes">GetLFGTypes</a>() - Returns a list of available LFG  categories (&#8221;None&#8221;, &#8220;Dungeon&#8221;, &#8230;). </dd>
<dd> <a title="API  SetLFGComment" href="http://www.wowwiki.com/API_SetLFGComment">SetLFGComment</a>(&#8221;comment&#8221;) </dd>
<dd> <a title="API GetLFGBootProposal" href="http://www.wowwiki.com/API_GetLFGBootProposal">GetLFGBootProposal</a>() - Returns  information about an LFG Kick vote in progress. </dd>
<dd> <a title="API  GetLFGMode" href="http://www.wowwiki.com/API_GetLFGMode">GetLFGMode</a>() - returns mode, subMode (sometimes empty  result) </dd>
<dd> <a title="API  GetLFGRoles" href="http://www.wowwiki.com/API_GetLFGRoles">GetLFGRoles</a>() - returns isLeader, isTank, isHealer,  isDPS - Returns the roles you signed up as, not the role you were  assigned. </dd>
<dd> <a class="new" title="API GetLFGRoleUpdate (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFGRoleUpdate&amp;action=edit&amp;redlink=1">GetLFGRoleUpdate</a>() - returns inProgress, slots,  members </dd>
<dd> <a class="new" title="API GetLFGRoleUpdateSlot (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFGRoleUpdateSlot&amp;action=edit&amp;redlink=1">GetLFGRoleUpdateSlot</a>(slot) - returns dungeonType,  dungeonID for a particular role slot (integer) </dd>
<dd> <a title="API GetLFGQueueStats" href="http://www.wowwiki.com/API_GetLFGQueueStats">GetLFGQueueStats</a>() - returns current  state and wait times for being in queue </dd>
<dd> <a class="new" title="API SetLFGRoles (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetLFGRoles&amp;action=edit&amp;redlink=1">SetLFGRoles</a>(isLeader, isTank, isHealer, isDPS) -  changes the selected roles </dd>
<dd> <a title="API UnitGroupRolesAssigned" href="http://www.wowwiki.com/API_UnitGroupRolesAssigned">UnitGroupRolesAssigned</a>(UnitID) -  Return&#8217;s the targeted unit&#8217;s assigned role. </dd>
<dd> <a class="new" title="API GetLFGDungeonRewards (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLFGDungeonRewards&amp;action=edit&amp;redlink=1">GetLFGDungeonRewards</a>(dungeontype) - dungeontype = 261  (normal) or 262 (heroic), returns doneToday, moneyBase, moneyVar,  experienceBase, experienceVar, numRewards </dd>
<dd> <a title="API GetLFGDeserterExpiration" href="http://www.wowwiki.com/API_GetLFGDeserterExpiration">GetLFGDeserterExpiration</a>() -  Returns the time at which you may once again use the dungeon finder  after prematurely leaving a group. (3.3.3) </dd>
<dd> <a title="API GetLFGRandomCooldownExpiration" href="http://www.wowwiki.com/API_GetLFGRandomCooldownExpiration">GetLFGRandomCooldownExpiration</a>()  - Returns the time at which you may once again queue for a random  dungeon. (3.3.3) </dd>
</dl>
<p><a id="Loot_Functions" rel="nofollow" name="Loot_Functions"></a></p>
<h3><span class="mw-headline"> Loot Functions </span></h3>
<p>Automatic looting behavior is controlled by <a title="CVar  autoLootDefault" href="http://www.wowwiki.com/CVar_autoLootDefault">autoLootDefalt</a> <a class="mw-redirect" title="CVar" href="http://www.wowwiki.com/CVar">CVar</a>.</p>
<dl>
<dd> <a title="API  CloseLoot" href="http://www.wowwiki.com/API_CloseLoot">CloseLoot</a>([uiFailedFlag]) </dd>
<dd> PROTECTED <a title="API  ConfirmBindOnUse" href="http://www.wowwiki.com/API_ConfirmBindOnUse">ConfirmBindOnUse</a>() </dd>
<dd> <a title="API ConfirmLootRoll" href="http://www.wowwiki.com/API_ConfirmLootRoll">ConfirmLootRoll</a>(rollId[, roll]) -  Confirm a loot roll (NEW IN 1300) </dd>
<dd> <a title="API ConfirmLootSlot" href="http://www.wowwiki.com/API_ConfirmLootSlot">ConfirmLootSlot</a>(slot) - Confirm looting  of a BoP item. </dd>
<dd> <a title="API  GetLootMethod" href="http://www.wowwiki.com/API_GetLootMethod">GetLootMethod</a>() - Return the currently active <a title="LootMethod" href="http://www.wowwiki.com/LootMethod">lootMethod</a> </dd>
<dd> <a title="API GetLootRollItemInfo" href="http://www.wowwiki.com/API_GetLootRollItemInfo">GetLootRollItemInfo</a>(rollId) </dd>
<dd> <a class="new" title="API GetLootRollItemLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLootRollItemLink&amp;action=edit&amp;redlink=1">GetLootRollItemLink</a>(rollId) </dd>
<dd> <a class="new" title="API GetLootRollTimeLeft (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetLootRollTimeLeft&amp;action=edit&amp;redlink=1">GetLootRollTimeLeft</a>(rollid) </dd>
<dd> <a title="API GetLootSlotInfo" href="http://www.wowwiki.com/API_GetLootSlotInfo">GetLootSlotInfo</a>(slot) - Returns icon  path, item name, and item quantity for the item in the given loot window  slot </dd>
<dd> <a title="API GetLootSlotLink" href="http://www.wowwiki.com/API_GetLootSlotLink">GetLootSlotLink</a>(slot) - Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for  the item in the given loot window slot </dd>
<dd> <a title="API GetLootThreshold" href="http://www.wowwiki.com/API_GetLootThreshold">GetLootThreshold</a>() - Return the current  loot threshold (for group/master loot) </dd>
<dd> <a title="API GetMasterLootCandidate" href="http://www.wowwiki.com/API_GetMasterLootCandidate">GetMasterLootCandidate</a>(index) -  Return the name of a player who is eligible to receive loot in master  mode </dd>
<dd> <a title="API GetNumLootItems" href="http://www.wowwiki.com/API_GetNumLootItems">GetNumLootItems</a>() - Returns amount of  objects to loot (number) </dd>
<dd> <a title="API GetOptOutOfLoot" href="http://www.wowwiki.com/API_GetOptOutOfLoot">GetOptOutOfLoot</a>() - Return whether the  character is currently automatically passing on all loot. </dd>
<dd> <a title="API  GiveMasterLoot" href="http://www.wowwiki.com/API_GiveMasterLoot">GiveMasterLoot</a>(slot,index) </dd>
<dd> <a title="API  IsFishingLoot" href="http://www.wowwiki.com/API_IsFishingLoot">IsFishingLoot</a>() </dd>
<dd> <a title="API  LootSlot" href="http://www.wowwiki.com/API_LootSlot">LootSlot</a>(slot) - Used to loot the specified slot. </dd>
<dd> <a class="new" title="API LootSlotIsCoin (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_LootSlotIsCoin&amp;action=edit&amp;redlink=1">LootSlotIsCoin</a>(slot) </dd>
<dd> <a title="API  LootSlotIsItem" href="http://www.wowwiki.com/API_LootSlotIsItem">LootSlotIsItem</a>(slot) </dd>
<dd> <a title="API  RollOnLoot" href="http://www.wowwiki.com/API_RollOnLoot">RollOnLoot</a>(rollId[, roll]) - Roll or pass on a loot  event started by the game engine. </dd>
<dd> <a title="API  SetLootMethod" href="http://www.wowwiki.com/API_SetLootMethod">SetLootMethod</a>(&#8221;<a title="LootMethod" href="http://www.wowwiki.com/LootMethod">lootMethod</a>&#8220;[,  "masterPlayer" or threshold]) - Set the current loot method. </dd>
<dd> <a class="new" title="API SetLootPortrait (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetLootPortrait&amp;action=edit&amp;redlink=1">SetLootPortrait</a>() </dd>
<dd> <a title="API SetLootThreshold" href="http://www.wowwiki.com/API_SetLootThreshold">SetLootThreshold</a>(<a class="new" title="ItemQuality (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=ItemQuality&amp;action=edit&amp;redlink=1">itemQuality</a>)  - Set the threshold for group/master loot. </dd>
<dd> <a title="API SetOptOutOfLoot" href="http://www.wowwiki.com/API_SetOptOutOfLoot">SetOptOutOfLoot</a>(optOut) - Enables or  disables automatic passing on all loot. </dd>
</dl>
<p><a id="Macro_Functions" rel="nofollow" name="Macro_Functions"></a></p>
<h3><span class="mw-headline"> Macro Functions </span></h3>
<dl>
<dd> NOCOMBAT (2.0) <a title="API CreateMacro" href="http://www.wowwiki.com/API_CreateMacro">CreateMacro</a>(&#8221;name&#8221;, icon, &#8220;body&#8221;,  perCharacter, isLocal) - Create a new macro. </dd>
<dd> <a class="new" title="API CursorHasMacro (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CursorHasMacro&amp;action=edit&amp;redlink=1">CursorHasMacro</a>() - Returns 1 if the cursor is  currently dragging a macro. (New: 2.0.3) </dd>
<dd> <a class="new" title="API DeleteMacro (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DeleteMacro&amp;action=edit&amp;redlink=1">DeleteMacro</a>(id or &#8220;name&#8221;) - Deletes a macro. </dd>
<dd> NOCOMBAT (2.0) <a title="API EditMacro" href="http://www.wowwiki.com/API_EditMacro">EditMacro</a>(index, &#8220;name&#8221;, iconIndex, &#8220;body&#8221;,  isLocal, perCharacter) - Saves a macro. </dd>
<dd> <a title="API  GetMacroBody" href="http://www.wowwiki.com/API_GetMacroBody">GetMacroBody</a>(id or &#8220;name&#8221;) - Returns the body (macro  text) of a macro. </dd>
<dd> <a title="API GetMacroIconInfo" href="http://www.wowwiki.com/API_GetMacroIconInfo">GetMacroIconInfo</a>(index) - Returns  texture of the icons provided by Blizzard. </dd>
<dd> <a class="new" title="API GetMacroItemIconInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetMacroItemIconInfo&amp;action=edit&amp;redlink=1">GetMacroItemIconInfo</a>(index) - Returns texture of the  item icons provided by Blizzard </dd>
<dd> <a title="API GetMacroIndexByName" href="http://www.wowwiki.com/API_GetMacroIndexByName">GetMacroIndexByName</a>(&#8221;name&#8221;) -  Returns macro index. </dd>
<dd> <a title="API  GetMacroInfo" href="http://www.wowwiki.com/API_GetMacroInfo">GetMacroInfo</a>(id or &#8220;name&#8221;) - Returns &#8220;name&#8221;,  &#8220;iconTexture&#8221;, &#8220;body&#8221;, isLocal. </dd>
<dd> <a title="API GetNumMacroIcons" href="http://www.wowwiki.com/API_GetNumMacroIcons">GetNumMacroIcons</a>() - Returns the number  of usable icons provided by Blizzard. </dd>
<dd> <a title="API GetNumMacroItemIcons" href="http://www.wowwiki.com/API_GetNumMacroItemIcons">GetNumMacroItemIcons</a>() - Returns  the number of usable item icons provided by Blizzard. </dd>
<dd> <a title="API  GetNumMacros" href="http://www.wowwiki.com/API_GetNumMacros">GetNumMacros</a>() - Returns the number of macros the user  has. </dd>
<dd> <a title="API  PickupMacro" href="http://www.wowwiki.com/API_PickupMacro">PickupMacro</a>(id or &#8220;name&#8221;) - Pickup a macro button icon. </dd>
<dd> PROTECTED <a title="API RunMacro" href="http://www.wowwiki.com/API_RunMacro">RunMacro</a>(id or &#8220;name&#8221;) - Runs a macro. </dd>
<dd> PROTECTED <a title="API RunMacroText" href="http://www.wowwiki.com/API_RunMacroText">RunMacroText</a>(&#8221;macro&#8221;) - Interpret the given  string as a macro and run it. </dd>
<dd> <a title="API SecureCmdOptionParse" href="http://www.wowwiki.com/API_SecureCmdOptionParse">SecureCmdOptionParse</a>(&#8221;command&#8221;) -  Used for evaluating conditionals in macros, returning the appropriate  choice. </dd>
<dd> PROTECTED <a class="new" title="API StopMacro (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_StopMacro&amp;action=edit&amp;redlink=1">StopMacro</a>()  - Stops the currently executing macro. </dd>
</dl>
<p><a id="Mail_Functions" rel="nofollow" name="Mail_Functions"></a></p>
<h3><span class="mw-headline"> Mail Functions </span></h3>
<p><a title="Events/Mail" href="http://www.wowwiki.com/Events/Mail">Events  associated with Mail.</a></p>
<dl>
<dd> <a class="new" title="API AutoLootMailItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_AutoLootMailItem&amp;action=edit&amp;redlink=1">AutoLootMailItem</a>(index) - Loot all items from mail  message. </dd>
<dd> <a title="API  CheckInbox" href="http://www.wowwiki.com/API_CheckInbox">CheckInbox</a>() - Populate client&#8217;s inbox with mail from  server. </dd>
<dd> <a title="API  ClearSendMail" href="http://www.wowwiki.com/API_ClearSendMail">ClearSendMail</a>() - This clears the text in the send  mail tab and places the COD item in the inventory. </dd>
<dd> <a title="API ClickSendMailItemButton" href="http://www.wowwiki.com/API_ClickSendMailItemButton">ClickSendMailItemButton</a>([itemIndex,  [clearItem]]) - Places or picks up an item from the send mail frame. </dd>
<dd> <a title="API  CloseMail" href="http://www.wowwiki.com/API_CloseMail">CloseMail</a>() - Closes the mail window. </dd>
<dd> <a title="API DeleteInboxItem" href="http://www.wowwiki.com/API_DeleteInboxItem">DeleteInboxItem</a>(index) - Deletes the  inbox item at index. It returns immediately, it does not seem to wait  for the deletion to go through, giving the normal problems with rapid  mail removal attempts. </dd>
<dd> <a title="API DropCursorMoney" href="http://www.wowwiki.com/API_DropCursorMoney">DropCursorMoney</a> - Drops the amount of  money held by the cursor. </dd>
<dd> <a title="API  GetCoinIcon" href="http://www.wowwiki.com/API_GetCoinIcon">GetCoinIcon</a>(amount) </dd>
<dd> <a title="API GetInboxHeaderInfo" href="http://www.wowwiki.com/API_GetInboxHeaderInfo">GetInboxHeaderInfo</a>(index) - Returns  information about a message in the inbox. </dd>
<dd> <a title="API  GetInboxItem" href="http://www.wowwiki.com/API_GetInboxItem">GetInboxItem</a>(index, itemIndex) - Returns description  of the attachment attached to message at (index). </dd>
<dd> <a title="API GetInboxItemLink" href="http://www.wowwiki.com/API_GetInboxItemLink">GetInboxItemLink</a>(index, itemIndex) -  Returns link of the attachment attached to message at (index). </dd>
<dd> <a title="API GetInboxNumItems" href="http://www.wowwiki.com/API_GetInboxNumItems">GetInboxNumItems</a>() - Returns the number  of messages in your inbox. </dd>
<dd> <a title="API  GetInboxText" href="http://www.wowwiki.com/API_GetInboxText">GetInboxText</a>(index) - Returns the message text of  message at (index). </dd>
<dd> <a title="API GetInboxInvoiceInfo" href="http://www.wowwiki.com/API_GetInboxInvoiceInfo">GetInboxInvoiceInfo</a>(index) - Returns  informations about an auction house invoice. </dd>
<dd> <a title="API GetLatestThreeSenders" href="http://www.wowwiki.com/API_GetLatestThreeSenders">GetLatestThreeSenders</a> - Returns  the senders of the most recent unread mail. </dd>
<dd> <a class="new" title="API GetNumPackages (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumPackages&amp;action=edit&amp;redlink=1">GetNumPackages</a>() - Not yet fully implemented.  Currently it always returns 1. </dd>
<dd> <a title="API GetNumStationeries" href="http://www.wowwiki.com/API_GetNumStationeries">GetNumStationeries</a>() - Not yet fully  implemented. Currently it always returns 1. </dd>
<dd> <a class="new" title="API GetPackageInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPackageInfo&amp;action=edit&amp;redlink=1">GetPackageInfo</a>(index) - Not yet fully implemented.  Currently an index of 1 returns &#8220;Test Package&#8221;. </dd>
<dd> <a title="API GetSelectedStationeryTexture" href="http://www.wowwiki.com/API_GetSelectedStationeryTexture">GetSelectedStationeryTexture</a>()  - Not yet fully implemented. Currently it returns &#8220;STATIONERYTEST&#8221; when  the mailbox is open. </dd>
<dd> <a title="API  GetSendMailCOD" href="http://www.wowwiki.com/API_GetSendMailCOD">GetSendMailCOD</a>() - determine amount of gold entered  in COD box in mail frame when mail is sent </dd>
<dd> <a title="API GetSendMailItem" href="http://www.wowwiki.com/API_GetSendMailItem">GetSendMailItem</a>(index) - Get information  about an item attached on the send mail frame. </dd>
<dd> <a class="new" title="API GetSendMailItemLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSendMailItemLink&amp;action=edit&amp;redlink=1">GetSendMailItemLink</a>(index) - Get link for an item  attached on the send mail frame. </dd>
<dd> <a class="new" title="API GetSendMailMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSendMailMoney&amp;action=edit&amp;redlink=1">GetSendMailMoney</a>() - ?. </dd>
<dd> <a title="API GetSendMailPrice" href="http://www.wowwiki.com/API_GetSendMailPrice">GetSendMailPrice</a>() - Gets the cost for  sending mail. </dd>
<dd> <a title="API GetStationeryInfo" href="http://www.wowwiki.com/API_GetStationeryInfo">GetStationeryInfo</a>(index) - Not yet  fully implemented. Currently an index of 1 returns &#8220;Default Stationery&#8221;. </dd>
<dd> <a class="new" title="API HasNewMail (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_HasNewMail&amp;action=edit&amp;redlink=1">HasNewMail</a>()  - Returns nil if there is no new mail. </dd>
<dd> <a title="API InboxItemCanDelete" href="http://www.wowwiki.com/API_InboxItemCanDelete">InboxItemCanDelete</a>(index) - Boolean  check for whether a message is returnable to the sender. </dd>
<dd> <a class="new" title="API ReturnInboxItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ReturnInboxItem&amp;action=edit&amp;redlink=1">ReturnInboxItem</a>(index) - Returns to the sender the  attached item in the mail message at the specified index. </dd>
<dd> <a class="new" title="API SelectPackage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SelectPackage&amp;action=edit&amp;redlink=1">SelectPackage</a>(index) - Not yet fully implemented. It  does nothing visible. </dd>
<dd> <a title="API SelectStationery" href="http://www.wowwiki.com/API_SelectStationery">SelectStationery</a>(index) - Not yet fully  implemented. It does nothing visible. </dd>
<dd> <a title="API  SendMail" href="http://www.wowwiki.com/API_SendMail">SendMail</a>(&#8221;target&#8221;, &#8220;subject&#8221;, &#8220;body&#8221;) - If the mailbox is  open, this sends mail. </dd>
<dd> PROTECTED <a class="new" title="API SetSendMailCOD (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSendMailCOD&amp;action=edit&amp;redlink=1">SetSendMailCOD</a>(amount) - Make next mail sent using  SendMail() COD target for amount. &#8212; Protected as of 2.0 </dd>
<dd> PROTECTED <a class="new" title="API SetSendMailMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSendMailMoney&amp;action=edit&amp;redlink=1">SetSendMailMoney</a>(amount) - Add money to next mail  sent using SendMail(). &#8212; Protected as of 2.0 </dd>
<dd> <a title="API  TakeInboxItem" href="http://www.wowwiki.com/API_TakeInboxItem">TakeInboxItem</a>(index, itemIndex) - Take the attached  item from the mailbox message at index. </dd>
<dd> <a title="API  TakeInboxMoney" href="http://www.wowwiki.com/API_TakeInboxMoney">TakeInboxMoney</a>(index) - Take the attached money  from the mailbox message at index. </dd>
<dd> <a class="new" title="API TakeInboxTextItem (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TakeInboxTextItem&amp;action=edit&amp;redlink=1">TakeInboxTextItem</a>(index) - Creates a permanent copy  of letter (readable &#8220;Plain Letter&#8221;). </dd>
</dl>
<p><a id="Mapping_Functions" rel="nofollow" name="Mapping_Functions"></a></p>
<h3><span class="mw-headline"> Mapping Functions </span></h3>
<p>These functions are related to display of the world map.</p>
<dl>
<dd> <a class="new" title="API ClickLandmark (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClickLandmark&amp;action=edit&amp;redlink=1">ClickLandmark</a>(id) - ? </dd>
<dd> <a title="API GetCorpseMapPosition" href="http://www.wowwiki.com/API_GetCorpseMapPosition">GetCorpseMapPosition</a>() - Returns  the position of the corpse on the current world map. </dd>
<dd> <a title="API GetCurrentMapContinent" href="http://www.wowwiki.com/API_GetCurrentMapContinent">GetCurrentMapContinent</a>() -  Returns the number of the continent the world map is currently shown. </dd>
<dd> <a title="API GetCurrentMapDungeonLevel" href="http://www.wowwiki.com/API_GetCurrentMapDungeonLevel">GetCurrentMapDungeonLevel</a>() -  Returns which level of a multi-level map is currently shown. </dd>
<dd> <a title="API GetNumDungeonMapLevels" href="http://www.wowwiki.com/API_GetNumDungeonMapLevels">GetNumDungeonMapLevels</a>() -  Returns the number of levels in the currently shown zone map (0 for  none). </dd>
<dd> <a class="new" title="API GetCurrentMapAreaID (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCurrentMapAreaID&amp;action=edit&amp;redlink=1">GetCurrentMapAreaID</a> () - Returns the area id of the  current map. </dd>
<dd> <a title="API GetCurrentMapZone" href="http://www.wowwiki.com/API_GetCurrentMapZone">GetCurrentMapZone</a>() - Returns the  number of the zone the world map is currently showing. </dd>
<dd> <a title="API GetMapContinents" href="http://www.wowwiki.com/API_GetMapContinents">GetMapContinents</a>() - Returns the  continent names. </dd>
<dd> <a class="new" title="API GetMapDebugObjectInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetMapDebugObjectInfo&amp;action=edit&amp;redlink=1">GetMapDebugObjectInfo</a>(id) - ? </dd>
<dd> <a title="API  GetMapInfo" href="http://www.wowwiki.com/API_GetMapInfo">GetMapInfo</a>() - Returns the name and size of the current  world map. </dd>
<dd> <a title="API GetMapLandmarkInfo" href="http://www.wowwiki.com/API_GetMapLandmarkInfo">GetMapLandmarkInfo</a>(landmarkIndex) -  Returns information about a landmark on the current world map. </dd>
<dd> <a title="API GetMapOverlayInfo" href="http://www.wowwiki.com/API_GetMapOverlayInfo">GetMapOverlayInfo</a>(overlayIndex) -  Returns information about an overlay on the current world map. </dd>
<dd> <a title="API  GetMapZones" href="http://www.wowwiki.com/API_GetMapZones">GetMapZones</a>(continentIndex) - Returns the zone names of  a continent. </dd>
<dd> <a class="new" title="API GetNumMapDebugObjects (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumMapDebugObjects&amp;action=edit&amp;redlink=1">GetNumMapDebugObjects</a>() - ? </dd>
<dd> <a title="API GetNumMapLandmarks" href="http://www.wowwiki.com/API_GetNumMapLandmarks">GetNumMapLandmarks</a>() - Returns the  number of landmarks on the current world map. </dd>
<dd> <a title="API GetNumMapOverlays" href="http://www.wowwiki.com/API_GetNumMapOverlays">GetNumMapOverlays</a>() - Returns the  number of overlays on the current world map. </dd>
<dd> <a title="API GetPlayerMapPosition" href="http://www.wowwiki.com/API_GetPlayerMapPosition">GetPlayerMapPosition</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  the position of a unit on the current world map. </dd>
<dd> <a title="API ProcessMapClick" href="http://www.wowwiki.com/API_ProcessMapClick">ProcessMapClick</a>(x,y) - Passes a click to  the client, which then calculates if the zone has to be changed. </dd>
<dd> <a title="API  RequestBattlefieldPositions" href="http://www.wowwiki.com/API_RequestBattlefieldPositions">RequestBattlefieldPositions</a>() -  Request new data for GetBattlefieldPosition(). </dd>
<dd> <a class="new" title="API SetDungeonMapLevel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetDungeonMapLevel&amp;action=edit&amp;redlink=1">SetDungeonMapLevel</a>(level) - Sets which level of a  multi-level map (Dalaran, dungeons, etc) is currently shown. </dd>
<dd> <a title="API  SetMapByID" href="http://www.wowwiki.com/API_SetMapByID">SetMapByID</a>(id) - Set map by area id. </dd>
<dd> <a title="API SetMapToCurrentZone" href="http://www.wowwiki.com/API_SetMapToCurrentZone">SetMapToCurrentZone</a>() - Sets the  current world map to the zone the player is presently in. </dd>
<dd> <a title="API  SetMapZoom" href="http://www.wowwiki.com/API_SetMapZoom">SetMapZoom</a>(continentIndex[, zoneIndex]) - Sets the  current world map to a specific continent and optionally zone. </dd>
<dd> <a title="API SetupFullscreenScale" href="http://www.wowwiki.com/API_SetupFullscreenScale">SetupFullscreenScale</a>() - Configures  scale of full-screen views, such as the world map, to best fill screen. </dd>
<dd> <a title="API UpdateMapHighlight" href="http://www.wowwiki.com/API_UpdateMapHighlight">UpdateMapHighlight</a>(x,y) - Provides  map rollover information for highlighting. </dd>
<dd> <a class="new" title="API CreateWorldMapArrowFrame (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CreateWorldMapArrowFrame&amp;action=edit&amp;redlink=1">CreateWorldMapArrowFrame</a>(&#8221;frame&#8221;) - create a arrow  cursor for the player position and orientation. </dd>
<dd> <a class="new" title="API UpdateWorldMapArrowFrames (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UpdateWorldMapArrowFrames&amp;action=edit&amp;redlink=1">UpdateWorldMapArrowFrames</a>() - update the orientation  of the arrow cursor based on the current player orientation. </dd>
<dd> <a class="new" title="API ShowWorldMapArrowFrame (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ShowWorldMapArrowFrame&amp;action=edit&amp;redlink=1">ShowWorldMapArrowFrame</a>(bool) - show or hide the arrow  representing the player. </dd>
<dd> <a class="new" title="API PositionWorldMapArrowFrame (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PositionWorldMapArrowFrame&amp;action=edit&amp;redlink=1">PositionWorldMapArrowFrame</a>(x,y) - set the  position of the arrow representing the player </dd>
<dd> <a class="new" title="API ZoomOut (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ZoomOut&amp;action=edit&amp;redlink=1">ZoomOut</a>()  - &#8220;Zooms out&#8221; of the current map: going from zone to continent to world  view. </dd>
</dl>
<p><a id="Merchant_Functions" rel="nofollow" name="Merchant_Functions"></a></p>
<h3><span class="mw-headline"> Merchant Functions </span></h3>
<dl>
<dd> <a title="API  BuyMerchantItem" href="http://www.wowwiki.com/API_BuyMerchantItem">BuyMerchantItem</a>(index[, qty]) - Buys an item from a  merchant. </dd>
<dd> <a title="API  BuybackItem" href="http://www.wowwiki.com/API_BuybackItem">BuybackItem</a>(index) - Buys back a sold item. </dd>
<dd> <a title="API CanMerchantRepair" href="http://www.wowwiki.com/API_CanMerchantRepair">CanMerchantRepair</a>() - Returns true if  the merchant can repair items. </dd>
<dd> <a title="API  CloseMerchant" href="http://www.wowwiki.com/API_CloseMerchant">CloseMerchant</a>() - Closes the merchant window. </dd>
<dd> <a title="API GetBuybackItemInfo" href="http://www.wowwiki.com/API_GetBuybackItemInfo">GetBuybackItemInfo</a>(index) - Returns  information about the buyback item. </dd>
<dd> <a class="new" title="API GetBuybackItemLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBuybackItemLink&amp;action=edit&amp;redlink=1">GetBuybackItemLink</a>(index) - Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for  the buyback item. </dd>
<dd> <a title="API GetMerchantItemCostInfo" href="http://www.wowwiki.com/API_GetMerchantItemCostInfo">GetMerchantItemCostInfo</a> (index) -  Returns &#8220;alternative currency&#8221; information about an item. </dd>
<dd> <a title="API GetMerchantItemCostItem" href="http://www.wowwiki.com/API_GetMerchantItemCostItem">GetMerchantItemCostItem</a> (index,  itemIndex) - Returns information about an &#8220;alternative currency&#8221;  component of the price for a purchasable item. </dd>
<dd> <a title="API GetMerchantItemInfo" href="http://www.wowwiki.com/API_GetMerchantItemInfo">GetMerchantItemInfo</a>(index) - Returns  information about the given purchasable item </dd>
<dd> <a title="API GetMerchantItemLink" href="http://www.wowwiki.com/API_GetMerchantItemLink">GetMerchantItemLink</a>(index) - Returns  an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the given purchasable item </dd>
<dd> <a title="API GetMerchantItemMaxStack" href="http://www.wowwiki.com/API_GetMerchantItemMaxStack">GetMerchantItemMaxStack</a>(index) -  Returns the maximum number of items in a stack. </dd>
<dd> <a title="API GetMerchantNumItems" href="http://www.wowwiki.com/API_GetMerchantNumItems">GetMerchantNumItems</a>() - Returns the  number of items the merchant sells. </dd>
<dd> <a title="API GetRepairAllCost" href="http://www.wowwiki.com/API_GetRepairAllCost">GetRepairAllCost</a>() </dd>
<dd> <a title="API HideRepairCursor" href="http://www.wowwiki.com/API_HideRepairCursor">HideRepairCursor</a>() </dd>
<dd> <a title="API  InRepairMode" href="http://www.wowwiki.com/API_InRepairMode">InRepairMode</a>() - Returns true if your cursor is in  repair mode </dd>
<dd> <a title="API PickupMerchantItem" href="http://www.wowwiki.com/API_PickupMerchantItem">PickupMerchantItem</a>(index) - Places  the item on the cursor. </dd>
<dd> <a title="API  RepairAllItems" href="http://www.wowwiki.com/API_RepairAllItems">RepairAllItems</a>([guildBankRepair]) - Repairs all  equipped and inventory items. </dd>
<dd> <a title="API ShowMerchantSellCursor" href="http://www.wowwiki.com/API_ShowMerchantSellCursor">ShowMerchantSellCursor</a>(index) -  Changes the cursor to the merchant sell cursor. </dd>
<dd> <a title="API ShowRepairCursor" href="http://www.wowwiki.com/API_ShowRepairCursor">ShowRepairCursor</a>() </dd>
<dd> <a class="new" title="API GetNumBuybackItems (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumBuybackItems&amp;action=edit&amp;redlink=1">GetNumBuybackItems</a>() - Returns number of items  available for buyback </dd>
</dl>
<p><a id="Movement_Functions" rel="nofollow" name="Movement_Functions"></a></p>
<h3><span class="mw-headline"> Movement Functions </span></h3>
<p>Most of these functions may only called on a hardware event from <strong>secure</strong> code.</p>
<dl>
<dd> <a title="API  FollowUnit" href="http://www.wowwiki.com/API_FollowUnit">FollowUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Follow an ally with the specified UnitID </dd>
<dd> PROTECTED <a title="API  CameraOrSelectOrMoveStart" href="http://www.wowwiki.com/API_CameraOrSelectOrMoveStart">CameraOrSelectOrMoveStart</a>() - Begin &#8220;Left  click&#8221; in the 3D world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API  CameraOrSelectOrMoveStop" href="http://www.wowwiki.com/API_CameraOrSelectOrMoveStop">CameraOrSelectOrMoveStop</a>([stickyFlag]) -  End &#8220;Left click&#8221; in the 3D world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API  JumpOrAscendStart" href="http://www.wowwiki.com/API_JumpOrAscendStart">JumpOrAscendStart</a>() - Makes the player jump. </dd>
<dd> PROTECTED <a title="API AscendStop" href="http://www.wowwiki.com/API_AscendStop">AscendStop</a>() - Called when you release the  jump key. </dd>
<dd> PROTECTED <a title="API  MoveBackwardStart" href="http://www.wowwiki.com/API_MoveBackwardStart">MoveBackwardStart</a> - The player begins moving  backward at the specified time. </dd>
<dd> PROTECTED <a title="API  MoveBackwardStop" href="http://www.wowwiki.com/API_MoveBackwardStop">MoveBackwardStop</a> - The player stops moving  backward at the specified time. </dd>
<dd> PROTECTED <a title="API  MoveForwardStart" href="http://www.wowwiki.com/API_MoveForwardStart">MoveForwardStart</a> - The player begins moving  forward at the specified time. </dd>
<dd> PROTECTED <a title="API MoveForwardStop" href="http://www.wowwiki.com/API_MoveForwardStop">MoveForwardStop</a> - The player stops  moving forward at the specified time. </dd>
<dd> PROTECTED <a title="API StrafeLeftStart" href="http://www.wowwiki.com/API_StrafeLeftStart">StrafeLeftStart</a> - The player begins  strafing left at the specified time. </dd>
<dd> PROTECTED <a title="API StrafeLeftStop" href="http://www.wowwiki.com/API_StrafeLeftStop">StrafeLeftStop</a> - The player stops  strafing left at the specified time. </dd>
<dd> PROTECTED <a title="API  StrafeRightStart" href="http://www.wowwiki.com/API_StrafeRightStart">StrafeRightStart</a> - The player begins strafing  right at the specified time. </dd>
<dd> PROTECTED <a title="API StrafeRightStop" href="http://www.wowwiki.com/API_StrafeRightStop">StrafeRightStop</a> - The player stops  strafing right at the specified time. </dd>
<dd> PROTECTED <a title="API ToggleAutoRun" href="http://www.wowwiki.com/API_ToggleAutoRun">ToggleAutoRun</a> - Turns auto-run on or off </dd>
<dd> PROTECTED <a title="API ToggleRun" href="http://www.wowwiki.com/API_ToggleRun">ToggleRun</a> - Toggle between running and  walking. </dd>
<dd> PROTECTED <a title="API TurnLeftStart" href="http://www.wowwiki.com/API_TurnLeftStart">TurnLeftStart</a> - The player starts turning  left at the specified time. </dd>
<dd> PROTECTED <a title="API TurnLeftStop" href="http://www.wowwiki.com/API_TurnLeftStop">TurnLeftStop</a> - The player stops turning  left at the specified time. </dd>
<dd> PROTECTED <a title="API  TurnOrActionStart" href="http://www.wowwiki.com/API_TurnOrActionStart">TurnOrActionStart</a>() - Begin &#8220;Right Click&#8221; in the  3D world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API  TurnOrActionStop" href="http://www.wowwiki.com/API_TurnOrActionStop">TurnOrActionStop</a>() - End &#8220;Right Click&#8221; in the 3D  world. (1.10 - Protected) </dd>
<dd> PROTECTED <a title="API TurnRightStart" href="http://www.wowwiki.com/API_TurnRightStart">TurnRightStart</a> - The player starts  turning right at the specified time. </dd>
<dd> PROTECTED <a title="API TurnRightStop" href="http://www.wowwiki.com/API_TurnRightStop">TurnRightStop</a> - The player stops turning  right at the specified time. </dd>
</dl>
<p><a id="Music_Player_Functions" rel="nofollow" name="Music_Player_Functions"></a></p>
<h3><span class="mw-headline"> Music  Player Functions </span></h3>
<p>These functions were added exclusively to the Mac client in <a class="mw-redirect" title="Patch 1.12" href="http://www.wowwiki.com/Patch_1.12">Patch 1.12</a>. The functions are protected and are  only called through key bindings; thus they only serve to enable you to  bind specific keys to control iTunes while using the WoW client.</p>
<dl>
<dd> PROTECTED <a class="new" title="API MusicPlayer BackTrack (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_MusicPlayer_BackTrack&amp;action=edit&amp;redlink=1">MusicPlayer_BackTrack</a>() - Go back a track. </dd>
<dd> PROTECTED <a class="new" title="API MusicPlayer NextTrack (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_MusicPlayer_NextTrack&amp;action=edit&amp;redlink=1">MusicPlayer_NextTrack</a>() - Go forward a track. </dd>
<dd> PROTECTED <a class="new" title="API MusicPlayer PlayPause (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_MusicPlayer_PlayPause&amp;action=edit&amp;redlink=1">MusicPlayer_PlayPause</a>() - Toggle play/pause. </dd>
<dd> PROTECTED <a class="new" title="API MusicPlayer VolumeDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_MusicPlayer_VolumeDown&amp;action=edit&amp;redlink=1">MusicPlayer_VolumeDown</a>() - Reduce music volume. </dd>
<dd> PROTECTED <a class="new" title="API MusicPlayer VolumeUp (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_MusicPlayer_VolumeUp&amp;action=edit&amp;redlink=1">MusicPlayer_VolumeUp</a>() - Increase music volume. </dd>
</dl>
<p><a id="Pet_Functions" rel="nofollow" name="Pet_Functions"></a></p>
<h3><span class="mw-headline"> Pet Functions </span></h3>
<dl>
<dd> <a title="API  BuyStableSlot" href="http://www.wowwiki.com/API_BuyStableSlot">BuyStableSlot</a>() </dd>
<dd> PROTECTED <a title="API CastPetAction" href="http://www.wowwiki.com/API_CastPetAction">CastPetAction</a>(index) - Cast the  corresponding pet skill. </dd>
<dd> <a class="new" title="API ClickStablePet (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClickStablePet&amp;action=edit&amp;redlink=1">ClickStablePet</a>(index) - ?. </dd>
<dd> <a title="API ClosePetStables" href="http://www.wowwiki.com/API_ClosePetStables">ClosePetStables</a>() - Close the pet  stables user interface. </dd>
<dd> <a title="API  DropItemOnUnit" href="http://www.wowwiki.com/API_DropItemOnUnit">DropItemOnUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Drops  an item from the cursor onto a unit. </dd>
<dd> <a title="API GetNextStableSlotCost" href="http://www.wowwiki.com/API_GetNextStableSlotCost">GetNextStableSlotCost</a>() </dd>
<dd> <a class="new" title="API GetNumStablePets (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumStablePets&amp;action=edit&amp;redlink=1">GetNumStablePets</a>() - Returns the number of pets in  the stable. </dd>
<dd> <a class="new" title="API GetNumStableSlots (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumStableSlots&amp;action=edit&amp;redlink=1">GetNumStableSlots</a>() - Returns the number of stable  slots you own. </dd>
<dd> <a title="API GetPetActionCooldown" href="http://www.wowwiki.com/API_GetPetActionCooldown">GetPetActionCooldown</a>(index) -  Returns cooldown information for the pet action at the specificed pet  action bar slot. </dd>
<dd> <a title="API GetPetActionInfo" href="http://www.wowwiki.com/API_GetPetActionInfo">GetPetActionInfo</a>(index) - Returns  information on the pet action at the specified pet action bar slot. </dd>
<dd> <a class="new" title="API GetPetActionSlotUsable (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPetActionSlotUsable&amp;action=edit&amp;redlink=1">GetPetActionSlotUsable</a>(slot) </dd>
<dd> <a class="new" title="API GetPetActionsUsable (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPetActionsUsable&amp;action=edit&amp;redlink=1">GetPetActionsUsable</a>() - Returns a value indicating if  the player&#8217;s pet&#8217;s actions can be used at this time. </dd>
<dd> <a title="API GetPetExperience" href="http://www.wowwiki.com/API_GetPetExperience">GetPetExperience</a>() - Returns the pet&#8217;s  current xp, and total xp required for next level. </dd>
<dd> <a title="API GetPetFoodTypes" href="http://www.wowwiki.com/API_GetPetFoodTypes">GetPetFoodTypes</a>() - Returns a list of  the food types the player&#8217;s pet can eat. </dd>
<dd> <a title="API GetPetHappiness" href="http://www.wowwiki.com/API_GetPetHappiness">GetPetHappiness</a>() - Returns the pet&#8217;s  happiness, damage percentage, and loyalty gain rate. </dd>
<dd> <a class="new" title="API GetPetIcon (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPetIcon&amp;action=edit&amp;redlink=1">GetPetIcon</a>()  - Returns the path to the texture to use as the icon for the player&#8217;s  pet. </dd>
<dd> <a class="new" title="API GetPetTimeRemaining (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPetTimeRemaining&amp;action=edit&amp;redlink=1">GetPetTimeRemaining</a>() - Returns in milliseconds about  some timeout for the player&#8217;s pet. </dd>
<dd> <a title="API GetSelectedStablePet" href="http://www.wowwiki.com/API_GetSelectedStablePet">GetSelectedStablePet</a>() - ?. </dd>
<dd> <a title="API GetStablePetFoodTypes" href="http://www.wowwiki.com/API_GetStablePetFoodTypes">GetStablePetFoodTypes</a>(index) -  Returns a list of the food types a specific stabled pet can eat. </dd>
<dd> <a title="API GetStablePetInfo" href="http://www.wowwiki.com/API_GetStablePetInfo">GetStablePetInfo</a>(index) - Returns  information about a specific stabled pet. </dd>
<dd> <a title="API  HasPetSpells" href="http://www.wowwiki.com/API_HasPetSpells">HasPetSpells</a>() - Returns true if the player has pet  spells. </dd>
<dd> <a title="API  HasPetUI" href="http://www.wowwiki.com/API_HasPetUI">HasPetUI</a>() - Returns true if the player has a pet User  Interface. </dd>
<dd> <a title="API  PetAbandon" href="http://www.wowwiki.com/API_PetAbandon">PetAbandon</a>() - Permanently abandons your pet. </dd>
<dd> PROTECTED <a title="API  PetAggressiveMode" href="http://www.wowwiki.com/API_PetAggressiveMode">PetAggressiveMode</a>() - Set your pet in aggressive  mode. Protected function as of patch 2.0. </dd>
<dd> PROTECTED <a title="API PetAttack" href="http://www.wowwiki.com/API_PetAttack">PetAttack</a>() - Instruct your pet to attack your  target. Protected as of patch 2.0. </dd>
<dd> <a title="API IsPetAttackActive" href="http://www.wowwiki.com/API_IsPetAttackActive">IsPetAttackActive</a>() - Returns true if  the pet is currently attacking. </dd>
<dd> <a class="new" title="API PetStopAttack (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PetStopAttack&amp;action=edit&amp;redlink=1">PetStopAttack</a>() - Stop the attack of the pet. </dd>
<dd> <a title="API PetCanBeAbandoned" href="http://www.wowwiki.com/API_PetCanBeAbandoned">PetCanBeAbandoned</a>() - Returns true if  the pet is abandonable. </dd>
<dd> <a class="new" title="API PetCanBeDismissed (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PetCanBeDismissed&amp;action=edit&amp;redlink=1">PetCanBeDismissed</a>() </dd>
<dd> <a title="API PetCanBeRenamed" href="http://www.wowwiki.com/API_PetCanBeRenamed">PetCanBeRenamed</a>() - Returns true if the  pet can be renamed. </dd>
<dd> PROTECTED <a title="API  PetDefensiveMode" href="http://www.wowwiki.com/API_PetDefensiveMode">PetDefensiveMode</a>() - Set your pet in defensive  mode. Protected as of patch 2.0. </dd>
<dd> <a title="API  PetDismiss" href="http://www.wowwiki.com/API_PetDismiss">PetDismiss</a>() - Dismiss your pet. </dd>
<dd> PROTECTED <a title="API PetFollow" href="http://www.wowwiki.com/API_PetFollow">PetFollow</a>() - Instruct your pet to follow you.  Protected as of patch 2.0. </dd>
<dd> <a title="API PetHasActionBar" href="http://www.wowwiki.com/API_PetHasActionBar">PetHasActionBar</a>() - Determine if player  has a pet with an action bar. </dd>
<dd> PROTECTED <a title="API PetPassiveMode" href="http://www.wowwiki.com/API_PetPassiveMode">PetPassiveMode</a>() - Set your pet into  passive mode. Protected as of patch 2.0. </dd>
<dd> <a title="API  PetRename" href="http://www.wowwiki.com/API_PetRename">PetRename</a>(&#8221;name&#8221;) - Renames the pet. </dd>
<dd> PROTECTED <a title="API PetWait" href="http://www.wowwiki.com/API_PetWait">PetWait</a>() - Instruct your pet to remain still.  Protected as of patch 2.0. </dd>
<dd> <a title="API PickupPetAction" href="http://www.wowwiki.com/API_PickupPetAction">PickupPetAction</a>(slot) - Drags an action  from the specified pet action bar slot into the cursor. </dd>
<dd> <a title="API PickupStablePet" href="http://www.wowwiki.com/API_PickupStablePet">PickupStablePet</a>(index) - ?. </dd>
<dd> <a title="API SetPetStablePaperdoll" href="http://www.wowwiki.com/API_SetPetStablePaperdoll">SetPetStablePaperdoll</a>(modelObject)  - ?. </dd>
<dd> <a title="API  StablePet" href="http://www.wowwiki.com/API_StablePet">StablePet</a>(index) - ?. </dd>
<dd> PROTECTED <a class="new" title="API TogglePetAutocast (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TogglePetAutocast&amp;action=edit&amp;redlink=1">TogglePetAutocast</a>(index) - Toggles whether the  specified pet ability should autocast or not. </dd>
<dd> PROTECTED <a class="new" title="API ToggleSpellAutocast (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ToggleSpellAutocast&amp;action=edit&amp;redlink=1">ToggleSpellAutocast</a>(&#8221;spellName&#8221; | spellId, bookType) -  Toggles whether the specified spell should autocast or not. </dd>
<dd> <a title="API GetSpellAutocast" href="http://www.wowwiki.com/API_GetSpellAutocast">GetSpellAutocast</a>(&#8221;spellName&#8221; | spellId,  bookType) - Check whether the specified spell autocasts or not. </dd>
<dd> <a class="new" title="API UnstablePet (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnstablePet&amp;action=edit&amp;redlink=1">UnstablePet</a>(index) - ? </dd>
</dl>
<p><a id="Petition_Functions" rel="nofollow" name="Petition_Functions"></a></p>
<h3><span class="mw-headline"> Petition Functions </span></h3>
<p>Petitions are signup documents for guilds and arena teams. Some  functions below only apply to a particular petition type</p>
<dl>
<dd> <a title="API  BuyPetition" href="http://www.wowwiki.com/API_BuyPetition">BuyPetition</a>(arenaFormat, &#8220;teamName&#8221;) - Purchases an  arena team charter. </dd>
<dd> <a class="new" title="API CanSignPetition (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanSignPetition&amp;action=edit&amp;redlink=1">CanSignPetition</a>() - Returns nil if the player cannot  sign the current petition. </dd>
<dd> <a title="API  ClosePetition" href="http://www.wowwiki.com/API_ClosePetition">ClosePetition</a>() - Closes the current petition. </dd>
<dd> <a title="API GetNumPetitionNames" href="http://www.wowwiki.com/API_GetNumPetitionNames">GetNumPetitionNames</a>() - Gets the  number of signatures on the current petition. </dd>
<dd> <a title="API GetPetitionInfo" href="http://www.wowwiki.com/API_GetPetitionInfo">GetPetitionInfo</a>() - Retrieves  information about the current petition. </dd>
<dd> <a class="new" title="API GetPetitionNameInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPetitionNameInfo&amp;action=edit&amp;redlink=1">GetPetitionNameInfo</a>(index) - Retrieves information  about a signature on the petition. </dd>
<dd> <a title="API  OfferPetition" href="http://www.wowwiki.com/API_OfferPetition">OfferPetition</a>() - Offers a petition to your target,  inviting them to join your would-be guild/arena team. </dd>
<dd> <a title="API  RenamePetition" href="http://www.wowwiki.com/API_RenamePetition">RenamePetition</a>(&#8221;name&#8221;) - Renames the current  petition. </dd>
<dd> <a title="API  SignPetition" href="http://www.wowwiki.com/API_SignPetition">SignPetition</a>() - Signs the current petition. </dd>
<dd> <a class="new" title="API TurnInArenaPetition (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TurnInArenaPetition&amp;action=edit&amp;redlink=1">TurnInArenaPetition</a>(teamSize, &#8230;) - Founds an arena  team. </dd>
<dd> <a class="new" title="API TurnInGuildCharter (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TurnInGuildCharter&amp;action=edit&amp;redlink=1">TurnInGuildCharter</a>() - Founds a guild. </dd>
</dl>
<p><a id="Quest_Functions" rel="nofollow" name="Quest_Functions"></a></p>
<h3><span class="mw-headline"> Quest Functions </span></h3>
<p>See also <a href="http://www.wowwiki.com/World_of_Warcraft_API#Gossip_Functions">Gossip Functions</a></p>
<dl>
<dd> <a title="API  AbandonQuest" href="http://www.wowwiki.com/API_AbandonQuest">AbandonQuest</a> - Abandon the specified quest. </dd>
<dd> <a title="API  AcceptQuest" href="http://www.wowwiki.com/API_AcceptQuest">AcceptQuest</a> - Accept the specified quest. </dd>
<dd> <a title="API  AddQuestWatch" href="http://www.wowwiki.com/API_AddQuestWatch">AddQuestWatch</a>(questIndex[, watchTime]) - Add a quest  to the watch list. </dd>
<dd> <a class="new" title="API CloseQuest (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CloseQuest&amp;action=edit&amp;redlink=1">CloseQuest</a> - ?. </dd>
<dd> <a title="API CollapseQuestHeader" href="http://www.wowwiki.com/API_CollapseQuestHeader">CollapseQuestHeader</a> - Collapses a  quest header. </dd>
<dd> <a title="API  CompleteQuest" href="http://www.wowwiki.com/API_CompleteQuest">CompleteQuest</a> - Complete the specified quest. </dd>
<dd> <a title="API ConfirmAcceptQuest" href="http://www.wowwiki.com/API_ConfirmAcceptQuest">ConfirmAcceptQuest</a> - Accept the  quest. Yes. Really accept it. </dd>
<dd> <a title="API  DeclineQuest" href="http://www.wowwiki.com/API_DeclineQuest">DeclineQuest</a> - Declines the currently offered quest. </dd>
<dd> <a title="API ExpandQuestHeader" href="http://www.wowwiki.com/API_ExpandQuestHeader">ExpandQuestHeader</a> - Expands a quest  header. </dd>
<dd> <a title="API GetAbandonQuestName" href="http://www.wowwiki.com/API_GetAbandonQuestName">GetAbandonQuestName</a> - Gets the name  of a quest while it is being abandoned. </dd>
<dd> <a class="new" title="API GetActiveLevel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetActiveLevel&amp;action=edit&amp;redlink=1">GetActiveLevel</a>(index) - Gets the level of an active  quest (only available after QUEST_GREETING event). </dd>
<dd> <a class="new" title="API GetActiveTitle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetActiveTitle&amp;action=edit&amp;redlink=1">GetActiveTitle</a>(index) - Gets the title of an active  quest (only available after QUEST_GREETING event). </dd>
<dd> <a class="new" title="API GetAvailableLevel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAvailableLevel&amp;action=edit&amp;redlink=1">GetAvailableLevel</a>(index) - Gets the level of an  available quest (only available after QUEST_GREETING event). </dd>
<dd> <a class="new" title="API GetAvailableTitle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAvailableTitle&amp;action=edit&amp;redlink=1">GetAvailableTitle</a>(index) - Gets the title of an  available quest (only available after QUEST_GREETING event). </dd>
<dd> <a title="API GetAvailableQuestInfo" href="http://www.wowwiki.com/API_GetAvailableQuestInfo">GetAvailableQuestInfo</a>(index) -  Returns metadata (quest type) about an available quest. (New: 3.3.3) </dd>
<dd> <a class="new" title="API GetGreetingText (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGreetingText&amp;action=edit&amp;redlink=1">GetGreetingText</a>() </dd>
<dd> <a class="new" title="API GetNumActiveQuests (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumActiveQuests&amp;action=edit&amp;redlink=1">GetNumActiveQuests</a> - Gets the number of currently  active quests from this NPC (only available after QUEST_GREETING event). </dd>
<dd> <a class="new" title="API GetNumAvailableQuests (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumAvailableQuests&amp;action=edit&amp;redlink=1">GetNumAvailableQuests</a> - Gets the number of currently  available quests from this NPC (only available after QUEST_GREETING  event). </dd>
<dd> <a title="API GetNumQuestChoices" href="http://www.wowwiki.com/API_GetNumQuestChoices">GetNumQuestChoices</a> - Returns the  number of rewards available for choice for quest currently in gossip  window. </dd>
<dd> <a title="API GetNumQuestItems" href="http://www.wowwiki.com/API_GetNumQuestItems">GetNumQuestItems</a> - Returns the number  of items necessary to complete a particular quest. </dd>
<dd> <a title="API GetNumQuestLeaderBoards" href="http://www.wowwiki.com/API_GetNumQuestLeaderBoards">GetNumQuestLeaderBoards</a>([questIndex])  - Returns the number of available quest objectives. </dd>
<dd> <a title="API GetNumQuestLogChoices" href="http://www.wowwiki.com/API_GetNumQuestLogChoices">GetNumQuestLogChoices</a> - Returns  the number of options someone has when getting a quest item. </dd>
<dd> <a title="API GetNumQuestLogEntries" href="http://www.wowwiki.com/API_GetNumQuestLogEntries">GetNumQuestLogEntries</a> - Returns  the number of entries in the quest log. </dd>
<dd> <a title="API GetNumQuestLogRewards" href="http://www.wowwiki.com/API_GetNumQuestLogRewards">GetNumQuestLogRewards</a> - Returns  the count of the rewards for a particular quest. </dd>
<dd> <a class="new" title="API GetNumQuestRewards (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumQuestRewards&amp;action=edit&amp;redlink=1">GetNumQuestRewards</a> - Returns number of reward items  (those that you always get) for quest currently in gossip window. </dd>
<dd> <a class="new" title="API GetNumQuestWatches (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumQuestWatches&amp;action=edit&amp;redlink=1">GetNumQuestWatches</a>() - Returns the number of quest  watches active. </dd>
<dd> <a class="new" title="API GetObjectiveText (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetObjectiveText&amp;action=edit&amp;redlink=1">GetObjectiveText</a>() - Gets the objective of the  current quest. </dd>
<dd> <a title="API GetProgressText" href="http://www.wowwiki.com/API_GetProgressText">GetProgressText</a>() - Returns quest  progress text, displayed by the NPC before the player pressed  &#8220;Continue&#8221;. </dd>
<dd> <a title="API  GetQuestBackgroundMaterial" href="http://www.wowwiki.com/API_GetQuestBackgroundMaterial">GetQuestBackgroundMaterial</a> - Returns the  material string associated with the particular quest. </dd>
<dd> <a title="API GetQuestGreenRange" href="http://www.wowwiki.com/API_GetQuestGreenRange">GetQuestGreenRange</a>() - Return for how  many levels below you quests and mobs remain &#8220;green&#8221; (i.e. yield xp) </dd>
<dd> <a title="API GetQuestIndexForTimer" href="http://www.wowwiki.com/API_GetQuestIndexForTimer">GetQuestIndexForTimer</a> - ?. </dd>
<dd> <a class="new" title="API GetQuestIndexForWatch (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestIndexForWatch&amp;action=edit&amp;redlink=1">GetQuestIndexForWatch</a>(watchIndx) - Return the quest  index for the specified watch </dd>
<dd> <a title="API GetQuestItemInfo" href="http://www.wowwiki.com/API_GetQuestItemInfo">GetQuestItemInfo</a> - Returns basic  information about the reward/choice/required item for quest currently in  gossip window. </dd>
<dd> <a title="API GetQuestItemLink" href="http://www.wowwiki.com/API_GetQuestItemLink">GetQuestItemLink</a> - Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for  a selected quest reward/choice/required item for quest currently in  gossip window. </dd>
<dd> <a title="API  GetQuestLink" href="http://www.wowwiki.com/API_GetQuestLink">GetQuestLink</a>(index) - Returns a <a title="QuestLink" href="http://www.wowwiki.com/QuestLink">QuestLink</a> for a quest </dd>
<dd> <a title="API GetQuestLogChoiceInfo" href="http://www.wowwiki.com/API_GetQuestLogChoiceInfo">GetQuestLogChoiceInfo</a> - Returns a  bunch of data about a quest reward choice from the quest log. </dd>
<dd> <a class="new" title="API GetQuestLogGroupNum (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestLogGroupNum&amp;action=edit&amp;redlink=1">GetQuestLogGroupNum</a>() - Returns suggested number of  players for quest selected currently in log or 0 if there&#8217;s no  suggestion. </dd>
<dd> <a title="API GetQuestLogItemLink" href="http://www.wowwiki.com/API_GetQuestLogItemLink">GetQuestLogItemLink</a> - Returns item  link for selected quest reward/choice/required item from quest log. </dd>
<dd> <a title="API GetQuestLogLeaderBoard" href="http://www.wowwiki.com/API_GetQuestLogLeaderBoard">GetQuestLogLeaderBoard</a>(ldrIndex[,  questIndex]) - Gets information about the objectives for a quest. </dd>
<dd> <a title="API GetQuestLogPushable" href="http://www.wowwiki.com/API_GetQuestLogPushable">GetQuestLogPushable</a> - Returns true  if the currently loaded quest in the quest window can be shared. </dd>
<dd> <a title="API GetQuestLogQuestText" href="http://www.wowwiki.com/API_GetQuestLogQuestText">GetQuestLogQuestText</a> - Returns the  description and objectives required for the specified quest. </dd>
<dd> <a class="new" title="API GetQuestLogRequiredMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestLogRequiredMoney&amp;action=edit&amp;redlink=1">GetQuestLogRequiredMoney</a> - Returns amount of money  required for quest completion from quest log. </dd>
<dd> <a title="API GetQuestLogRewardInfo" href="http://www.wowwiki.com/API_GetQuestLogRewardInfo">GetQuestLogRewardInfo</a> - Returns a  pile of reward item info from the quest log. </dd>
<dd> <a title="API GetQuestLogRewardMoney" href="http://www.wowwiki.com/API_GetQuestLogRewardMoney">GetQuestLogRewardMoney</a> - Returns a  number representing the amount of copper returned by a particular  quest. </dd>
<dd> <a title="API GetQuestLogRewardSpell" href="http://www.wowwiki.com/API_GetQuestLogRewardSpell">GetQuestLogRewardSpell</a> - Returns  name and texture of spell awarded for quest completion from quest log. </dd>
<dd> <a class="new" title="API GetQuestLogRewardTalents (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestLogRewardTalents&amp;action=edit&amp;redlink=1">GetQuestLogRewardTalents</a> - Returns number of talents  awarded for quest completion from quest log. </dd>
<dd> <a title="API GetQuestLogSelection" href="http://www.wowwiki.com/API_GetQuestLogSelection">GetQuestLogSelection</a> - Returns a  number associated with the QuestLogSelection index. </dd>
<dd> <a title="API GetQuestLogTimeLeft" href="http://www.wowwiki.com/API_GetQuestLogTimeLeft">GetQuestLogTimeLeft</a> - Returns the  seconds remaining on the current quest timer. </dd>
<dd> <a title="API GetQuestLogTitle" href="http://www.wowwiki.com/API_GetQuestLogTitle">GetQuestLogTitle</a>(index) - Returns  verbose data about a particular quest log entry: level requirement, tag,  suggested group, completed status, etc. </dd>
<dd> <a class="new" title="API GetQuestMoneyToGet (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestMoneyToGet&amp;action=edit&amp;redlink=1">GetQuestMoneyToGet</a> - Returns amount of money required  for quest currently displayed in gossip. </dd>
<dd> <a title="API  GetQuestReward" href="http://www.wowwiki.com/API_GetQuestReward">GetQuestReward</a>(rewardIndex) - Completes the quest  with the specified quest reward. </dd>
<dd> <a class="new" title="API GetQuestText (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestText&amp;action=edit&amp;redlink=1">GetQuestText</a> - Gets the description of the current  quest. </dd>
<dd> <a title="API  GetQuestTimers" href="http://www.wowwiki.com/API_GetQuestTimers">GetQuestTimers</a> - Returns all of the quest timers  currently in progress. </dd>
<dd> <a class="new" title="API GetRewardArenaPoints (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRewardArenaPoints&amp;action=edit&amp;redlink=1">GetRewardArenaPoints</a>() - Returns the amount of arena  points awarded by the currently displayed quest. </dd>
<dd> <a class="new" title="API GetRewardHonor (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRewardHonor&amp;action=edit&amp;redlink=1">GetRewardHonor</a>() - Returns the amount of honor points  awarded by the currently displayed quest. </dd>
<dd> <a class="new" title="API GetRewardMoney (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRewardMoney&amp;action=edit&amp;redlink=1">GetRewardMoney</a>() - Returns a amount of copper  rewarded for completion of quest displayed in gossip. </dd>
<dd> <a title="API  GetRewardSpell" href="http://www.wowwiki.com/API_GetRewardSpell">GetRewardSpell</a>() - Returns name and texture of  spell awarded for quest completion for quest currently in gossip window. </dd>
<dd> <a class="new" title="API GetRewardTalents (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRewardTalents&amp;action=edit&amp;redlink=1">GetRewardTalents</a>() - Returns number of talents  awarded for quest completion for quest currently in gossip window. </dd>
<dd> <a title="API  GetRewardText" href="http://www.wowwiki.com/API_GetRewardText">GetRewardText</a>() - Returns quest reward text,  displayed by the NPC before the player hits &#8220;Complete Quest&#8221;. </dd>
<dd> <a class="new" title="API GetRewardTitle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRewardTitle&amp;action=edit&amp;redlink=1">GetRewardTitle</a>() - Returns the title awarded by the  currently displayed quest. </dd>
<dd> <a class="new" title="API GetRewardXP (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRewardXP&amp;action=edit&amp;redlink=1">GetRewardXP</a>() - Returns the amount of experience  awarded by the currently displayed text. </dd>
<dd> <a title="API  GetTitleText" href="http://www.wowwiki.com/API_GetTitleText">GetTitleText</a> - Retrieves the title of the quest while  talking to the NPC about it. </dd>
<dd> <a class="new" title="API IsCurrentQuestFailed (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsCurrentQuestFailed&amp;action=edit&amp;redlink=1">IsCurrentQuestFailed</a> - ?. </dd>
<dd> <a title="API IsQuestCompletable" href="http://www.wowwiki.com/API_IsQuestCompletable">IsQuestCompletable</a> - Returns true if a  quest is possible to complete. </dd>
<dd> <a class="new" title="API IsQuestWatched (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsQuestWatched&amp;action=edit&amp;redlink=1">IsQuestWatched</a>(questIndex) - Determine if the  specified quest is watched. </dd>
<dd> <a title="API  IsUnitOnQuest" href="http://www.wowwiki.com/API_IsUnitOnQuest">IsUnitOnQuest</a>(questIndex, &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) -  Determine if the specified unit is on the given quest. </dd>
<dd> <a title="API QuestChooseRewardError" href="http://www.wowwiki.com/API_QuestChooseRewardError">QuestChooseRewardError</a> - Throws  an error when the quest choose reward method doesn&#8217;t work. </dd>
<dd> <a class="new" title="API QuestFlagsPVP (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_QuestFlagsPVP&amp;action=edit&amp;redlink=1">QuestFlagsPVP</a>() - Determine if the quest will flag  you you for PvP when accepted. </dd>
<dd> <a title="API QuestGetAutoAccept" href="http://www.wowwiki.com/API_QuestGetAutoAccept">QuestGetAutoAccept</a>() - Returns  whether the last-offered quest was automatically accepted. (3.3.0) </dd>
<dd> <a title="API QuestLogPushQuest" href="http://www.wowwiki.com/API_QuestLogPushQuest">QuestLogPushQuest</a> - Initiates the  sharing of the currently viewed quest in the quest log. </dd>
<dd> <a title="API RemoveQuestWatch" href="http://www.wowwiki.com/API_RemoveQuestWatch">RemoveQuestWatch</a>(questIndex) - Removes a  quest watch by questIndex. </dd>
<dd> <a class="new" title="API SelectActiveQuest (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SelectActiveQuest&amp;action=edit&amp;redlink=1">SelectActiveQuest</a> - Selects an active quest from the  NPC (only available after QUEST_GREETING event). </dd>
<dd> <a class="new" title="API SelectAvailableQuest (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SelectAvailableQuest&amp;action=edit&amp;redlink=1">SelectAvailableQuest</a> - Selects an available quest  from the NPC (only available after QUEST_GREETING event). </dd>
<dd> <a title="API SelectQuestLogEntry" href="http://www.wowwiki.com/API_SelectQuestLogEntry">SelectQuestLogEntry</a> - Sets the  selected quest, required for most GetQuest functions. </dd>
<dd> <a title="API SetAbandonQuest" href="http://www.wowwiki.com/API_SetAbandonQuest">SetAbandonQuest</a> - Called before <a title="API AbandonQuest" href="http://www.wowwiki.com/API_AbandonQuest">AbandonQuest</a>. </dd>
<dd> <a title="API ShiftQuestWatches" href="http://www.wowwiki.com/API_ShiftQuestWatches">ShiftQuestWatches</a>(id1, id2) -  Exchanges the order of two watched quests. (3.3.3) </dd>
<dd> <a title="API SortQuestWatches" href="http://www.wowwiki.com/API_SortQuestWatches">SortQuestWatches</a>() - Sorts the watched  quests according to proximity and returns whether the order changed  since last sorting. (3.3.3) </dd>
<dd> <a class="new" title="API GetDailyQuestsCompleted (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetDailyQuestsCompleted&amp;action=edit&amp;redlink=1">GetDailyQuestsCompleted</a> - Return the current number  of daily quests completed today. </dd>
<dd> <a class="new" title="API GetMaxDailyQuests (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetMaxDailyQuests&amp;action=edit&amp;redlink=1">GetMaxDailyQuests</a> - Returns the maximum number of  daily quests completable in one day. </dd>
<dd> <a class="new" title="API GetQuestResetTime (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestResetTime&amp;action=edit&amp;redlink=1">GetQuestResetTime</a> - Returns number of seconds until  quest reset. </dd>
<dd> <a class="new" title="API WatchFrame Update (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_WatchFrame_Update&amp;action=edit&amp;redlink=1">WatchFrame_Update</a> - Updates the watch frame display. </dd>
<dd> <a title="API QueryQuestsCompleted" href="http://www.wowwiki.com/API_QueryQuestsCompleted">QueryQuestsCompleted</a>() - Query list  of completed quests. (3.3.0) </dd>
<dd> <a class="new" title="API GetQuestsCompleted (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetQuestsCompleted&amp;action=edit&amp;redlink=1">GetQuestsCompleted</a>([table]) - Returns list of  completed quests (only available after QUEST_QUERY_COMPLETE event).  (3.3.0) </dd>
<dd> <a title="API  QuestIsDaily" href="http://www.wowwiki.com/API_QuestIsDaily">QuestIsDaily</a>() - Returns whether the offered quest is a  daily quest. (3.3.3) </dd>
<dd> <a title="API  QuestIsWeekly" href="http://www.wowwiki.com/API_QuestIsWeekly">QuestIsWeekly</a>() - Returns whether the offered quest  is a weekly quest. (3.3.3) </dd>
</dl>
<p><a id="Raid_Functions" rel="nofollow" name="Raid_Functions"></a></p>
<h3><span class="mw-headline"> Raid Functions </span></h3>
<p>See also: <a href="http://www.wowwiki.com/World_of_Warcraft_API#Group_Functions">Group Functions</a></p>
<dl>
<dd> <a class="new" title="API ConvertToRaid (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ConvertToRaid&amp;action=edit&amp;redlink=1">ConvertToRaid</a>() - Converts party to raid. </dd>
<dd> <a class="new" title="API DemoteAssistant (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DemoteAssistant&amp;action=edit&amp;redlink=1">DemoteAssistant</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Demotes  player from assistant status. Requires raid leadership. </dd>
<dd> <a class="new" title="API GetAllowLowLevelRaid (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAllowLowLevelRaid&amp;action=edit&amp;redlink=1">GetAllowLowLevelRaid</a>() - Returns whether joining  low-level raids is enabled for the current character. </dd>
<dd> <a title="API GetNumRaidMembers" href="http://www.wowwiki.com/API_GetNumRaidMembers">GetNumRaidMembers</a>() - Returns the  number of raid members. </dd>
<dd> <a class="new" title="API GetPartyAssignment (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPartyAssignment&amp;action=edit&amp;redlink=1">GetPartyAssignment</a>(&#8221;assignment&#8221;) - Returns unitID of  unit assigned to given role. </dd>
<dd> <a class="new" title="API GetPartyAssignment (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPartyAssignment&amp;action=edit&amp;redlink=1">GetPartyAssignment</a>(&#8221;assignment&#8221;, &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  a value based on whether the unit is assigned to given role </dd>
<dd> <a title="API GetRaidRosterInfo" href="http://www.wowwiki.com/API_GetRaidRosterInfo">GetRaidRosterInfo</a>(index) - Returns  information about the members of your raid . </dd>
<dd> <a class="new" title="API GetRaidRosterSelection (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetRaidRosterSelection&amp;action=edit&amp;redlink=1">GetRaidRosterSelection</a> - ?. </dd>
<dd> <a title="API GetRaidTargetIndex" href="http://www.wowwiki.com/API_GetRaidTargetIndex">GetRaidTargetIndex</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Get the  raid target index assigned to a unit. </dd>
<dd> <a class="new" title="API GetReadyCheckStatus (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetReadyCheckStatus&amp;action=edit&amp;redlink=1">GetReadyCheckStatus</a>(&#8221;unit&#8221;) - Returns a raid member&#8217;s  response to the current LFG check. </dd>
<dd> <a title="API  IsRaidLeader" href="http://www.wowwiki.com/API_IsRaidLeader">IsRaidLeader</a>() - Returns a value based on whether the  player is a raid leader </dd>
<dd> <a title="API  IsRaidOfficer" href="http://www.wowwiki.com/API_IsRaidOfficer">IsRaidOfficer</a>() - Returns a value based on whether  the player is a raid officer (assistant (?)). </dd>
<dd> <a class="new" title="API PromoteToAssistant (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_PromoteToAssistant&amp;action=edit&amp;redlink=1">PromoteToAssistant</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) -  Promotes player to assistant status. Requires raid leadership. </dd>
<dd> <a title="API RequestRaidInfo" href="http://www.wowwiki.com/API_RequestRaidInfo">RequestRaidInfo</a>() - Returns information  about which instances you are saved to </dd>
<dd> PROTECTED <a class="new" title="API SetPartyAssignment (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetPartyAssignment&amp;action=edit&amp;redlink=1">SetPartyAssignment</a>(&#8221;assignment&#8221;, player) (2.3.3) </dd>
<dd> <a class="new" title="API SetAllowLowLevelRaid (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetAllowLowLevelRaid&amp;action=edit&amp;redlink=1">SetAllowLowLevelRaid</a>(allowed) - Controls whether the  current character can join low-level raids. </dd>
<dd> <a class="new" title="API SetRaidRosterSelection (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetRaidRosterSelection&amp;action=edit&amp;redlink=1">SetRaidRosterSelection</a>(index) - ?. </dd>
<dd> <a title="API SetRaidSubgroup" href="http://www.wowwiki.com/API_SetRaidSubgroup">SetRaidSubgroup</a>(index, subgroup) - Move a  raid member from his current subgroup into a different (non-full)  subgroup. </dd>
<dd> PROTECTED <a title="API  SwapRaidSubgroup" href="http://www.wowwiki.com/API_SwapRaidSubgroup">SwapRaidSubgroup</a>(index1, index2) - Swaps raid  members into different groups </dd>
<dd> <a title="API  SetRaidTarget" href="http://www.wowwiki.com/API_SetRaidTarget">SetRaidTarget</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;, index) -  Set the raid target index for a unit. </dd>
<dd> <a title="API  UnitInRaid" href="http://www.wowwiki.com/API_UnitInRaid">UnitInRaid</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns 1 if unit is in your raid, nil if  not. </dd>
</dl>
<p><a id="Raid_Browser_Functions" rel="nofollow" name="Raid_Browser_Functions"></a></p>
<h3><span class="mw-headline"> Raid  Browser Functions </span></h3>
<p>Functions hidden behind and supporting the Raid Browser UI introduced  in 3.3 See also: <a href="http://www.wowwiki.com/World_of_Warcraft_API#Dungeon_Finder_Functions">Dungeon Finder Functions</a> and <a href="http://www.wowwiki.com/World_of_Warcraft_API#Looking_For_Group_Functions">Looking For Group Functions</a></p>
<p><a id="Recruit-a-Friend_Functions" rel="nofollow" name="Recruit-a-Friend_Functions"></a></p>
<h3><span class="mw-headline"> Recruit-a-Friend Functions </span></h3>
<p>Note: Only usable by people that have been referred or have referred  someone.</p>
<dl>
<dd> <a title="API AcceptLevelGrant" href="http://www.wowwiki.com/API_AcceptLevelGrant">AcceptLevelGrant</a>() - Accepts a level  grant proposal. </dd>
<dd> <a title="API DeclineLevelGrant" href="http://www.wowwiki.com/API_DeclineLevelGrant">DeclineLevelGrant</a>() - Declines a level  grant proposal. </dd>
<dd> <a title="API IsReferAFriendLinked" href="http://www.wowwiki.com/API_IsReferAFriendLinked">IsReferAFriendLinked</a>(?) - ? </dd>
<dd> <a title="API  CanGrantLevel" href="http://www.wowwiki.com/API_CanGrantLevel">CanGrantLevel</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  true if you can grant levels or nil if not. </dd>
<dd> <a title="API  GrantLevel" href="http://www.wowwiki.com/API_GrantLevel">GrantLevel</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;,level) - Grant <a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a> a custom  amount of levels. Only works on referred targets. </dd>
<dd> <a title="API CanSummonFriend" href="http://www.wowwiki.com/API_CanSummonFriend">CanSummonFriend</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  true if you can summon the target or nil if you can&#8217;t. </dd>
<dd> <a title="API  SummonFriend" href="http://www.wowwiki.com/API_SummonFriend">SummonFriend</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Summons the target to you (if its someone  you referred or have been referred by) </dd>
<dd> <a title="API GetSummonFriendCooldown" href="http://www.wowwiki.com/API_GetSummonFriendCooldown">GetSummonFriendCooldown</a>(?) -  Returns the cooldown of the Friend Summon abbility. </dd>
</dl>
<p><a id="Script_Profiling_Functions" rel="nofollow" name="Script_Profiling_Functions"></a></p>
<h3><span class="mw-headline"> Script Profiling Functions </span></h3>
<p>Note: CPU profiling is disabled by default since it has some  overhead. CPU profiling is controlled by the scriptProfile cvar, which  persists across sessions, and takes effect after a UI reload. Memory  profiling is always available. These functions have been added in Patch  2.1.</p>
<dl>
<dd> <a title="API GetAddOnCPUUsage" href="http://www.wowwiki.com/API_GetAddOnCPUUsage">GetAddOnCPUUsage</a>(index or &#8220;name&#8221;) -  Returns the total time used by the specified AddOn. This returns a  cached value calculated by UpdateAddOnCPUUsage(). </dd>
<dd> <a class="new" title="API GetAddOnMemoryUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAddOnMemoryUsage&amp;action=edit&amp;redlink=1">GetAddOnMemoryUsage</a>(index or &#8220;name&#8221;) - query an  addon&#8217;s memory use (in K, precision to 1 byte) - This returns a cached  value calculated by UpdateAddOnMemoryUsage(). </dd>
<dd> <a class="new" title="API GetEventCPUUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetEventCPUUsage&amp;action=edit&amp;redlink=1">GetEventCPUUsage</a>(["event"]) - Returns the time used  and number of times the specified event has been triggered. If &#8216;event&#8217;  is omitted, the time and count will be totals across all events. </dd>
<dd> <a title="API GetFrameCPUUsage" href="http://www.wowwiki.com/API_GetFrameCPUUsage">GetFrameCPUUsage</a>(frame[,  includeChildren]) - Returns the time used and number of function calls  of any of the frame&#8217;s script handlers. If &#8216;includeChildren&#8217; is true or  omitted, the time and call count will include the handlers for all of  the frame&#8217;s children as well. </dd>
<dd> <a class="new" title="API GetFunctionCPUUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetFunctionCPUUsage&amp;action=edit&amp;redlink=1">GetFunctionCPUUsage</a>(function[, includeSubroutines]) -  Returns the time used and number of times the specified function was  called. If &#8216;includeSubroutines&#8217; is true or omitted, the time includes  both the time spent in the function and subroutines called by the  function. If it is false, then time is only the time actually spent by  the code in the function itself. </dd>
<dd> <a class="new" title="API GetScriptCPUUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetScriptCPUUsage&amp;action=edit&amp;redlink=1">GetScriptCPUUsage</a>() - Returns the total time used by  the scripting system </dd>
<dd> <a class="new" title="API ResetCPUUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResetCPUUsage&amp;action=edit&amp;redlink=1">ResetCPUUsage</a>() - Reset all CPU profiling statistics  to zero. </dd>
<dd> <a class="new" title="API UpdateAddOnCPUUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UpdateAddOnCPUUsage&amp;action=edit&amp;redlink=1">UpdateAddOnCPUUsage</a>() - Scan through the profiling  data and update the per-addon statistics </dd>
<dd> <a class="new" title="API UpdateAddOnMemoryUsage (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UpdateAddOnMemoryUsage&amp;action=edit&amp;redlink=1">UpdateAddOnMemoryUsage</a>() - Scan through memory  profiling data and update the per-addon statistics </dd>
</dl>
<p><a id="Security_and_Protection_Functions" rel="nofollow" name="Security_and_Protection_Functions"></a></p>
<h3><span class="mw-headline"> Security and Protection Functions </span></h3>
<dl>
<dd> <a title="API  issecure" href="http://www.wowwiki.com/API_issecure">issecure</a>() - Determine if the current environment is  secure. </dd>
<dd> <a class="new" title="API forceinsecure (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_forceinsecure&amp;action=edit&amp;redlink=1">forceinsecure</a>() - Taint the current execution path. </dd>
<dd> <a title="API issecurevariable" href="http://www.wowwiki.com/API_issecurevariable">issecurevariable</a>([table,] &#8220;name&#8221;) -  Determine if the specified variable is secure. </dd>
<dd> <a title="API  securecall" href="http://www.wowwiki.com/API_securecall">securecall</a>(function or &#8220;functionName&#8221;, &#8230;) - Call a  function from a secure environment without risking secure status. </dd>
<dd> <a title="API  hooksecurefunc" href="http://www.wowwiki.com/API_hooksecurefunc">hooksecurefunc</a>([table,] &#8220;functionName&#8221;, hookfunc) -  Creates a secure &#8216;post hook&#8217; for the named function. The hookfunc is  invoked after the original function, and receives the same parameters.  Return values from hookfunc are discarded. This is the only safe way to  hook functions that execute protected functionality. </dd>
<dd> <a title="API InCombatLockdown" href="http://www.wowwiki.com/API_InCombatLockdown">InCombatLockdown</a>() - Returns true if  the in-combat AddOn restrictions are active. </dd>
<dd> <a class="new" title="API scrub (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_scrub&amp;action=edit&amp;redlink=1">scrub</a>(&#8230;)  - returns the argument list with non-number/boolean/string values  changed to nil. </dd>
</dl>
<p><a id="Settings_Functions" rel="nofollow" name="Settings_Functions"></a></p>
<h3><span class="mw-headline"> Settings Functions </span></h3>
<dl>
<dd> <a title="API CombatTextSetActiveUnit" href="http://www.wowwiki.com/API_CombatTextSetActiveUnit">CombatTextSetActiveUnit</a>(unit) -  changes the entity for which COMBAT_TEXT_UPDATE events fire. </dd>
<dd> <a class="new" title="API DownloadSettings (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DownloadSettings&amp;action=edit&amp;redlink=1">DownloadSettings</a>() - Download a backup of your  settings from the server. </dd>
<dd> <a class="new" title="API GetBaseMip (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBaseMip&amp;action=edit&amp;redlink=1">GetBaseMip</a>()  - Get the world appearance Texture Detail. </dd>
<dd> <a title="API  GetCVar" href="http://www.wowwiki.com/API_GetCVar">GetCVar</a>(&#8221;<a title="Console variables" href="http://www.wowwiki.com/Console_variables">cVar</a>&#8220;) - Get the current (active) setting  for a variable in config.wtf </dd>
<dd> <a title="API  GetCVarDefault" href="http://www.wowwiki.com/API_GetCVarDefault">GetCVarDefault</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) </dd>
<dd> <a class="new" title="API GetCVarAbsoluteMax (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCVarAbsoluteMax&amp;action=edit&amp;redlink=1">GetCVarAbsoluteMax</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) - ? </dd>
<dd> <a class="new" title="API GetCVarAbsoluteMin (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCVarAbsoluteMin&amp;action=edit&amp;redlink=1">GetCVarAbsoluteMin</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) - ? </dd>
<dd> <a class="new" title="API GetCVarBool (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCVarBool&amp;action=edit&amp;redlink=1">GetCVarBool</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) - Returns the value of the cvar as 1 or nil instead  of requiring you to compare the cvar value with &#8220;0&#8243; or &#8220;1&#8243; </dd>
<dd> <a class="new" title="API GetCVarInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCVarInfo&amp;action=edit&amp;redlink=1">GetCVarInfo</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) - returns name, defaultValue,  serverStoredAccountWide, serverStoredPerCharacter </dd>
<dd> <a class="new" title="API GetCVarMax (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCVarMax&amp;action=edit&amp;redlink=1">GetCVarMax</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) - ? </dd>
<dd> <a class="new" title="API GetCVarMin (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCVarMin&amp;action=edit&amp;redlink=1">GetCVarMin</a>(<a title="Console  variables" href="http://www.wowwiki.com/Console_variables">cVar</a>) - ? </dd>
<dd> <a class="new" title="API GetCurrentMultisampleFormat (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetCurrentMultisampleFormat&amp;action=edit&amp;redlink=1">GetCurrentMultisampleFormat</a>() - Get the  current in-use multi-sample (antialias) format. </dd>
<dd> <a title="API GetCurrentResolution" href="http://www.wowwiki.com/API_GetCurrentResolution">GetCurrentResolution</a>() - Get the  index of the current screen resolution. </dd>
<dd> <a class="new" title="API GetFarclip (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetFarclip&amp;action=edit&amp;redlink=1">GetFarclip</a>()  - Get the world appearance Terrain Distance. </dd>
<dd> <a class="new" title="API GetGamma (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGamma&amp;action=edit&amp;redlink=1">GetGamma</a>() </dd>
<dd> <a class="new" title="API GetMultisampleFormats (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetMultisampleFormats&amp;action=edit&amp;redlink=1">GetMultisampleFormats</a>() - Get the available  multi-sample (antialias) formats.. </dd>
<dd> <a title="API GetRefreshRates" href="http://www.wowwiki.com/API_GetRefreshRates">GetRefreshRates</a>(x) </dd>
<dd> <a title="API GetScreenResolutions" href="http://www.wowwiki.com/API_GetScreenResolutions">GetScreenResolutions</a>() </dd>
<dd> <a class="new" title="API GetTerrainMip (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTerrainMip&amp;action=edit&amp;redlink=1">GetTerrainMip</a>() - Get the world appearance Terrain  Texture. </dd>
<dd> <a class="new" title="API GetTexLodBias (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTexLodBias&amp;action=edit&amp;redlink=1">GetTexLodBias</a>() </dd>
<dd> <a class="new" title="API GetVideoCaps (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetVideoCaps&amp;action=edit&amp;redlink=1">GetVideoCaps</a>() </dd>
<dd> <a title="API  GetWaterDetail" href="http://www.wowwiki.com/API_GetWaterDetail">GetWaterDetail</a>() </dd>
<dd> <a title="API IsThreatWarningEnabled" href="http://www.wowwiki.com/API_IsThreatWarningEnabled">IsThreatWarningEnabled</a>() -  returns whether threat warnings should currently be displayed. </dd>
<dd> <a title="API  RegisterCVar" href="http://www.wowwiki.com/API_RegisterCVar">RegisterCVar</a>(&#8221;varname&#8221;[, value]) - Registers a  variable for use with the <a title="API GetCVar" href="http://www.wowwiki.com/API_GetCVar">GetCVar</a> and <a title="API SetCVar" href="http://www.wowwiki.com/API_SetCVar">SetCVar</a> functions. </dd>
<dd> <a class="new" title="API ResetPerformanceValues (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResetPerformanceValues&amp;action=edit&amp;redlink=1">ResetPerformanceValues</a>() </dd>
<dd> <a title="API  ResetTutorials" href="http://www.wowwiki.com/API_ResetTutorials">ResetTutorials</a>() </dd>
<dd> <a class="new" title="API SetBaseMip (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetBaseMip&amp;action=edit&amp;redlink=1">SetBaseMip</a>(value)  - Set the world appearance Texture Detail (0,1). </dd>
<dd> <a title="API  SetCVar" href="http://www.wowwiki.com/API_SetCVar">SetCVar</a>(&#8221;<a title="Console variables" href="http://www.wowwiki.com/Console_variables">cVar</a>&#8220;, value[, "scriptCVar"]) - Set the  value of a variable in config.wtf </dd>
<dd> <a class="new" title="API SetEuropeanNumbers (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetEuropeanNumbers&amp;action=edit&amp;redlink=1">SetEuropeanNumbers</a>(flag) - Sets the decimal separator  to a comma instead of a dot </dd>
<dd> <a class="new" title="API SetFarclip (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetFarclip&amp;action=edit&amp;redlink=1">SetFarclip</a>(value)  - Set the world appearance Terrain Distance (177-777). </dd>
<dd> <a class="new" title="API SetGamma (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetGamma&amp;action=edit&amp;redlink=1">SetGamma</a>(value) </dd>
<dd> <a title="API  SetLayoutMode" href="http://www.wowwiki.com/API_SetLayoutMode">SetLayoutMode</a>() </dd>
<dd> <a class="new" title="API SetMultisampleFormat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetMultisampleFormat&amp;action=edit&amp;redlink=1">SetMultisampleFormat</a>(index) - Set the multi-sample  (antialias) format to use. </dd>
<dd> <a title="API SetScreenResolution" href="http://www.wowwiki.com/API_SetScreenResolution">SetScreenResolution</a>(x) </dd>
<dd> <a class="new" title="API SetTerrainMip (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetTerrainMip&amp;action=edit&amp;redlink=1">SetTerrainMip</a>(value) - Set the world appearance  Terrain Texture (0,1). </dd>
<dd> <a class="new" title="API SetTexLodBias (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetTexLodBias&amp;action=edit&amp;redlink=1">SetTexLodBias</a>() </dd>
<dd> <a title="API  SetWaterDetail" href="http://www.wowwiki.com/API_SetWaterDetail">SetWaterDetail</a>() </dd>
<dd> <a title="API  ShowCloak" href="http://www.wowwiki.com/API_ShowCloak">ShowCloak</a>(flag) - Set whether player&#8217;s cloak is  displayed. </dd>
<dd> <a title="API  ShowHelm" href="http://www.wowwiki.com/API_ShowHelm">ShowHelm</a>(flag) - Set whether player&#8217;s helm is displayed. </dd>
<dd> <a class="new" title="API ShowNumericThreat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ShowNumericThreat&amp;action=edit&amp;redlink=1">ShowNumericThreat</a>() - Returns 1 if detailed threat  information should be shown on unit frames. </dd>
<dd> <a title="API  ShowingCloak" href="http://www.wowwiki.com/API_ShowingCloak">ShowingCloak</a>() - Return 1 if player&#8217;s cloak is  displayed, nil otherwise. </dd>
<dd> <a title="API  ShowingHelm" href="http://www.wowwiki.com/API_ShowingHelm">ShowingHelm</a>() - Return 1 if player&#8217;s helm is displayed,  nil otherwise. </dd>
<dd> <a class="new" title="API UploadSettings (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UploadSettings&amp;action=edit&amp;redlink=1">UploadSettings</a>() - Uploads a backup of your settings  to the server. </dd>
</dl>
<p><a id="Skill_Functions" rel="nofollow" name="Skill_Functions"></a></p>
<h3><span class="mw-headline"> Skill Functions </span></h3>
<dl>
<dd> <a class="new" title="API CollapseSkillHeader (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CollapseSkillHeader&amp;action=edit&amp;redlink=1">CollapseSkillHeader</a>(index) </dd>
<dd> <a class="new" title="API ExpandSkillHeader (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ExpandSkillHeader&amp;action=edit&amp;redlink=1">ExpandSkillHeader</a>(index) </dd>
<dd> <a class="new" title="API GetAdjustedSkillPoints (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetAdjustedSkillPoints&amp;action=edit&amp;redlink=1">GetAdjustedSkillPoints</a>() </dd>
<dd> <a title="API GetNumSkillLines" href="http://www.wowwiki.com/API_GetNumSkillLines">GetNumSkillLines</a>() - get the number of  lines in the skill window, including headers </dd>
<dd> <a class="new" title="API GetSelectedSkill (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSelectedSkill&amp;action=edit&amp;redlink=1">GetSelectedSkill</a>() </dd>
<dd> <a title="API GetSkillLineInfo" href="http://www.wowwiki.com/API_GetSkillLineInfo">GetSkillLineInfo</a>(index) - get the  information for a selected skill </dd>
</dl>
<p><a id="Spell_Functions" rel="nofollow" name="Spell_Functions"></a></p>
<h3><span class="mw-headline"> Spell Functions </span></h3>
<p>spellID is the index of a spell in a spellbook. The indices increase  from top to bottom, then left to right, then between categories (e.g.:  General -&gt; Discipline). spellIDs will change as players learn new  spells and <em>professions</em>.</p>
<dl>
<dd> PROTECTED <a title="API  CastShapeshiftForm" href="http://www.wowwiki.com/API_CastShapeshiftForm">CastShapeshiftForm</a>(index) </dd>
<dd> PROTECTED <a title="API CastSpell" href="http://www.wowwiki.com/API_CastSpell">CastSpell</a>(spellID, &#8220;bookType&#8221;) - Cast the  specified spell by ID. spellbookTab is &#8220;spell&#8221; or &#8220;pet&#8221;. As of patch  2.0, this function has been restricted to Blizzard signed UI mods. Note:  You can still use this function to open Craft windows and activate Lock  Picking. </dd>
<dd> PROTECTED <a title="API CastSpellByName" href="http://www.wowwiki.com/API_CastSpellByName">CastSpellByName</a>(&#8221;name&#8221;[, onSelf]) -  Cast the specified spell by display name. As of patch 2.0, this function  has been restricted to Blizzard signed UI mods. Note: You can still use  this function to open Craft windows and activate Lock Picking. </dd>
<dd> <a class="new" title="API GetKnownSlotFromHighestRankSlot (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetKnownSlotFromHighestRankSlot&amp;action=edit&amp;redlink=1">GetKnownSlotFromHighestRankSlot</a>(slot) - ?. </dd>
<dd> <a title="API GetMultiCastTotemSpells" href="http://www.wowwiki.com/API_GetMultiCastTotemSpells">GetMultiCastTotemSpells</a>(totemslot)  - Returns a list of spellIDs that are applicable for the specified  totem slot (1-4) (NEW in 3.2) </dd>
<dd> <a title="API GetNumShapeshiftForms" href="http://www.wowwiki.com/API_GetNumShapeshiftForms">GetNumShapeshiftForms</a>() </dd>
<dd> <a title="API GetNumSpellTabs" href="http://www.wowwiki.com/API_GetNumSpellTabs">GetNumSpellTabs</a>() - Returns the total  number of tabs in the user&#8217;s spellbook. </dd>
<dd> <a title="API GetQuestLogRewardSpell" href="http://www.wowwiki.com/API_GetQuestLogRewardSpell">GetQuestLogRewardSpell</a> - ?. </dd>
<dd> <a title="API  GetRewardSpell" href="http://www.wowwiki.com/API_GetRewardSpell">GetRewardSpell</a> - ?. </dd>
<dd> <a title="API GetShapeshiftForm" href="http://www.wowwiki.com/API_GetShapeshiftForm">GetShapeshiftForm</a>(unknown) - returns  zero-based index of current form/stance </dd>
<dd> <a title="API GetShapeshiftFormCooldown" href="http://www.wowwiki.com/API_GetShapeshiftFormCooldown">GetShapeshiftFormCooldown</a>(index) </dd>
<dd> <a title="API GetShapeshiftFormInfo" href="http://www.wowwiki.com/API_GetShapeshiftFormInfo">GetShapeshiftFormInfo</a>(index) -  Retrieves information about an available ShapeshiftForm or Stance. </dd>
<dd> <a title="API GetSpellAutocast" href="http://www.wowwiki.com/API_GetSpellAutocast">GetSpellAutocast</a>(&#8221;spellName&#8221; | spellId,  bookType) - Check whether the specified spell autocasts or not. </dd>
<dd> <a title="API GetSpellCooldown" href="http://www.wowwiki.com/API_GetSpellCooldown">GetSpellCooldown</a>(spellName | spellID,  &#8220;bookType&#8221;) - Retrieves data on the cooldown of a specific spell. </dd>
<dd> <a title="API  GetSpellInfo" href="http://www.wowwiki.com/API_GetSpellInfo">GetSpellInfo</a> (spellId | spellName | spellLink) -  Returns the spell&#8217;s info, including name, cost, icon, cast time, and  range. </dd>
<dd> <a title="API  GetSpellLink" href="http://www.wowwiki.com/API_GetSpellLink">GetSpellLink</a> (spellName, spellRank) - Returns the  spell&#8217;s link. (2.4) </dd>
<dd> <a title="API  GetSpellName" href="http://www.wowwiki.com/API_GetSpellName">GetSpellName</a>(spellID, &#8220;bookType&#8221;) - Returns the spell  name and spell rank for a spell in the player&#8217;s spellbook. </dd>
<dd> <a title="API GetSpellTabInfo" href="http://www.wowwiki.com/API_GetSpellTabInfo">GetSpellTabInfo</a>(spellbookTabNum) -  Returns information about the specified spellbook tab. </dd>
<dd> <a title="API GetSpellTexture" href="http://www.wowwiki.com/API_GetSpellTexture">GetSpellTexture</a>(spellName | spellID,  &#8220;bookType&#8221;) - Returns the texture used for the spell&#8217;s icon. </dd>
<dd> <a title="API  GetTotemInfo" href="http://www.wowwiki.com/API_GetTotemInfo">GetTotemInfo</a>(slot) - Returns information about a  totem. </dd>
<dd> <a title="API  IsAttackSpell" href="http://www.wowwiki.com/API_IsAttackSpell">IsAttackSpell</a>(spell) - Returns 1 if the spell is the  &#8220;Attack&#8221; spell. </dd>
<dd> <a class="new" title="API IsAutoRepeatSpell (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsAutoRepeatSpell&amp;action=edit&amp;redlink=1">IsAutoRepeatSpell</a>(spell) - </dd>
<dd> <a title="API  IsPassiveSpell" href="http://www.wowwiki.com/API_IsPassiveSpell">IsPassiveSpell</a>(spellID, &#8220;bookType&#8221;) - Returns  whether the icon in your spellbook is a Passive ability. Formerly  IsSpellPassive(spell). </dd>
<dd> <a title="API  IsSpellInRange" href="http://www.wowwiki.com/API_IsSpellInRange">IsSpellInRange</a>(&#8221;spellName&#8221;, [unit]) - Is nil for no  valid target, 0 for out of range, 1 for in range. </dd>
<dd> <a title="API  IsUsableSpell" href="http://www.wowwiki.com/API_IsUsableSpell">IsUsableSpell</a>(spell) - </dd>
<dd> <a title="API  PickupSpell" href="http://www.wowwiki.com/API_PickupSpell">PickupSpell</a>(&#8221;spellName&#8221; | spellID, &#8220;bookType&#8221;) - Loads  an action button onto the cursor to be dropped into a quickbar slot. </dd>
<dd> UI <a title="API QueryCastSequence" href="http://www.wowwiki.com/API_QueryCastSequence">QueryCastSequence</a>(&#8221;sequence&#8221;) -  Returns index, item, spell for the spell/item that will be used next if  the cast sequence is executed. </dd>
<dd> PROTECTED <a title="API  SetMultiCastSpell" href="http://www.wowwiki.com/API_SetMultiCastSpell">SetMultiCastSpell</a>(actionID,spellID) - Assigns a  spellID to a multicast (totem bar) actionID (NEW in 3.2) </dd>
<dd> <a title="API SpellCanTargetUnit" href="http://www.wowwiki.com/API_SpellCanTargetUnit">SpellCanTargetUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns  true if the spell awaiting target selection can be cast on the  specified unit. </dd>
<dd> <a class="new" title="API SpellHasRange (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SpellHasRange&amp;action=edit&amp;redlink=1">SpellHasRange</a>(spell) - Returns true if the specified  spell has a ranged effect (i.e. requires a target). </dd>
<dd> <a title="API SpellIsTargeting" href="http://www.wowwiki.com/API_SpellIsTargeting">SpellIsTargeting</a>() - Returns true if a  spell has been cast and is awaiting target selection. </dd>
<dd> PROTECTED <a title="API  SpellStopCasting" href="http://www.wowwiki.com/API_SpellStopCasting">SpellStopCasting</a>() - Stops the current spellcast. </dd>
<dd> PROTECTED <a title="API  SpellStopTargeting" href="http://www.wowwiki.com/API_SpellStopTargeting">SpellStopTargeting</a>() - Cancels the spell  awaiting target selection. </dd>
<dd> PROTECTED <a title="API SpellTargetUnit" href="http://www.wowwiki.com/API_SpellTargetUnit">SpellTargetUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Casts  the spell awaiting target selection on the specified unit. </dd>
<dd> PROTECTED <a class="new" title="API ToggleSpellAutocast (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ToggleSpellAutocast&amp;action=edit&amp;redlink=1">ToggleSpellAutocast</a>(&#8221;spellName&#8221; | spellId, bookType) -  Toggles whether the specified spell should autocast or not. </dd>
<dd> <a title="API UnitCastingInfo" href="http://www.wowwiki.com/API_UnitCastingInfo">UnitCastingInfo</a>(&#8221;unit&#8221;) - Returns  spellName, nameSubtext, text, texture, startTime, endTime, isTradeSkill,  castID, interrupt . </dd>
<dd> <a class="new" title="API UnitChannelInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitChannelInfo&amp;action=edit&amp;redlink=1">UnitChannelInfo</a>(&#8221;unit&#8221;) - Returns spellName,  nameSubtext, text, texture, startTime, endTime, isTradeSkill, interrupt . </dd>
<dd> <a class="new" title="API UpdateSpells (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UpdateSpells&amp;action=edit&amp;redlink=1">UpdateSpells</a>() - Causes &#8220;SPELLS_CHANGED&#8221; event to  occur. </dd>
</dl>
<p><a id="System_Functions" rel="nofollow" name="System_Functions"></a></p>
<h3><span class="mw-headline"> System Functions </span></h3>
<dl>
<dd> <a title="API  ConsoleExec" href="http://www.wowwiki.com/API_ConsoleExec">ConsoleExec</a>(&#8221;command&#8221;) - Execute a console command. </dd>
<dd> <a class="new" title="API DetectWowMouse (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DetectWowMouse&amp;action=edit&amp;redlink=1">DetectWowMouse</a>() - Attempts to detect the world of  warcraft MMO mouse. </dd>
<dd> <a title="API  GetBuildInfo" href="http://www.wowwiki.com/API_GetBuildInfo">GetBuildInfo</a>() - Returns information about current  client build. </dd>
<dd> <a class="new" title="API geterrorhandler (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_geterrorhandler&amp;action=edit&amp;redlink=1">geterrorhandler</a>() - Returns the currently set error  handler. </dd>
<dd> <a title="API GetExistingLocales" href="http://www.wowwiki.com/API_GetExistingLocales">GetExistingLocales</a>() - Returns a list  of installed language packs. </dd>
<dd> <a title="API  GetFramerate" href="http://www.wowwiki.com/API_GetFramerate">GetFramerate</a>() - Returns the current framerate (full  precision) </dd>
<dd> <a title="API  GetGameTime" href="http://www.wowwiki.com/API_GetGameTime">GetGameTime</a>() - Returns the time in-game. </dd>
<dd> <a title="API  GetLocale" href="http://www.wowwiki.com/API_GetLocale">GetLocale</a>() - Returns client locale, example &#8216;enUS&#8217;. </dd>
<dd> <a title="API GetCursorPosition" href="http://www.wowwiki.com/API_GetCursorPosition">GetCursorPosition</a>() - Returns the  cursor&#8217;s position on the screen. </dd>
<dd> <a title="API  GetNetStats" href="http://www.wowwiki.com/API_GetNetStats">GetNetStats</a>() - Get bandwidth and latency network  information. </dd>
<dd> <a title="API  GetRealmName" href="http://www.wowwiki.com/API_GetRealmName">GetRealmName</a>() - returns the name of the server a user  is logged in to </dd>
<dd> <a title="API GetScreenHeight" href="http://www.wowwiki.com/API_GetScreenHeight">GetScreenHeight</a>() - Returns the height  of the window in pixels. </dd>
<dd> <a title="API  GetScreenWidth" href="http://www.wowwiki.com/API_GetScreenWidth">GetScreenWidth</a>() - Returns the width of the window  in pixels. </dd>
<dd> UI <a title="API  GetText" href="http://www.wowwiki.com/API_GetText">GetText</a>() - Used to localize some client text. </dd>
<dd> <a title="API  GetTime" href="http://www.wowwiki.com/API_GetTime">GetTime</a>() - Returns the system uptime in seconds  (millisecond precision). </dd>
<dd> <a class="mw-redirect" title="API  IsAltKeyDown" href="http://www.wowwiki.com/API_IsAltKeyDown">IsAltKeyDown</a>() - Returns true if  the alt key is currently depressed. </dd>
<dd> <a class="new" title="API InCinematic (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_InCinematic&amp;action=edit&amp;redlink=1">InCinematic</a>() </dd>
<dd> <a class="mw-redirect" title="API IsControlKeyDown" href="http://www.wowwiki.com/API_IsControlKeyDown">IsControlKeyDown</a>() -  Returns true if the control key is currently depressed. </dd>
<dd> <a class="new" title="API IsDebugBuild (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsDebugBuild&amp;action=edit&amp;redlink=1">IsDebugBuild</a>() - ? </dd>
<dd> <a class="new" title="API IsDesaturateSupported (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsDesaturateSupported&amp;action=edit&amp;redlink=1">IsDesaturateSupported</a>() - ? </dd>
<dd> <a class="new" title="API IsLeftAltKeyDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsLeftAltKeyDown&amp;action=edit&amp;redlink=1">IsLeftAltKeyDown</a>() - Returns true if the left alt key  is currently depressed. </dd>
<dd> <a class="new" title="API IsLeftControlKeyDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsLeftControlKeyDown&amp;action=edit&amp;redlink=1">IsLeftControlKeyDown</a>() - Returns true if the left  control key is currently depressed. </dd>
<dd> <a class="new" title="API IsLeftShiftKeyDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsLeftShiftKeyDown&amp;action=edit&amp;redlink=1">IsLeftShiftKeyDown</a>() - Returns true if the left shift  key is currently depressed. </dd>
<dd> <a title="API  IsLinuxClient" href="http://www.wowwiki.com/API_IsLinuxClient">IsLinuxClient</a>() - Boolean - Returns true if WoW is  being run on Linux. </dd>
<dd> <a class="new" title="API IsLoggedIn (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsLoggedIn&amp;action=edit&amp;redlink=1">IsLoggedIn</a>()  - Returns nil before the PLAYER_LOGIN event has fired, 1 afterwards. </dd>
<dd> <a title="API  IsMacClient" href="http://www.wowwiki.com/API_IsMacClient">IsMacClient</a>() - Returns true if WoW is being run on  Mac. </dd>
<dd> <a class="new" title="API IsRightAltKeyDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsRightAltKeyDown&amp;action=edit&amp;redlink=1">IsRightAltKeyDown</a>() - Returns true if the right alt  key is currently depressed. </dd>
<dd> <a class="new" title="API IsRightControlKeyDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsRightControlKeyDown&amp;action=edit&amp;redlink=1">IsRightControlKeyDown</a>() - Returns true if the right  control key is currently depressed. </dd>
<dd> <a class="new" title="API IsRightShiftKeyDown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsRightShiftKeyDown&amp;action=edit&amp;redlink=1">IsRightShiftKeyDown</a>() - Returns true if the right  shift key is currently depressed. </dd>
<dd> <a title="API  IsShiftKeyDown" href="http://www.wowwiki.com/API_IsShiftKeyDown">IsShiftKeyDown</a>() - Returns true if the shift key is  currently depressed. </dd>
<dd> <a class="new" title="API IsStereoVideoAvailable (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsStereoVideoAvailable&amp;action=edit&amp;redlink=1">IsStereoVideoAvailable</a>() - New in 3.0.8 </dd>
<dd> <a title="API IsWindowsClient" href="http://www.wowwiki.com/API_IsWindowsClient">IsWindowsClient</a>() - Returns true if WoW  is being run on Windows. </dd>
<dd> <a class="new" title="API OpeningCinematic (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_OpeningCinematic&amp;action=edit&amp;redlink=1">OpeningCinematic</a>() - Shows the opening movie for a  player&#8217;s race </dd>
<dd> <a title="API  PlayMusic" href="http://www.wowwiki.com/API_PlayMusic">PlayMusic</a>() - Plays the specified mp3. </dd>
<dd> <a title="API  PlaySound" href="http://www.wowwiki.com/API_PlaySound">PlaySound</a>() - Plays the specified built-in sound effect. </dd>
<dd> <a title="API  PlaySoundFile" href="http://www.wowwiki.com/API_PlaySoundFile">PlaySoundFile</a>() - Plays the specified sound file. </dd>
<dd> HW <a title="API  ReloadUI" href="http://www.wowwiki.com/API_ReloadUI">ReloadUI</a>() - Reloads the UI from source files </dd>
<dd> <a title="API  RepopMe" href="http://www.wowwiki.com/API_RepopMe">RepopMe</a>() - The &#8220;Release Spirit&#8221; button. Sends you to the  graveyard when dead. </dd>
<dd> <a title="API RequestTimePlayed" href="http://www.wowwiki.com/API_RequestTimePlayed">RequestTimePlayed</a>() - Request a  summary of time played from the server. </dd>
<dd> <a title="API  RestartGx" href="http://www.wowwiki.com/API_RestartGx">RestartGx</a>() - Restarts the graphical engine. Needed for  things such as resolution changes to take effect. </dd>
<dd> <a class="new" title="API RestoreVideoEffectsDefaults (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_RestoreVideoEffectsDefaults&amp;action=edit&amp;redlink=1">RestoreVideoEffectsDefaults</a>() </dd>
<dd> <a class="new" title="API RestoreVideoResolutionDefaults (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_RestoreVideoResolutionDefaults&amp;action=edit&amp;redlink=1">RestoreVideoResolutionDefaults</a>() </dd>
<dd> <a class="new" title="API RestoreVideoStereoDefaults (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_RestoreVideoStereoDefaults&amp;action=edit&amp;redlink=1">RestoreVideoStereoDefaults</a>() - New in 3.0.8 </dd>
<dd> <a title="API  RunScript" href="http://www.wowwiki.com/API_RunScript">RunScript</a>(&#8221;script&#8221;) - Execute &#8220;script&#8221; as a block of Lua  code. </dd>
<dd> <a title="API  Screenshot" href="http://www.wowwiki.com/API_Screenshot">Screenshot</a>() - Takes a screenshot. </dd>
<dd> UI <a title="API SecondsToTime" href="http://www.wowwiki.com/API_SecondsToTime">SecondsToTime</a> - Converts a number of  seconds into a readable days / hours / etc. formatted string. </dd>
<dd> <a title="API seterrorhandler" href="http://www.wowwiki.com/API_seterrorhandler">seterrorhandler</a>(function) - Set the  error handler to the given parameter. </dd>
<dd> <a class="new" title="API StopCinematic (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_StopCinematic&amp;action=edit&amp;redlink=1">StopCinematic</a>() </dd>
<dd> <a title="API  StopMusic" href="http://www.wowwiki.com/API_StopMusic">StopMusic</a>() - Stops the currently playing mp3. </dd>
<dd> UI <a title="API UIParentLoadAddOn" href="http://www.wowwiki.com/API_UIParentLoadAddOn">UIParentLoadAddOn</a>(&#8221;AddOnName&#8221;) - Loads  or Reloads the specified AddOn, and pops up an error message if it  fails to load for any reason. </dd>
<dd> UI <a title="API TakeScreenshot" href="http://www.wowwiki.com/API_TakeScreenshot">TakeScreenshot</a>() - Takes a screenshot. </dd>
<dd> UI <a title="API ERRORMESSAGE" href="http://www.wowwiki.com/API_ERRORMESSAGE">_ERRORMESSAGE</a>(value) - Displays the script  error dialog with optional text </dd>
<dd> <a class="new" title="API debuginfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_debuginfo&amp;action=edit&amp;redlink=1">debuginfo</a>()  - Output win32 debug text. Freeware debug message viewer: <a class="external text" title="http://www.sysinternals.com/Utilities/DebugView.html" rel="nofollow" href="http://www.sysinternals.com/Utilities/DebugView.html">DebugView</a> (Has no effect on live server.) </dd>
<dd> <a title="API  getglobal" href="http://www.wowwiki.com/API_getglobal">getglobal</a>(&#8221;object&#8221;) - Given an object name will return  the object itself. </dd>
<dd> UI <a title="API  message" href="http://www.wowwiki.com/API_message">message</a>(&#8221;text&#8221;) - Displays a message box with your text  message and an &#8220;Okay&#8221; button. </dd>
<dd> <a title="API  setglobal" href="http://www.wowwiki.com/API_setglobal">setglobal</a>(&#8221;object&#8221;, value) - Set the global &#8220;object&#8221; to  the given value. </dd>
</dl>
<p><a id="Talent_Functions" rel="nofollow" name="Talent_Functions"></a></p>
<h3><span class="mw-headline"> Talent Functions </span></h3>
<dl>
<dd> <a title="API BuyTrainerService" href="http://www.wowwiki.com/API_BuyTrainerService">BuyTrainerService</a>(index) - Used for  buying new/upgrading professions, profession items and class skills. </dd>
<dd> <a class="new" title="API CheckTalentMasterDist (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CheckTalentMasterDist&amp;action=edit&amp;redlink=1">CheckTalentMasterDist</a>() - Returns nil if the player  is too far away from the talent master to use the talent methods. </dd>
<dd> <a class="new" title="API ConfirmTalentWipe (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ConfirmTalentWipe&amp;action=edit&amp;redlink=1">ConfirmTalentWipe</a>() - Confirms freeing all talent  points. </dd>
<dd> <a title="API GetActiveTalentGroup" href="http://www.wowwiki.com/API_GetActiveTalentGroup">GetActiveTalentGroup</a>(isInspect,isPet)  - Returns the index of the current talent group </dd>
<dd> <a title="API GetNumTalentTabs" href="http://www.wowwiki.com/API_GetNumTalentTabs">GetNumTalentTabs</a>([inspect[,pet]]) -  return number of talent trees (usually 3). The inspect argument is new  with 2.3. </dd>
<dd> <a title="API  GetNumTalents" href="http://www.wowwiki.com/API_GetNumTalents">GetNumTalents</a>(tabIndex[,inspect[,pet]]) - return  number of talents in tree. The inspect argument is new with 2.3. </dd>
<dd> <a title="API  GetTalentInfo" href="http://www.wowwiki.com/API_GetTalentInfo">GetTalentInfo</a>(tabIndex,talentIndex[,inspect][,isPet][,groupIndex])  - return name, iconTexture, tier, column, rank, maxRank, isExceptional,  meetsPrereq. [,inspect][,isPet] added in 2.3. [,groupIndex] added in  3.1.0. </dd>
<dd> <a class="new" title="API GetTalentLink (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTalentLink&amp;action=edit&amp;redlink=1">GetTalentLink</a>(tabIndex,talentIndex[,isInspect][,isPet][,groupIndex][,  isPreview]) - Returns the talent link. (2.4) [,isInspect][,isPet] added  in 3.0.1. groupIndex and isPreview added in 3.1.0. </dd>
<dd> <a title="API GetTalentPrereqs" href="http://www.wowwiki.com/API_GetTalentPrereqs">GetTalentPrereqs</a>(tabIndex,talentIndex[,inspect]  [, groupIndex]) - return tier, column, isLearnable. The inspect  argument is new with 2.3, groupIndex in 3.1. </dd>
<dd> <a title="API GetTalentTabInfo" href="http://www.wowwiki.com/API_GetTalentTabInfo">GetTalentTabInfo</a>(tabIndex[,inspect][,isPet][,  groupIndex]) - return name, iconTexture, pointsSpent, background, and  previewPointsSpent. The inspect argument is new with 2.3, the isPet  argument with 3.0.2; groupIndex in 3.1. </dd>
<dd> <a title="API  LearnTalent" href="http://www.wowwiki.com/API_LearnTalent">LearnTalent</a>(tabIndex,talentIndex) - Learns a talent  from the talent tree. </dd>
<dd> <a class="new" title="API SetActiveTalentGroup (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetActiveTalentGroup&amp;action=edit&amp;redlink=1">SetActiveTalentGroup</a>(talentGroupIndex) - switch the  character&#8217;s talents to the specified talent group </dd>
<dd> <a class="new" title="API GetNumTalentGroups (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumTalentGroups&amp;action=edit&amp;redlink=1">GetNumTalentGroups</a>(isInspect, isPet) - returns the  number of available specialization groups for the specified  character/pet. (New in 3.1) </dd>
<dd> <a title="API GetActiveTalentGroup" href="http://www.wowwiki.com/API_GetActiveTalentGroup">GetActiveTalentGroup</a>(isInspect,  isPet) - returns the active specialization for the specified  character/pet. (New in 3.1) </dd>
</dl>
<p>Talent points preview (assignment before spending) was introduced in  3.1.0:</p>
<dl>
<dd> <a class="new" title="API AddPreviewTalentPoints (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_AddPreviewTalentPoints&amp;action=edit&amp;redlink=1">AddPreviewTalentPoints</a>(tabIndex, talentIndex,  points[, isPet[, groupIndex]]) - Add talent points to the previewed  talent build. </dd>
<dd> <a class="new" title="API GetGroupPreviewTalentPointsSpent (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetGroupPreviewTalentPointsSpent&amp;action=edit&amp;redlink=1">GetGroupPreviewTalentPointsSpent</a>(isPet[,  groupIndex]) - Returns the total number of points spent in a spec. </dd>
<dd> <a class="new" title="API GetPreviewTalentPointsSpent (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetPreviewTalentPointsSpent&amp;action=edit&amp;redlink=1">GetPreviewTalentPointsSpent</a>(tabIndex, isPet  [,groupIndex]) - Returns the number of points spent. </dd>
<dd> <a class="new" title="API GetUnspentTalentPoints (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetUnspentTalentPoints&amp;action=edit&amp;redlink=1">GetUnspentTalentPoints</a>([isInspect [,isPet)]] -  Returns the number of unspent talent points. </dd>
<dd> <a class="new" title="API LearnPreviewTalents (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_LearnPreviewTalents&amp;action=edit&amp;redlink=1">LearnPreviewTalents</a>(isPet) - Learns currently  previewed talents. </dd>
<dd> <a class="new" title="API ResetGroupPreviewTalentPoints (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResetGroupPreviewTalentPoints&amp;action=edit&amp;redlink=1">ResetGroupPreviewTalentPoints</a>(isPet[,groupIndex])  - Unassigns all preview talent points. </dd>
<dd> <a class="new" title="API ResetPreviewTalentPoints (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ResetPreviewTalentPoints&amp;action=edit&amp;redlink=1">ResetPreviewTalentPoints</a>(tabIndex, isPet  [,groupIndex]) - Unassigns preview talent points in a specific tab. </dd>
</dl>
<p><a id="Targeting_Functions" rel="nofollow" name="Targeting_Functions"></a></p>
<h3><span class="mw-headline"> Targeting Functions </span></h3>
<dl>
<dd> PROTECTED <a title="API AssistUnit" href="http://www.wowwiki.com/API_AssistUnit">AssistUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) -  Instructs your character to assist the specified unit. </dd>
<dd> PROTECTED <a title="API AttackTarget" href="http://www.wowwiki.com/API_AttackTarget">AttackTarget</a>() - Attacks the targetted  unit. </dd>
<dd> PROTECTED <a title="API ClearTarget" href="http://www.wowwiki.com/API_ClearTarget">ClearTarget</a>() - Clears the selected target. </dd>
<dd> <a class="new" title="API ClickTargetTradeButton (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClickTargetTradeButton&amp;action=edit&amp;redlink=1">ClickTargetTradeButton</a>(index) </dd>
<dd> PROTECTED <a title="API TargetLastEnemy" href="http://www.wowwiki.com/API_TargetLastEnemy">TargetLastEnemy</a>() - Selects the last  targetted enemy as the current target. </dd>
<dd> PROTECTED <a title="API  TargetLastTarget" href="http://www.wowwiki.com/API_TargetLastTarget">TargetLastTarget</a>() - Selects the last target as  the current target. </dd>
<dd> PROTECTED <a title="API  TargetNearestEnemy" href="http://www.wowwiki.com/API_TargetNearestEnemy">TargetNearestEnemy</a>([reverseFlag]) - Selects the  nearest enemy as the current target. </dd>
<dd> PROTECTED <a title="API  TargetNearestFriend" href="http://www.wowwiki.com/API_TargetNearestFriend">TargetNearestFriend</a>() - Selects the nearest  friendly unit as the current target. </dd>
<dd> PROTECTED <a class="new" title="API TargetNearestPartyMember (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TargetNearestPartyMember&amp;action=edit&amp;redlink=1">TargetNearestPartyMember</a>() - Selects the nearest  Party member as the current target. </dd>
<dd> PROTECTED <a class="new" title="API TargetNearestRaidMember (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TargetNearestRaidMember&amp;action=edit&amp;redlink=1">TargetNearestRaidMember</a>() - Selects the nearest Raid  member as the current target. </dd>
<dd> PROTECTED <a title="API TargetUnit" href="http://www.wowwiki.com/API_TargetUnit">TargetUnit</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Selects  the specified unit as the current target. </dd>
</dl>
<p><a id="Taxi_Functions" rel="nofollow" name="Taxi_Functions"></a></p>
<h3><span class="mw-headline"> Taxi Functions </span></h3>
<dl>
<dd> <a title="API  CloseTaxiMap" href="http://www.wowwiki.com/API_CloseTaxiMap">CloseTaxiMap</a>() - Closes the Flightpath Map. </dd>
<dd> <a class="new" title="API DrawRouteLine (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DrawRouteLine&amp;action=edit&amp;redlink=1">DrawRouteLine</a>(texture, canvas, startx, starty, endx,  endy, width, relPoint) - Draws a line. </dd>
<dd> <a class="new" title="API GetNumRoutes (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumRoutes&amp;action=edit&amp;redlink=1">GetNumRoutes</a>(slot) - Gets the number of hops between  current-slot and slot. </dd>
<dd> <a title="API  NumTaxiNodes" href="http://www.wowwiki.com/API_NumTaxiNodes">NumTaxiNodes</a>() - Returns the number of nodes (flight  paths) on an open taxi map. </dd>
<dd> <a title="API  SetTaxiMap" href="http://www.wowwiki.com/API_SetTaxiMap">SetTaxiMap</a>(frame) - ?. </dd>
<dd> <a title="API  TakeTaxiNode" href="http://www.wowwiki.com/API_TakeTaxiNode">TakeTaxiNode</a>(slot) - Takes the named taxi node. </dd>
<dd> <a title="API  TaxiNodeCost" href="http://www.wowwiki.com/API_TaxiNodeCost">TaxiNodeCost</a>(slot) - Returns the cost in copper of a  node. </dd>
<dd> <a title="API TaxiNodeGetType" href="http://www.wowwiki.com/API_TaxiNodeGetType">TaxiNodeGetType</a>(slot) - Returns the  status of a node. </dd>
<dd> <a title="API  TaxiGetSrcX" href="http://www.wowwiki.com/API_TaxiGetSrcX">TaxiGetSrcX</a>(slot, hop) - ?. </dd>
<dd> <a title="API  TaxiGetSrcY" href="http://www.wowwiki.com/API_TaxiGetSrcY">TaxiGetSrcY</a>(slot, hop) - ?. </dd>
<dd> <a title="API  TaxiGetDestX" href="http://www.wowwiki.com/API_TaxiGetDestX">TaxiGetDestX</a>(slot, hop) - ?. </dd>
<dd> <a title="API  TaxiGetDestY" href="http://www.wowwiki.com/API_TaxiGetDestY">TaxiGetDestY</a>(slot, hop) - ?. </dd>
<dd> <a class="new" title="API TaxiNodeSetCurrent (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_TaxiNodeSetCurrent&amp;action=edit&amp;redlink=1">TaxiNodeSetCurrent</a>(slot) - Renumbers slots based on  new current slot. </dd>
<dd> <a title="API  TaxiNodeName" href="http://www.wowwiki.com/API_TaxiNodeName">TaxiNodeName</a>(slot) - Returns the name of a node. </dd>
<dd> <a title="API TaxiNodePosition" href="http://www.wowwiki.com/API_TaxiNodePosition">TaxiNodePosition</a>(slot) - Returns  position (x,y) of node on the map. </dd>
<dd> <a title="API  UnitOnTaxi" href="http://www.wowwiki.com/API_UnitOnTaxi">UnitOnTaxi</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) - Returns 1 if unit is on a taxi. </dd>
</dl>
<p><a id="Toggle_Functions" rel="nofollow" name="Toggle_Functions"></a></p>
<h3><span class="mw-headline"> Toggle Functions </span></h3>
<dl>
<dd> UI <a title="API ToggleBackpack" href="http://www.wowwiki.com/API_ToggleBackpack">ToggleBackpack</a>() - Toggles your backpack  open/closed. </dd>
<dd> UI <a title="API  ToggleBag" href="http://www.wowwiki.com/API_ToggleBag">ToggleBag</a>(<a title="BagId" href="http://www.wowwiki.com/BagId">bagID</a>) - Opens or closes the specified bag. </dd>
<dd> UI <a title="API ToggleCharacter" href="http://www.wowwiki.com/API_ToggleCharacter">ToggleCharacter</a>(index) - Toggles the  character pane to the specified frame. </dd>
<dd> UI <a title="API ToggleCombatLog" href="http://www.wowwiki.com/API_ToggleCombatLog">ToggleCombatLog</a> - Opens/closes the  combat log. </dd>
<dd> UI <a title="API ToggleFramerate" href="http://www.wowwiki.com/API_ToggleFramerate">ToggleFramerate</a> - Show/Hide the FPS. </dd>
<dd> UI <a title="API ToggleFriendsFrame" href="http://www.wowwiki.com/API_ToggleFriendsFrame">ToggleFriendsFrame</a>([tabNumber]) -  Opens/closes the friends pane (possibly on a specific tab). </dd>
<dd> PROTECTED UI <a title="API  ToggleGameMenu" href="http://www.wowwiki.com/API_ToggleGameMenu">ToggleGameMenu</a> - Opens/closes the game menu.  Triggers protected functions. </dd>
<dd> UI <a class="new" title="API ToggleHelpFrame (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ToggleHelpFrame&amp;action=edit&amp;redlink=1">ToggleHelpFrame</a> - Opens the Help Request frame. </dd>
<dd> UI <a class="new" title="API ToggleKeyRing (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ToggleKeyRing&amp;action=edit&amp;redlink=1">ToggleKeyRing</a> - Opens/closes the key ring. </dd>
<dd> UI <a title="API ToggleMinimap" href="http://www.wowwiki.com/API_ToggleMinimap">ToggleMinimap</a> - Turns the minimap display  on/off. </dd>
<dd> UI <a title="API TogglePVPFrame" href="http://www.wowwiki.com/API_TogglePVPFrame">TogglePVPFrame</a> - Opens/closes the PvP  frame. </dd>
<dd> UI <a title="API ToggleSpellBook" href="http://www.wowwiki.com/API_ToggleSpellBook">ToggleSpellBook</a>(&#8221;bookType&#8221;) - Shows the  spellbook. Can show your spells or your pet&#8217;s. </dd>
<dd> UI <a title="API ToggleTalentFrame" href="http://www.wowwiki.com/API_ToggleTalentFrame">ToggleTalentFrame</a> - Opens the Talent  frame. </dd>
<dd> UI <a class="new" title="API ToggleAchievementFrame (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ToggleAchievementFrame&amp;action=edit&amp;redlink=1">ToggleAchievementFrame</a> - Shows the achievements  frame. </dd>
</dl>
<p><a id="TradeSkill_Functions" rel="nofollow" name="TradeSkill_Functions"></a></p>
<h3><span class="mw-headline"> TradeSkill Functions </span></h3>
<dl>
<dd> <a title="API  CloseTradeSkill" href="http://www.wowwiki.com/API_CloseTradeSkill">CloseTradeSkill</a>() - Closes an open trade skill  window. </dd>
<dd> <a class="new" title="API CollapseTradeSkillSubClass (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CollapseTradeSkillSubClass&amp;action=edit&amp;redlink=1">CollapseTradeSkillSubClass</a>(index) - Collapses  the specified subclass header row. </dd>
<dd> <a title="API  DoTradeSkill" href="http://www.wowwiki.com/API_DoTradeSkill">DoTradeSkill</a>(index[, repeatTimes]) - Performs the  tradeskill a specified # of times. </dd>
<dd> <a class="new" title="API ExpandTradeSkillSubClass (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ExpandTradeSkillSubClass&amp;action=edit&amp;redlink=1">ExpandTradeSkillSubClass</a>(index) - Expands the  specified subclass header row. </dd>
<dd> <a title="API GetFirstTradeSkill" href="http://www.wowwiki.com/API_GetFirstTradeSkill">GetFirstTradeSkill</a>() - Returns the  index of the first non-header trade skill entry. </dd>
<dd> <a title="API GetNumTradeSkills" href="http://www.wowwiki.com/API_GetNumTradeSkills">GetNumTradeSkills</a>() - Get the number  of trade skill entries (including headers). </dd>
<dd> <a class="new" title="API GetTradeSkillCooldown (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTradeSkillCooldown&amp;action=edit&amp;redlink=1">GetTradeSkillCooldown</a>(index) - Returns the number of  seconds left for a skill to cooldown. </dd>
<dd> <a title="API GetTradeSkillDescription" href="http://www.wowwiki.com/API_GetTradeSkillDescription">GetTradeSkillDescription</a>(index)  - Returns the description text of the indicated trade skill. </dd>
<dd> <a class="new" title="API GetTradeSkillIcon (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTradeSkillIcon&amp;action=edit&amp;redlink=1">GetTradeSkillIcon</a>(index) - Returns the texture name  of a tradeskill&#8217;s icon. </dd>
<dd> <a title="API GetTradeSkillInfo" href="http://www.wowwiki.com/API_GetTradeSkillInfo">GetTradeSkillInfo</a>(index) - Retrieves  information about a specific trade skill. </dd>
<dd> <a title="API  GetTradeSkillInvSlotFilter" href="http://www.wowwiki.com/API_GetTradeSkillInvSlotFilter">GetTradeSkillInvSlotFilter</a>(slotIndex) -  Returns 1 if items corresponding to slotIndex are currently visible,  otherwise nil. </dd>
<dd> <a title="API GetTradeSkillInvSlots" href="http://www.wowwiki.com/API_GetTradeSkillInvSlots">GetTradeSkillInvSlots</a>() - Returns a  list of the available inventory slot types. </dd>
<dd> <a title="API GetTradeSkillItemLink" href="http://www.wowwiki.com/API_GetTradeSkillItemLink">GetTradeSkillItemLink</a>(index) -  Returns the <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for a trade skill item. </dd>
<dd> <a title="API GetTradeSkillLine" href="http://www.wowwiki.com/API_GetTradeSkillLine">GetTradeSkillLine</a>() - Returns  information about the selected skill line. </dd>
<dd> <a title="API GetTradeSkillListLink" href="http://www.wowwiki.com/API_GetTradeSkillListLink">GetTradeSkillListLink</a>() - Returns  the <a title="TradeSkillLink" href="http://www.wowwiki.com/TradeSkillLink">TradeSkillLink</a> for a trade skill. </dd>
<dd> <a title="API GetTradeSkillNumMade" href="http://www.wowwiki.com/API_GetTradeSkillNumMade">GetTradeSkillNumMade</a>(index) - Gets  the number of items made in a single use of a skill. </dd>
<dd> <a title="API GetTradeSkillNumReagents" href="http://www.wowwiki.com/API_GetTradeSkillNumReagents">GetTradeSkillNumReagents</a>(tradeSkillRecipeId)  - Returns the number of different reagents required. </dd>
<dd> <a title="API GetTradeSkillReagentInfo" href="http://www.wowwiki.com/API_GetTradeSkillReagentInfo">GetTradeSkillReagentInfo</a>(tradeSkillRecipeId,  reagentId) - Returns data on the reagent, including a count of the  player&#8217;s inventory. </dd>
<dd> <a title="API GetTradeSkillReagentItemLink" href="http://www.wowwiki.com/API_GetTradeSkillReagentItemLink">GetTradeSkillReagentItemLink</a>(index,  reagentId) - Returns the <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for one of the reagents needed to craft  the given item </dd>
<dd> <a title="API GetTradeSkillRecipeLink" href="http://www.wowwiki.com/API_GetTradeSkillRecipeLink">GetTradeSkillRecipeLink</a>(index) -  Returns the <a title="EnchantLink" href="http://www.wowwiki.com/EnchantLink">EnchantLink</a> for a trade skill. </dd>
<dd> <a title="API  GetTradeSkillSelectionIndex" href="http://www.wowwiki.com/API_GetTradeSkillSelectionIndex">GetTradeSkillSelectionIndex</a>() -  Returns the Id of the currently selected trade skill, 0 if none  selected. </dd>
<dd> <a title="API  GetTradeSkillSubClassFilter" href="http://www.wowwiki.com/API_GetTradeSkillSubClassFilter">GetTradeSkillSubClassFilter</a>(filterIndex)  - Returns 1 if items corresponding to filterIndex are currently  visible, otherwise nil. </dd>
<dd> <a title="API GetTradeSkillSubClasses" href="http://www.wowwiki.com/API_GetTradeSkillSubClasses">GetTradeSkillSubClasses</a>() -  Returns a list of the valid subclasses. </dd>
<dd> <a title="API GetTradeSkillTools" href="http://www.wowwiki.com/API_GetTradeSkillTools">GetTradeSkillTools</a>(index) - Returns  information about the tools needed for a tradeskill. </dd>
<dd> <a title="API GetTradeskillRepeatCount" href="http://www.wowwiki.com/API_GetTradeskillRepeatCount">GetTradeskillRepeatCount</a>() -  Returns the number of times the current item is being crafted. </dd>
<dd> <a title="API IsTradeskillTrainer" href="http://www.wowwiki.com/API_IsTradeskillTrainer">IsTradeskillTrainer</a>() - Returns 1 if  trainer is for a tradeskill. </dd>
<dd> <a title="API IsTradeSkillLinked" href="http://www.wowwiki.com/API_IsTradeSkillLinked">IsTradeSkillLinked</a>() - Returns true  if you&#8217;re inspecting a tradeskill link rather then looking at your own  tradeskills </dd>
<dd> <a class="new" title="API SelectTradeSkill (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SelectTradeSkill&amp;action=edit&amp;redlink=1">SelectTradeSkill</a>(index) - Select a specific trade  skill in the list. </dd>
<dd> <a title="API  SetTradeSkillInvSlotFilter" href="http://www.wowwiki.com/API_SetTradeSkillInvSlotFilter">SetTradeSkillInvSlotFilter</a>(slotIndex,  onOff[, exclusive] ) - Set the inventory slot type filter. </dd>
<dd> <a title="API  SetTradeSkillSubClassFilter" href="http://www.wowwiki.com/API_SetTradeSkillSubClassFilter">SetTradeSkillSubClassFilter</a>(slotIndex,  onOff[,exclusive] )  - Set the subclass filter. </dd>
<dd> <a class="new" title="API StopTradeSkillRepeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_StopTradeSkillRepeat&amp;action=edit&amp;redlink=1">StopTradeSkillRepeat</a>() - Stops creating additional  queued items. </dd>
</dl>
<p><a id="Tracking_Functions" rel="nofollow" name="Tracking_Functions"></a></p>
<h3><span class="mw-headline"> Tracking Functions </span></h3>
<dl>
<dd> <a title="API GetNumTrackingTypes" href="http://www.wowwiki.com/API_GetNumTrackingTypes">GetNumTrackingTypes</a>() - Returns  number of available tracking methods. </dd>
<dd> <a title="API GetTrackingTexture" href="http://www.wowwiki.com/API_GetTrackingTexture">GetTrackingTexture</a>() - Return the  texture of the current tracking buff, if one is active. </dd>
<dd> <a title="API GetTrackingInfo" href="http://www.wowwiki.com/API_GetTrackingInfo">GetTrackingInfo</a>(id) - Retrieves tracking  information from specified id. </dd>
<dd> <a title="API  SetTracking" href="http://www.wowwiki.com/API_SetTracking">SetTracking</a>(id) - Selects a tracking method. </dd>
</dl>
<p><a id="Trading_Functions" rel="nofollow" name="Trading_Functions"></a></p>
<h3><span class="mw-headline"> Trading Functions </span></h3>
<dl>
<dd> HW <a title="API  AcceptTrade" href="http://www.wowwiki.com/API_AcceptTrade">AcceptTrade</a>() - A pending trade will be accepted. </dd>
<dd> <a title="API  AddTradeMoney" href="http://www.wowwiki.com/API_AddTradeMoney">AddTradeMoney</a>() - Adds the money dropped into the  player&#8217;s trade frame. </dd>
<dd> <a title="API  CancelTrade" href="http://www.wowwiki.com/API_CancelTrade">CancelTrade</a>() - Declines the offer to trade with the  other player. </dd>
<dd> <a class="new" title="API CancelTradeAccept (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CancelTradeAccept&amp;action=edit&amp;redlink=1">CancelTradeAccept</a>() - Cancels the trade attempt which  required an accept. </dd>
<dd> <a class="new" title="API ClickTargetTradeButton (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClickTargetTradeButton&amp;action=edit&amp;redlink=1">ClickTargetTradeButton</a>(index) </dd>
<dd> <a class="new" title="API ClickTradeButton (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ClickTradeButton&amp;action=edit&amp;redlink=1">ClickTradeButton</a>(index) - Equivalent of a mouseclick  on the trade window buttons [1-7] </dd>
<dd> <a title="API  CloseTrade" href="http://www.wowwiki.com/API_CloseTrade">CloseTrade</a>() - Closes the trade. </dd>
<dd> <a title="API GetPlayerTradeMoney" href="http://www.wowwiki.com/API_GetPlayerTradeMoney">GetPlayerTradeMoney</a> - Returns the  amount of money the player has in the trade window. </dd>
<dd> <a title="API GetTargetTradeMoney" href="http://www.wowwiki.com/API_GetTargetTradeMoney">GetTargetTradeMoney</a> - Returns the  amount of money in the trade frame of the target player. </dd>
<dd> <a class="new" title="API GetTradePlayerItemInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTradePlayerItemInfo&amp;action=edit&amp;redlink=1">GetTradePlayerItemInfo</a>(id) - Returns information  about a trade item. </dd>
<dd> <a title="API GetTradePlayerItemLink" href="http://www.wowwiki.com/API_GetTradePlayerItemLink">GetTradePlayerItemLink</a>(id) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the given item in your side of the trade window (if open) </dd>
<dd> <a title="API GetTradeTargetItemInfo" href="http://www.wowwiki.com/API_GetTradeTargetItemInfo">GetTradeTargetItemInfo</a>(id) -  Returns information about a trade item. </dd>
<dd> <a title="API GetTradeTargetItemLink" href="http://www.wowwiki.com/API_GetTradeTargetItemLink">GetTradeTargetItemLink</a>(id) -  Returns an <a title="ItemLink" href="http://www.wowwiki.com/ItemLink">itemLink</a> for the given item in the other player&#8217;s side of the trade window (if  open) </dd>
<dd> <a title="API  InitiateTrade" href="http://www.wowwiki.com/API_InitiateTrade">InitiateTrade</a>(UnitId) - Asks the specified unit to  trade. </dd>
<dd> <a title="API PickupPlayerMoney" href="http://www.wowwiki.com/API_PickupPlayerMoney">PickupPlayerMoney</a>(copper) - Picks up  an amount of money from the player. </dd>
<dd> <a title="API PickupTradeMoney" href="http://www.wowwiki.com/API_PickupTradeMoney">PickupTradeMoney</a>(copper) - Picks up an  amount of money from the player&#8217;s trade offer. </dd>
<dd> <a title="API  SetTradeMoney" href="http://www.wowwiki.com/API_SetTradeMoney">SetTradeMoney</a>(copper) - Sets the amount of money  offered as part of the player&#8217;s trade offer. </dd>
<dd> <a title="API ReplaceTradeEnchant" href="http://www.wowwiki.com/API_ReplaceTradeEnchant">ReplaceTradeEnchant</a>() - Confirm the  replacement of an enchantment via trade. </dd>
</dl>
<p><a id="Training_Functions" rel="nofollow" name="Training_Functions"></a></p>
<h3><span class="mw-headline"> Training Functions </span></h3>
<dl>
<dd> <a title="API BuyTrainerService" href="http://www.wowwiki.com/API_BuyTrainerService">BuyTrainerService</a>(index) - Used for  buying new/upgrading professions, profession items and class skills. </dd>
<dd> <a title="API  CloseTrainer" href="http://www.wowwiki.com/API_CloseTrainer">CloseTrainer</a>() - Closes the trainer window. </dd>
<dd> <a title="API CollapseTrainerSkillLine" href="http://www.wowwiki.com/API_CollapseTrainerSkillLine">CollapseTrainerSkillLine</a>(index)  - Collapses a header, hiding all spells below it. </dd>
<dd> <a title="API ExpandTrainerSkillLine" href="http://www.wowwiki.com/API_ExpandTrainerSkillLine">ExpandTrainerSkillLine</a>(index) -  Expands a header, showing all spells below it. </dd>
<dd> <a title="API GetNumTrainerServices" href="http://www.wowwiki.com/API_GetNumTrainerServices">GetNumTrainerServices</a>() - Get the  number of the trainer services. </dd>
<dd> <a title="API GetTrainerGreetingText" href="http://www.wowwiki.com/API_GetTrainerGreetingText">GetTrainerGreetingText</a>() - Get  the trainer&#8217;s greeting text. </dd>
<dd> <a title="API GetTrainerSelectionIndex" href="http://www.wowwiki.com/API_GetTrainerSelectionIndex">GetTrainerSelectionIndex</a>() -  Get the index of the selected trainer service. </dd>
<dd> <a title="API  GetTrainerServiceAbilityReq" href="http://www.wowwiki.com/API_GetTrainerServiceAbilityReq">GetTrainerServiceAbilityReq</a>(trainerIndex,reqIndex)  - Used for displaying the requirements to learn a new profession,  profession skill or class skill. </dd>
<dd> <a title="API GetTrainerServiceCost" href="http://www.wowwiki.com/API_GetTrainerServiceCost">GetTrainerServiceCost</a>(index) -  Returns the cost of a specific trainer service. </dd>
<dd> <a title="API GetTrainerServiceDescription" href="http://www.wowwiki.com/API_GetTrainerServiceDescription">GetTrainerServiceDescription</a>(index)  - Returns the description of a specific trainer service. </dd>
<dd> <a title="API GetTrainerServiceIcon" href="http://www.wowwiki.com/API_GetTrainerServiceIcon">GetTrainerServiceIcon</a>(index) -  Returns icon texture for a trainer service. </dd>
<dd> <a title="API GetTrainerServiceInfo" href="http://www.wowwiki.com/API_GetTrainerServiceInfo">GetTrainerServiceInfo</a>(index) -  Returns information about a trainer service. </dd>
<dd> <a title="API GetTrainerServiceItemLink" href="http://www.wowwiki.com/API_GetTrainerServiceItemLink">GetTrainerServiceItemLink</a>(index)  - Returns an item link for a trainer service. </dd>
<dd> <a title="API GetTrainerServiceLevelReq" href="http://www.wowwiki.com/API_GetTrainerServiceLevelReq">GetTrainerServiceLevelReq</a>(index)  - Get the required level to learn the skill. </dd>
<dd> <a class="new" title="API GetTrainerServiceNumAbilityReq (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTrainerServiceNumAbilityReq&amp;action=edit&amp;redlink=1">GetTrainerServiceNumAbilityReq</a> - Get the  maximum number of requirements that <a title="API  GetTrainerServiceAbilityReq" href="http://www.wowwiki.com/API_GetTrainerServiceAbilityReq">GetTrainerServiceAbilityReq</a>() has. </dd>
<dd> <a title="API  GetTrainerServiceSkillLine" href="http://www.wowwiki.com/API_GetTrainerServiceSkillLine">GetTrainerServiceSkillLine</a>(index) - ?. </dd>
<dd> <a title="API GetTrainerServiceSkillReq" href="http://www.wowwiki.com/API_GetTrainerServiceSkillReq">GetTrainerServiceSkillReq</a>(index)  - Returns a String and Variable for the requirements of a specific  trainer service. </dd>
<dd> <a class="new" title="API GetTrainerServiceStepIncrease (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTrainerServiceStepIncrease&amp;action=edit&amp;redlink=1">GetTrainerServiceStepIncrease</a>() - ?. </dd>
<dd> <a class="new" title="API GetTrainerServiceStepReq (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTrainerServiceStepReq&amp;action=edit&amp;redlink=1">GetTrainerServiceStepReq</a> - ?. </dd>
<dd> <a title="API  GetTrainerServiceTypeFilter" href="http://www.wowwiki.com/API_GetTrainerServiceTypeFilter">GetTrainerServiceTypeFilter</a>(&#8221;filter&#8221;) -  Returns the status of a skill filter in the trainer window. </dd>
<dd> <a class="new" title="API GetTrainerSkillLineFilter (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTrainerSkillLineFilter&amp;action=edit&amp;redlink=1">GetTrainerSkillLineFilter</a>() - ?; </dd>
<dd> <a class="new" title="API GetTrainerSkillLines (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetTrainerSkillLines&amp;action=edit&amp;redlink=1">GetTrainerSkillLines</a>() - ?; </dd>
<dd> <a title="API IsTradeskillTrainer" href="http://www.wowwiki.com/API_IsTradeskillTrainer">IsTradeskillTrainer</a>() - Returns 1 if  trainer is for a tradeskill. </dd>
<dd> <a class="new" title="API IsTrainerServiceSkillStep (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsTrainerServiceSkillStep&amp;action=edit&amp;redlink=1">IsTrainerServiceSkillStep</a>() - ?. </dd>
<dd> <a class="new" title="API OpenTrainer (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_OpenTrainer&amp;action=edit&amp;redlink=1">OpenTrainer</a>() - ?. </dd>
<dd> <a title="API SelectTrainerService" href="http://www.wowwiki.com/API_SelectTrainerService">SelectTrainerService</a> - ?. </dd>
<dd> <a title="API  SetTrainerServiceTypeFilter" href="http://www.wowwiki.com/API_SetTrainerServiceTypeFilter">SetTrainerServiceTypeFilter</a>(&#8221;filter&#8221;,state)  - Sets the status of a skill filter in the trainer window. </dd>
<dd> <a class="new" title="API SetTrainerSkillLineFilter (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetTrainerSkillLineFilter&amp;action=edit&amp;redlink=1">SetTrainerSkillLineFilter</a>() - ?. </dd>
</dl>
<p><a id="Unit_Functions" rel="nofollow" name="Unit_Functions"></a></p>
<h3><span class="mw-headline"> Unit Functions </span></h3>
<p>These are functions which act on one or more units. Units are  identified by <a title="UnitId" href="http://www.wowwiki.com/UnitId">UnitIds</a>.</p>
<dl>
<dd> PROTECTED <a title="API AssistUnit" href="http://www.wowwiki.com/API_AssistUnit">AssistUnit</a>(&#8221;unit&#8221;) - Instructs your character  to assist the specified unit. </dd>
<dd> <a title="API CheckInteractDistance" href="http://www.wowwiki.com/API_CheckInteractDistance">CheckInteractDistance</a>(&#8221;unit&#8221;,distIndex) </dd>
<dd> <a title="API  DropItemOnUnit" href="http://www.wowwiki.com/API_DropItemOnUnit">DropItemOnUnit</a>(&#8221;unit&#8221;) - Drops an item from the  cursor onto a unit. </dd>
<dd> <a title="API  FollowUnit" href="http://www.wowwiki.com/API_FollowUnit">FollowUnit</a>(&#8221;unit&#8221;) - Follow an ally with the specified  UnitID </dd>
<dd> PROTECTED <a title="API FocusUnit" href="http://www.wowwiki.com/API_FocusUnit">FocusUnit</a>(&#8221;unit&#8221;) - Sets your unit for focus.  &#8212; Protected with Patch 2.0! </dd>
<dd> PROTECTED <a title="API ClearFocus" href="http://www.wowwiki.com/API_ClearFocus">ClearFocus</a>() - Removes any focus you may have  set. </dd>
<dd> UI <a title="API  GetUnitName" href="http://www.wowwiki.com/API_GetUnitName">GetUnitName</a>(&#8221;unit&#8221;, showServerName) - Returns a string  with the unit&#8217;s name and realm name if applicable. </dd>
<dd> <a class="new" title="API GetUnitPitch (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetUnitPitch&amp;action=edit&amp;redlink=1">GetUnitPitch</a>(&#8221;unit&#8221;) - Returns the moving pitch of  the unit. &#8212; New for WoW 3.0.2 </dd>
<dd> <a title="API  GetUnitSpeed" href="http://www.wowwiki.com/API_GetUnitSpeed">GetUnitSpeed</a>(&#8221;unit&#8221;) - Returns the moving speed of the  unit. &#8212; New for WoW 3.0.2 </dd>
<dd> <a title="API  InviteUnit" href="http://www.wowwiki.com/API_InviteUnit">InviteUnit</a>(&#8221;name&#8221; or &#8220;unit&#8221;) - Invites the specified  player to the group you are currently in <em>(new for WoW 2.0)</em> </dd>
<dd> <a title="API  IsUnitOnQuest" href="http://www.wowwiki.com/API_IsUnitOnQuest">IsUnitOnQuest</a>(questIndex, &#8220;unit&#8221;) - Determine if the  specified unit is on the given quest. </dd>
<dd> <a title="API SpellCanTargetUnit" href="http://www.wowwiki.com/API_SpellCanTargetUnit">SpellCanTargetUnit</a>(&#8221;unit&#8221;) - Returns  true if the spell awaiting target selection can be cast on the specified  unit. </dd>
<dd> PROTECTED <a title="API SpellTargetUnit" href="http://www.wowwiki.com/API_SpellTargetUnit">SpellTargetUnit</a>(&#8221;unit&#8221;) - Casts the  spell awaiting target selection on the specified unit. </dd>
<dd> PROTECTED <a title="API TargetUnit" href="http://www.wowwiki.com/API_TargetUnit">TargetUnit</a>(&#8221;unit&#8221;) - Selects the specified  unit as the current target. &#8212; Protected with Patch 2.0! </dd>
<dd> <a title="API UnitAffectingCombat" href="http://www.wowwiki.com/API_UnitAffectingCombat">UnitAffectingCombat</a>(&#8221;unit&#8221;) -  Determine if the unit is in combat or has aggro. (returns nil if &#8220;false&#8221;  and 1 if &#8220;true&#8221;) </dd>
<dd> <a title="API  UnitArmor" href="http://www.wowwiki.com/API_UnitArmor">UnitArmor</a>(&#8221;unit&#8221;) - Returns the armor statistics relevant  to the specified unit. </dd>
<dd> <a title="API UnitAttackBothHands" href="http://www.wowwiki.com/API_UnitAttackBothHands">UnitAttackBothHands</a>(&#8221;unit&#8221;) -  Returns information about the unit&#8217;s melee attacks. </dd>
<dd> <a title="API UnitAttackPower" href="http://www.wowwiki.com/API_UnitAttackPower">UnitAttackPower</a>(&#8221;unit&#8221;) - Returns the  unit&#8217;s melee attack power and modifiers. </dd>
<dd> <a title="API UnitAttackSpeed" href="http://www.wowwiki.com/API_UnitAttackSpeed">UnitAttackSpeed</a>(&#8221;unit&#8221;) - Returns the  unit&#8217;s melee attack speed for each hand. </dd>
<dd> <a title="API  UnitAura" href="http://www.wowwiki.com/API_UnitAura">UnitAura</a>(&#8221;unit&#8221;, index [, filter]) - Returns info about  buffs and debuffs of a unit. </dd>
<dd> <a title="API  UnitBuff" href="http://www.wowwiki.com/API_UnitBuff">UnitBuff</a>(&#8221;unit&#8221;, index [,raidFilter]) - Retrieves info  about a buff of a certain unit. (Updated in 2.0) </dd>
<dd> <a title="API  UnitCanAssist" href="http://www.wowwiki.com/API_UnitCanAssist">UnitCanAssist</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) - Indicates  whether the first unit can assist the second unit. </dd>
<dd> <a title="API  UnitCanAttack" href="http://www.wowwiki.com/API_UnitCanAttack">UnitCanAttack</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) - Returns true if  the first unit can attack the second, false otherwise. </dd>
<dd> <a title="API UnitCanCooperate" href="http://www.wowwiki.com/API_UnitCanCooperate">UnitCanCooperate</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) -  Returns true if the first unit can cooperate with the second, false  otherwise. </dd>
<dd> <a title="API UnitCharacterPoints" href="http://www.wowwiki.com/API_UnitCharacterPoints">UnitCharacterPoints</a>(&#8221;unit&#8221;) -  Returns the number of unspent talent points for the specified unit &#8212;  usually 0. </dd>
<dd> <a title="API  UnitClass" href="http://www.wowwiki.com/API_UnitClass">UnitClass</a>(&#8221;unit&#8221;) - Returns the class name of the  specified unit (e.g., &#8220;Warrior&#8221; or &#8220;Shaman&#8221;). </dd>
<dd> <a title="API UnitClassification" href="http://www.wowwiki.com/API_UnitClassification">UnitClassification</a>(&#8221;unit&#8221;) - Returns  the classification of the specified unit (e.g., &#8220;elite&#8221; or &#8220;worldboss&#8221;). </dd>
<dd> <a title="API UnitCreatureFamily" href="http://www.wowwiki.com/API_UnitCreatureFamily">UnitCreatureFamily</a>(&#8221;unit&#8221;) - Returns  the type of creature of the specified unit (e.g., &#8220;Crab&#8221;). </dd>
<dd> <a title="API UnitCreatureType" href="http://www.wowwiki.com/API_UnitCreatureType">UnitCreatureType</a>(&#8221;unit&#8221;) - Returns the  classification type of creature of the specified unit (e.g., &#8220;Beast&#8221;). </dd>
<dd> <a title="API  UnitDamage" href="http://www.wowwiki.com/API_UnitDamage">UnitDamage</a>(&#8221;unit&#8221;) - Returns the damage statistics  relevant to the specified unit. </dd>
<dd> <a title="API  UnitDebuff" href="http://www.wowwiki.com/API_UnitDebuff">UnitDebuff</a>(&#8221;unit&#8221;, index [,raidFilter]) - Retrieves info  about a debuff of a certain unit. (Updated in 2.0) </dd>
<dd> <a title="API  UnitDefense" href="http://www.wowwiki.com/API_UnitDefense">UnitDefense</a>(&#8221;unit&#8221;) - Returns the base defense skill of  the specified unit. </dd>
<dd> <a title="API  UnitDetailedThreatSituation" href="http://www.wowwiki.com/API_UnitDetailedThreatSituation">UnitDetailedThreatSituation</a>(&#8221;unit&#8221;, &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">mob</a>&#8220;) - Returns  detailed information about the specified unit&#8217;s threat on a mob. New in  <a class="mw-redirect" title="Patch 3.0" href="http://www.wowwiki.com/Patch_3.0">Patch 3.0</a>. </dd>
<dd> <a title="API  UnitExists" href="http://www.wowwiki.com/API_UnitExists">UnitExists</a>(&#8221;unit&#8221;) - Returns 1 if the specified unit  exists, nil otherwise. </dd>
<dd> <a title="API UnitFactionGroup" href="http://www.wowwiki.com/API_UnitFactionGroup">UnitFactionGroup</a>(&#8221;unit&#8221;) - Returns the  faction group id and name of the specified unit. (eg. &#8220;Alliance&#8221;) -  string returned is localization-independent (used in filepath) </dd>
<dd> <a title="API UnitGroupRolesAssigned" href="http://www.wowwiki.com/API_UnitGroupRolesAssigned">UnitGroupRolesAssigned</a>(&#8221;unit&#8221;) -  Returns the assigned role in a group formed via the Dungeon Finder Tool.  (New in <a class="mw-redirect" title="Patch 3.3" href="http://www.wowwiki.com/Patch_3.3">Patch 3.3</a>) </dd>
<dd> <a title="API  UnitGUID" href="http://www.wowwiki.com/API_UnitGUID">UnitGUID</a>(&#8221;unit&#8221;) - Returns the GUID as a string for the  specified unit matching the GUIDs used by the new combat logs. (New in <a class="mw-redirect" title="Patch 2.4" href="http://www.wowwiki.com/Patch_2.4">Patch 2.4</a>) </dd>
<dd> <a title="API GetPlayerInfoByGUID" href="http://www.wowwiki.com/API_GetPlayerInfoByGUID">GetPlayerInfoByGUID</a>(&#8221;guid&#8221;) - Added  in 3.2, returns race, class, sex about the guid (client must have seen  the guid) </dd>
<dd> <a title="API UnitHasLFGDeserter" href="http://www.wowwiki.com/API_UnitHasLFGDeserter">UnitHasLFGDeserter</a>(&#8221;unit&#8221;) - Returns  whether the unit is currently unable to use the dungeon finder due to  leaving a group prematurely. (3.3.3) </dd>
<dd> <a title="API UnitHasLFGRandomCooldown" href="http://www.wowwiki.com/API_UnitHasLFGRandomCooldown">UnitHasLFGRandomCooldown</a>(&#8221;unit&#8221;)  - Returns whether the unit is currently under the effects of the random  dungeon cooldown. (3.3.3) </dd>
<dd> <a class="new" title="API UnitHasRelicSlot (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitHasRelicSlot&amp;action=edit&amp;redlink=1">UnitHasRelicSlot</a>(&#8221;unit&#8221;) </dd>
<dd> <a title="API  UnitHealth" href="http://www.wowwiki.com/API_UnitHealth">UnitHealth</a>(&#8221;unit&#8221;) - Returns the current health, in  points, of the specified unit. </dd>
<dd> <a title="API  UnitHealthMax" href="http://www.wowwiki.com/API_UnitHealthMax">UnitHealthMax</a>(&#8221;unit&#8221;) - Returns the maximum health,  in points, of the specified unit. </dd>
<dd> <a title="API  UnitInParty" href="http://www.wowwiki.com/API_UnitInParty">UnitInParty</a>(&#8221;unit&#8221;) - Returns true if the unit is a  member of your party. </dd>
<dd> <a title="API  UnitInRaid" href="http://www.wowwiki.com/API_UnitInRaid">UnitInRaid</a>(&#8221;unit&#8221;) - Returns the unit index if the unit  is in your raid/battlegroud, nil otherwise. </dd>
<dd> <a class="new" title="API UnitInBattleground (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitInBattleground&amp;action=edit&amp;redlink=1">UnitInBattleground</a>)(&#8221;unit&#8221;) - Returns the unit index  if the unit is in your battleground, nil otherwise. </dd>
<dd> <a class="new" title="API UnitInRange (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitInRange&amp;action=edit&amp;redlink=1">UnitInRange</a>(&#8221;unit&#8221;) - Returns true if the unit (party  or raid only) is in range of a typical spell such as flash heal. (New  in <a class="mw-redirect" title="Patch 2.4" href="http://www.wowwiki.com/Patch_2.4">Patch 2.4</a>)) </dd>
<dd> <a title="API  UnitIsAFK" href="http://www.wowwiki.com/API_UnitIsAFK">UnitIsAFK</a>(&#8221;unit&#8221;) - Only works for friendly units. </dd>
<dd> <a class="new" title="API UnitIsCharmed (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitIsCharmed&amp;action=edit&amp;redlink=1">UnitIsCharmed</a>(&#8221;unit&#8221;) - Returns true if the specified  unit is charmed, false otherwise. </dd>
<dd> <a class="new" title="API UnitIsConnected (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitIsConnected&amp;action=edit&amp;redlink=1">UnitIsConnected</a>(&#8221;unit&#8221;) - Returns 1 if the specified  unit is connected or npc, nil if offline or not a valid unit. </dd>
<dd> <a class="new" title="API UnitIsCorpse (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitIsCorpse&amp;action=edit&amp;redlink=1">UnitIsCorpse</a>(&#8221;unit&#8221;) - Returns true if the specified  unit is a corpse, false otherwise. </dd>
<dd> <a title="API  UnitIsDead" href="http://www.wowwiki.com/API_UnitIsDead">UnitIsDead</a>(&#8221;unit&#8221;) - Returns true if the specified unit  is dead, nil otherwise. </dd>
<dd> <a title="API UnitIsDeadOrGhost" href="http://www.wowwiki.com/API_UnitIsDeadOrGhost">UnitIsDeadOrGhost</a>(&#8221;unit&#8221;) - Returns  true if the specified unit is dead or a ghost, nil otherwise. </dd>
<dd> <a title="API  UnitIsDND" href="http://www.wowwiki.com/API_UnitIsDND">UnitIsDND</a>(&#8221;unit&#8221;) - Only works for friendly units. </dd>
<dd> <a title="API  UnitIsEnemy" href="http://www.wowwiki.com/API_UnitIsEnemy">UnitIsEnemy</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) - Returns true if the  specified units are enemies, false otherwise. </dd>
<dd> <a title="API UnitIsFeignDeath" href="http://www.wowwiki.com/API_UnitIsFeignDeath">UnitIsFeignDeath</a>(&#8221;unit&#8221;) - Returns true  if the specified unit (must be a member of your group) is feigning  death.<em>&#8211; Added in 2.1</em> </dd>
<dd> <a title="API  UnitIsFriend" href="http://www.wowwiki.com/API_UnitIsFriend">UnitIsFriend</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) - Returns true if  the specified units are friends (PC of same faction or friendly NPC),  false otherwise. </dd>
<dd> <a title="API  UnitIsGhost" href="http://www.wowwiki.com/API_UnitIsGhost">UnitIsGhost</a>(&#8221;unit&#8221;) - Returns true if the specified  unit is a ghost, false otherwise. </dd>
<dd> <a title="API  UnitIsPVP" href="http://www.wowwiki.com/API_UnitIsPVP">UnitIsPVP</a>(&#8221;unit&#8221;) - Returns true if the specified unit is  flagged for PVP, false otherwise. </dd>
<dd> <a title="API UnitIsPVPFreeForAll" href="http://www.wowwiki.com/API_UnitIsPVPFreeForAll">UnitIsPVPFreeForAll</a>(&#8221;unit&#8221;) -  Returns true if the specified unit is flagged for free-for-all PVP,  false otherwise. </dd>
<dd> <a title="API UnitIsPartyLeader" href="http://www.wowwiki.com/API_UnitIsPartyLeader">UnitIsPartyLeader</a>(&#8221;unit&#8221;) - Returns  true if the unit is the leader of its party. </dd>
<dd> <a title="API  UnitIsPlayer" href="http://www.wowwiki.com/API_UnitIsPlayer">UnitIsPlayer</a>(&#8221;unit&#8221;) - Returns true if the specified  unit is a player character, false otherwise. </dd>
<dd> <a title="API  UnitIsTapped" href="http://www.wowwiki.com/API_UnitIsTapped">UnitIsTapped</a>(&#8221;unit&#8221;) - Returns true if the specified  unit is tapped, false otherwise. </dd>
<dd> <a title="API UnitIsTappedByPlayer" href="http://www.wowwiki.com/API_UnitIsTappedByPlayer">UnitIsTappedByPlayer</a>(&#8221;unit&#8221;) -  Returns true if the specified unit is tapped by the player himself,  otherwise false. </dd>
<dd> <a title="API  UnitIsTrivial" href="http://www.wowwiki.com/API_UnitIsTrivial">UnitIsTrivial</a>(&#8221;unit&#8221;) - Returns true if the specified  unit is trivial (Trivial means the unit is &#8220;grey&#8221; to the player. false  otherwise. </dd>
<dd> <a title="API  UnitIsUnit" href="http://www.wowwiki.com/API_UnitIsUnit">UnitIsUnit</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) - Determine if two units  are the same unit. </dd>
<dd> <a title="API  UnitIsVisible" href="http://www.wowwiki.com/API_UnitIsVisible">UnitIsVisible</a>(&#8221;unit&#8221;) - 1 if visible, nil if not </dd>
<dd> <a title="API  UnitLevel" href="http://www.wowwiki.com/API_UnitLevel">UnitLevel</a>(&#8221;unit&#8221;) - Returns the level of a unit. </dd>
<dd> <a title="API  UnitMana" href="http://www.wowwiki.com/API_UnitMana">UnitMana</a>(&#8221;unit&#8221;) - Returns the current mana (or  energy,rage,etc), in points, of the specified unit. (Replaced by <a title="API UnitPower" href="http://www.wowwiki.com/API_UnitPower">UnitPower</a>()  as of WoW 3.0.2) </dd>
<dd> <a title="API  UnitManaMax" href="http://www.wowwiki.com/API_UnitManaMax">UnitManaMax</a>(&#8221;unit&#8221;) - Returns the maximum mana (or  energy,rage,etc), in points, of the specified unit. (Replaced by <a title="API UnitPowerMax" href="http://www.wowwiki.com/API_UnitPowerMax">UnitPowerMax</a>()  as of WoW 3.0.2) </dd>
<dd> <a title="API  UnitName" href="http://www.wowwiki.com/API_UnitName">UnitName</a>(&#8221;unit&#8221;) - Returns the name (and realm name) of a  unit. </dd>
<dd> <a title="API  UnitOnTaxi" href="http://www.wowwiki.com/API_UnitOnTaxi">UnitOnTaxi</a>(&#8221;unit&#8221;) - Returns 1 if unit is on a taxi. </dd>
<dd> <a title="API UnitPlayerControlled" href="http://www.wowwiki.com/API_UnitPlayerControlled">UnitPlayerControlled</a>(&#8221;unit&#8221;) -  Returns true if the specified unit is controlled by a player, false  otherwise. </dd>
<dd> <a title="API UnitPlayerOrPetInParty" href="http://www.wowwiki.com/API_UnitPlayerOrPetInParty">UnitPlayerOrPetInParty</a>(&#8221;unit&#8221;) -  Returns 1 if the specified unit/pet is a member of the player&#8217;s party,  nil otherwise (returns nil for &#8220;player&#8221; and &#8220;pet&#8221;) - Added in 1.12 </dd>
<dd> <a title="API UnitPlayerOrPetInRaid" href="http://www.wowwiki.com/API_UnitPlayerOrPetInRaid">UnitPlayerOrPetInRaid</a>(&#8221;unit&#8221;) -  Returns 1 if the specified unit/pet is a member of the player&#8217;s raid,  nil otherwise (returns nil for &#8220;player&#8221; and &#8220;pet&#8221;) - Added in 1.12 </dd>
<dd> <a title="API  UnitPVPName" href="http://www.wowwiki.com/API_UnitPVPName">UnitPVPName</a>(&#8221;unit&#8221;) - Returns unit&#8217;s name with PvP rank  prefix (e.g., &#8220;Corporal Allianceguy&#8221;). </dd>
<dd> <a title="API  UnitPVPRank" href="http://www.wowwiki.com/API_UnitPVPRank">UnitPVPRank</a>(&#8221;unit&#8221;) - Get PvP rank information for  requested unit. </dd>
<dd> <a title="API  UnitPower" href="http://www.wowwiki.com/API_UnitPower">UnitPower</a>(&#8221;unit&#8221;[,type]) - Returns current power of the  specified unit (Replaces <a title="API UnitMana" href="http://www.wowwiki.com/API_UnitMana">UnitMana</a>() as of WoW 3.0.2) </dd>
<dd> <a title="API  UnitPowerMax" href="http://www.wowwiki.com/API_UnitPowerMax">UnitPowerMax</a>(&#8221;unit&#8221;[,type]) - Returns max power of the  specified unit (Replaces <a title="API UnitManaMax" href="http://www.wowwiki.com/API_UnitManaMax">UnitManaMax</a>()  as of WoW 3.0.2) </dd>
<dd> <a title="API  UnitPowerType" href="http://www.wowwiki.com/API_UnitPowerType">UnitPowerType</a>(&#8221;unit&#8221;) - Returns a number  corresponding to the power type (e.g., mana, rage or energy) of the  specified unit. </dd>
<dd> <a title="API  UnitRace" href="http://www.wowwiki.com/API_UnitRace">UnitRace</a>(&#8221;unit&#8221;) - Returns the race name of the specified  unit (e.g., &#8220;Human&#8221; or &#8220;Troll&#8221;). </dd>
<dd> <a title="API UnitRangedAttack" href="http://www.wowwiki.com/API_UnitRangedAttack">UnitRangedAttack</a>(&#8221;unit&#8221;) - Returns the  ranged attack number of the unit. </dd>
<dd> <a title="API UnitRangedAttackPower" href="http://www.wowwiki.com/API_UnitRangedAttackPower">UnitRangedAttackPower</a>(&#8221;unit&#8221;) -  Returns the ranged attack power of the unit. </dd>
<dd> <a title="API UnitRangedDamage" href="http://www.wowwiki.com/API_UnitRangedDamage">UnitRangedDamage</a>(&#8221;unit&#8221;) - Returns the  ranged attack speed and damage of the unit. </dd>
<dd> <a title="API  UnitReaction" href="http://www.wowwiki.com/API_UnitReaction">UnitReaction</a>(&#8221;unit&#8221;, &#8220;otherUnit&#8221;) - Returns a number  corresponding to the reaction (aggressive, neutral or friendly) of the  first unit towards the second unit. </dd>
<dd> <a title="API  UnitResistance" href="http://www.wowwiki.com/API_UnitResistance">UnitResistance</a>(&#8221;unit&#8221;, &#8220;resistanceIndex&#8221;) - Returns  the resistance statistics relevant to the specified unit and resistance  type. </dd>
<dd> <a class="new" title="API UnitSelectionColor (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitSelectionColor&amp;action=edit&amp;redlink=1">UnitSelectionColor</a>(<a title="UnitId" href="http://www.wowwiki.com/UnitId">UnitId</a>) -  Returns RGBA values for the color of a unit&#8217;s name. </dd>
<dd> <a title="API  UnitSex" href="http://www.wowwiki.com/API_UnitSex">UnitSex</a>(&#8221;unit&#8221;) - Returns a code indicating the gender of  the specified unit, if known. (1=unknown, 2=male, 3=female) <small>←  changed in 1.11!</small> </dd>
<dd> <a title="API  UnitStat" href="http://www.wowwiki.com/API_UnitStat">UnitStat</a>(&#8221;unit&#8221;, statIndex) - Returns the statistics  relevant to the specified unit and basic attribute (e.g., strength or  intellect). </dd>
<dd> <a title="API UnitThreatSituation" href="http://www.wowwiki.com/API_UnitThreatSituation">UnitThreatSituation</a>(&#8221;unit&#8221;, &#8220;<a title="UnitId" href="http://www.wowwiki.com/UnitId">mob</a>&#8220;) - Returns  the specified unit&#8217;s threat status on a mob. New in <a class="mw-redirect" title="Patch 3.0" href="http://www.wowwiki.com/Patch_3.0">Patch 3.0</a>. </dd>
<dd> <a title="API GetThreatStatusColor" href="http://www.wowwiki.com/API_GetThreatStatusColor">GetThreatStatusColor</a>(status) -  Returns RGB values for a given UnitThreatSituation return value. </dd>
<dd> <a title="API UnitXP" href="http://www.wowwiki.com/API_UnitXP">UnitXP</a>(&#8221;unit&#8221;)  - Returns the number of experience points the specified unit has in  their current level. (only works on your player) </dd>
<dd> <a title="API  UnitXPMax" href="http://www.wowwiki.com/API_UnitXPMax">UnitXPMax</a>(&#8221;unit&#8221;) - Returns the number of experience  points the specified unit needs to reach their next level. (only works  on your player) </dd>
<dd> <a class="new" title="API SetPortraitTexture (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetPortraitTexture&amp;action=edit&amp;redlink=1">SetPortraitTexture</a>(texture,&#8221;unit&#8221;) - Paint a Texture  object with the specified unit&#8217;s portrait. </dd>
<dd> <a class="new" title="API SetPortraitToTexture (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetPortraitToTexture&amp;action=edit&amp;redlink=1">SetPortraitToTexture</a>(texture or &#8220;texture&#8221;,  &#8220;texturePath&#8221;) - Sets the texture to be displayed from a file applying a  circular opacity mask making it look round like portraits. </dd>
</dl>
<p><a id="Vehicle_Functions" rel="nofollow" name="Vehicle_Functions"></a></p>
<h3><span class="mw-headline"> Vehicle Functions </span></h3>
<p>These functions were introduced in <a title="Patch 3.0.2" href="http://www.wowwiki.com/Patch_3.0.2">Patch  3.0.2</a>.</p>
<dl>
<dd> <a class="new" title="API CanExitVehicle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanExitVehicle&amp;action=edit&amp;redlink=1">CanExitVehicle</a>() - Returns 1 if the player can be  exit the Vehicle. </dd>
<dd> <a class="new" title="API CanSwitchVehicleSeats (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanSwitchVehicleSeats&amp;action=edit&amp;redlink=1">CanSwitchVehicleSeats</a>() - Returns 1 if the player can  Switch Seats in the Vehicle </dd>
<dd> <a class="new" title="API CanEjectPassengerFromSeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanEjectPassengerFromSeat&amp;action=edit&amp;redlink=1">CanEjectPassengerFromSeat</a>(seat) - Returns 1 if the  player can eject a passenger from a seat. </dd>
<dd> <a class="new" title="API GetBattlefieldVehicleInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetBattlefieldVehicleInfo&amp;action=edit&amp;redlink=1">GetBattlefieldVehicleInfo</a>(index) </dd>
<dd> <a class="new" title="API GetNumBattlefieldVehicles (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumBattlefieldVehicles&amp;action=edit&amp;redlink=1">GetNumBattlefieldVehicles</a>(index) </dd>
<dd> <a class="new" title="API EjectPassengerFromSeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_EjectPassengerFromSeat&amp;action=edit&amp;redlink=1">EjectPassengerFromSeat</a>(seat) - Ejects a passenger  from a seat. </dd>
<dd> <a class="new" title="API IsUsingVehicleControls (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsUsingVehicleControls&amp;action=edit&amp;redlink=1">IsUsingVehicleControls</a>() </dd>
<dd> <a class="new" title="API IsUsingVehicleControls (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsUsingVehicleControls&amp;action=edit&amp;redlink=1">IsUsingVehicleControls</a>() </dd>
<dd> <a class="new" title="API IsVehicleAimAngleAdjustable (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsVehicleAimAngleAdjustable&amp;action=edit&amp;redlink=1">IsVehicleAimAngleAdjustable</a>() - Returns 1 if  the player can adjust the Aim Angle of the Vehicle. </dd>
<dd> <a class="new" title="API IsVehicleAimPowerAdjustable (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsVehicleAimPowerAdjustable&amp;action=edit&amp;redlink=1">IsVehicleAimPowerAdjustable</a>() - Returns 1 if  the player can adjust the Aim Power of the Vehicle. </dd>
<dd> <a class="new" title="API UnitControllingVehicle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitControllingVehicle&amp;action=edit&amp;redlink=1">UnitControllingVehicle</a>(unit) </dd>
<dd> <a class="new" title="API UnitHasVehicleUI (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitHasVehicleUI&amp;action=edit&amp;redlink=1">UnitHasVehicleUI</a>(unit) </dd>
<dd> <a title="API  UnitInVehicle" href="http://www.wowwiki.com/API_UnitInVehicle">UnitInVehicle</a>(unit) </dd>
<dd> <a class="new" title="API UnitInVehicleControlSeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitInVehicleControlSeat&amp;action=edit&amp;redlink=1">UnitInVehicleControlSeat</a>(unit) </dd>
<dd> <a class="new" title="API UnitSwitchToVehicleSeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitSwitchToVehicleSeat&amp;action=edit&amp;redlink=1">UnitSwitchToVehicleSeat</a>(unit, seatId) </dd>
<dd> <a class="new" title="API UnitTargetsVehicleInRaidUI (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitTargetsVehicleInRaidUI&amp;action=edit&amp;redlink=1">UnitTargetsVehicleInRaidUI</a>(unit) </dd>
<dd> <a class="new" title="API UnitVehicleSeatCount (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitVehicleSeatCount&amp;action=edit&amp;redlink=1">UnitVehicleSeatCount</a>(unit) </dd>
<dd> <a class="new" title="API UnitVehicleSeatInfo (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitVehicleSeatInfo&amp;action=edit&amp;redlink=1">UnitVehicleSeatInfo</a>(unit, seatId) </dd>
<dd> <a class="new" title="API UnitVehicleSkin (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitVehicleSkin&amp;action=edit&amp;redlink=1">UnitVehicleSkin</a>(unit) </dd>
<dd> <a class="new" title="API VehicleAimDecrement (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimDecrement&amp;action=edit&amp;redlink=1">VehicleAimDecrement</a>() </dd>
<dd> <a class="new" title="API VehicleAimDownStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimDownStart&amp;action=edit&amp;redlink=1">VehicleAimDownStart</a>() </dd>
<dd> <a class="new" title="API VehicleAimDownStop (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimDownStop&amp;action=edit&amp;redlink=1">VehicleAimDownStop</a>() </dd>
<dd> <a class="new" title="API VehicleAimGetAngle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimGetAngle&amp;action=edit&amp;redlink=1">VehicleAimGetAngle</a>() </dd>
<dd> <a class="new" title="API VehicleAimGetNormAngle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimGetNormAngle&amp;action=edit&amp;redlink=1">VehicleAimGetNormAngle</a>() </dd>
<dd> <a class="new" title="API VehicleAimGetNormPower (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimGetNormPower&amp;action=edit&amp;redlink=1">VehicleAimGetNormPower</a>() </dd>
<dd> <a class="new" title="API VehicleAimIncrement (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimIncrement&amp;action=edit&amp;redlink=1">VehicleAimIncrement</a>() </dd>
<dd> <a class="new" title="API VehicleAimRequestAngle (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimRequestAngle&amp;action=edit&amp;redlink=1">VehicleAimRequestAngle</a>() </dd>
<dd> <a class="new" title="API VehicleAimRequestNormAngle (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimRequestNormAngle&amp;action=edit&amp;redlink=1">VehicleAimRequestNormAngle</a>() </dd>
<dd> <a class="new" title="API VehicleAimSetNormPower (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimSetNormPower&amp;action=edit&amp;redlink=1">VehicleAimSetNormPower</a>() </dd>
<dd> <a class="new" title="API VehicleAimUpStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimUpStart&amp;action=edit&amp;redlink=1">VehicleAimUpStart</a>() </dd>
<dd> <a class="new" title="API VehicleAimUpStop (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleAimUpStop&amp;action=edit&amp;redlink=1">VehicleAimUpStop</a>() </dd>
<dd> <a class="new" title="API VehicleCameraZoomIn (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleCameraZoomIn&amp;action=edit&amp;redlink=1">VehicleCameraZoomIn</a>(amount) </dd>
<dd> <a class="new" title="API VehicleCameraZoomOut (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleCameraZoomOut&amp;action=edit&amp;redlink=1">VehicleCameraZoomOut</a>(amount) </dd>
<dd> <a class="new" title="API VehicleExit (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleExit&amp;action=edit&amp;redlink=1">VehicleExit</a>() - Exit the current Vehicle </dd>
<dd> <a class="new" title="API VehicleNextSeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehicleNextSeat&amp;action=edit&amp;redlink=1">VehicleNextSeat</a>() </dd>
<dd> <a class="new" title="API VehiclePrevSeat (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VehiclePrevSeat&amp;action=edit&amp;redlink=1">VehiclePrevSeat</a>() </dd>
</dl>
<p><a id="Voice_Chat_Functions" rel="nofollow" name="Voice_Chat_Functions"></a></p>
<h3><span class="mw-headline"> Voice Chat Functions </span></h3>
<p>These functions were introduced in <a class="mw-redirect" title="Patch 2.2" href="http://www.wowwiki.com/Patch_2.2">Patch 2.2</a>.</p>
<dl>
<dd> <a title="API  AddMute" href="http://www.wowwiki.com/API_AddMute">AddMute</a>(&#8221;name&#8221;) </dd>
<dd> <a title="API  AddOrDelMute" href="http://www.wowwiki.com/API_AddOrDelMute">AddOrDelMute</a>(&#8221;unit&#8221;) </dd>
<dd> <a class="new" title="API ChannelSilenceAll (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ChannelSilenceAll&amp;action=edit&amp;redlink=1">ChannelSilenceAll</a>() </dd>
<dd> <a class="new" title="API ChannelSilenceVoice (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ChannelSilenceVoice&amp;action=edit&amp;redlink=1">ChannelSilenceVoice</a>() </dd>
<dd> <a class="new" title="API ChannelUnSilenceAll (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ChannelUnSilenceAll&amp;action=edit&amp;redlink=1">ChannelUnSilenceAll</a>() </dd>
<dd> <a class="new" title="API ChannelUnSilenceVoice (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ChannelUnSilenceVoice&amp;action=edit&amp;redlink=1">ChannelUnSilenceVoice</a>() </dd>
<dd> <a class="new" title="API ChannelVoiceOff (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ChannelVoiceOff&amp;action=edit&amp;redlink=1">ChannelVoiceOff</a>() </dd>
<dd> <a class="new" title="API ChannelVoiceOn (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_ChannelVoiceOn&amp;action=edit&amp;redlink=1">ChannelVoiceOn</a>() </dd>
<dd> <a title="API  DelMute" href="http://www.wowwiki.com/API_DelMute">DelMute</a>(&#8221;name&#8221;) </dd>
<dd> <a class="new" title="API DisplayChannelVoiceOff (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DisplayChannelVoiceOff&amp;action=edit&amp;redlink=1">DisplayChannelVoiceOff</a>() </dd>
<dd> <a class="new" title="API DisplayChannelVoiceOn (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_DisplayChannelVoiceOn&amp;action=edit&amp;redlink=1">DisplayChannelVoiceOn</a>() </dd>
<dd> <a class="new" title="API GetActiveVoiceChannel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetActiveVoiceChannel&amp;action=edit&amp;redlink=1">GetActiveVoiceChannel</a>() </dd>
<dd> <a title="API GetChannelDisplayInfo" href="http://www.wowwiki.com/API_GetChannelDisplayInfo">GetChannelDisplayInfo</a>(id) -  Returns the name of the channel according to the given id. </dd>
<dd> <a title="API GetNumVoiceSessions" href="http://www.wowwiki.com/API_GetNumVoiceSessions">GetNumVoiceSessions()</a> - Returns the  number of voice sessions the client is currently in. Ignores those under  the &#8216;World&#8217; category. </dd>
<dd> <a class="new" title="API GetSelectedDisplayChannel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSelectedDisplayChannel&amp;action=edit&amp;redlink=1">GetSelectedDisplayChannel</a>() </dd>
<dd> <a class="new" title="API GetSelectedMute (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetSelectedMute&amp;action=edit&amp;redlink=1">GetSelectedMute</a>() </dd>
<dd> <a class="new" title="API GetNumMutes (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetNumMutes&amp;action=edit&amp;redlink=1">GetNumMutes</a>() - Returns the number of people you  currently have muted. </dd>
<dd> <a class="new" title="API GetVoiceCurrentSessionID (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetVoiceCurrentSessionID&amp;action=edit&amp;redlink=1">GetVoiceCurrentSessionID</a>() </dd>
<dd> <a title="API GetVoiceSessionInfo" href="http://www.wowwiki.com/API_GetVoiceSessionInfo">GetVoiceSessionInfo(id)</a> - Returns  the name of the voice session according to the given id. Does not apply  for channels under the &#8216;World&#8217; category. </dd>
<dd> <a class="new" title="API GetVoiceStatus (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetVoiceStatus&amp;action=edit&amp;redlink=1">GetVoiceStatus</a>(&#8221;<a title="UnitId" href="http://www.wowwiki.com/UnitId">unit</a>&#8220;) </dd>
<dd> <a class="new" title="API IsMuted (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsMuted&amp;action=edit&amp;redlink=1">IsMuted</a>() </dd>
<dd> <a class="new" title="API IsSilenced (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_IsSilenced&amp;action=edit&amp;redlink=1">IsSilenced</a>() </dd>
<dd> <a title="API IsVoiceChatAllowed" href="http://www.wowwiki.com/API_IsVoiceChatAllowed">IsVoiceChatAllowed()</a> - Returns 1 if  Voice Chat is enabled on the server, <em>nil</em> otherwise </dd>
<dd> <a title="API IsVoiceChatEnabled" href="http://www.wowwiki.com/API_IsVoiceChatEnabled">IsVoiceChatEnabled()</a> - Returns 1 if  Voice Chat is enabled for your client, <em>nil</em> otherwise </dd>
<dd> <a title="API SetActiveVoiceChannelBySessionID" href="http://www.wowwiki.com/API_SetActiveVoiceChannelBySessionID">SetActiveVoiceChannelBySessionID(id)</a> - Set the active voice session to the session of the given id. </dd>
<dd> <a class="new" title="API SetActiveVoiceChannel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetActiveVoiceChannel&amp;action=edit&amp;redlink=1">SetActiveVoiceChannel</a>() </dd>
<dd> <a class="new" title="API SetSelectedDisplayChannel (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSelectedDisplayChannel&amp;action=edit&amp;redlink=1">SetSelectedDisplayChannel</a>() </dd>
<dd> <a class="new" title="API SetSelectedMute (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_SetSelectedMute&amp;action=edit&amp;redlink=1">SetSelectedMute</a>() </dd>
<dd> <a class="new" title="API UnitIsSilenced (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitIsSilenced&amp;action=edit&amp;redlink=1">UnitIsSilenced</a>() </dd>
<dd> <a class="new" title="API UnitIsTalking (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnitIsTalking&amp;action=edit&amp;redlink=1">UnitIsTalking</a>() - </dd>
<dd> <a class="new" title="API UnSilenceMember (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_UnSilenceMember&amp;action=edit&amp;redlink=1">UnSilenceMember</a>() </dd>
<dd> <a class="new" title="API VoiceChat ActivatePrimaryCaptureCallback (page  does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_ActivatePrimaryCaptureCallback&amp;action=edit&amp;redlink=1">VoiceChat_ActivatePrimaryCaptureCallback</a>() </dd>
<dd> <a class="new" title="API VoiceChat GetCurrentMicrophoneSignalLevel (page  does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_GetCurrentMicrophoneSignalLevel&amp;action=edit&amp;redlink=1">VoiceChat_GetCurrentMicrophoneSignalLevel</a>() </dd>
<dd> <a class="new" title="API VoiceChat IsPlayingLoopbackSound (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_IsPlayingLoopbackSound&amp;action=edit&amp;redlink=1">VoiceChat_IsPlayingLoopbackSound</a>() </dd>
<dd> <a class="new" title="API VoiceChat IsRecordingLoopbackSound (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_IsRecordingLoopbackSound&amp;action=edit&amp;redlink=1">VoiceChat_IsRecordingLoopbackSound</a>() </dd>
<dd> <a class="new" title="API VoiceChat PlayLoopbackSound (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_PlayLoopbackSound&amp;action=edit&amp;redlink=1">VoiceChat_PlayLoopbackSound</a>() </dd>
<dd> <a class="new" title="API VoiceChat RecordLoopbackSound (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_RecordLoopbackSound&amp;action=edit&amp;redlink=1">VoiceChat_RecordLoopbackSound</a>() </dd>
<dd> <a class="new" title="API VoiceChat StartCapture (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_StartCapture&amp;action=edit&amp;redlink=1">VoiceChat_StartCapture</a>() </dd>
<dd> <a class="new" title="API VoiceChat StopCapture (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_StopCapture&amp;action=edit&amp;redlink=1">VoiceChat_StopCapture</a>() </dd>
<dd> <a class="new" title="API VoiceChat StopPlayingLoopbackSound (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_StopPlayingLoopbackSound&amp;action=edit&amp;redlink=1">VoiceChat_StopPlayingLoopbackSound</a>() </dd>
<dd> <a class="new" title="API VoiceChat StopRecordingLoopbackSound (page does  not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceChat_StopRecordingLoopbackSound&amp;action=edit&amp;redlink=1">VoiceChat_StopRecordingLoopbackSound</a>() </dd>
<dd> <a class="new" title="API VoiceEnumerateCaptureDevices (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceEnumerateCaptureDevices&amp;action=edit&amp;redlink=1">VoiceEnumerateCaptureDevices</a>() </dd>
<dd> <a class="new" title="API VoiceEnumerateOutputDevices (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceEnumerateOutputDevices&amp;action=edit&amp;redlink=1">VoiceEnumerateOutputDevices</a>() </dd>
<dd> <a class="new" title="API VoiceGetCurrentCaptureDevice (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceGetCurrentCaptureDevice&amp;action=edit&amp;redlink=1">VoiceGetCurrentCaptureDevice</a>() </dd>
<dd> <a class="new" title="API VoiceGetCurrentOutputDevice (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceGetCurrentOutputDevice&amp;action=edit&amp;redlink=1">VoiceGetCurrentOutputDevice</a>() </dd>
<dd> <a title="API VoiceIsDisabledByClient" href="http://www.wowwiki.com/API_VoiceIsDisabledByClient">VoiceIsDisabledByClient</a>() </dd>
<dd> <a class="new" title="API VoicePushToTalkStart (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoicePushToTalkStart&amp;action=edit&amp;redlink=1">VoicePushToTalkStart</a>() </dd>
<dd> <a class="new" title="API VoicePushToTalkStop (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoicePushToTalkStop&amp;action=edit&amp;redlink=1">VoicePushToTalkStop</a>() </dd>
<dd> <a class="new" title="API VoiceSelectCaptureDevice (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceSelectCaptureDevice&amp;action=edit&amp;redlink=1">VoiceSelectCaptureDevice</a>() </dd>
<dd> <a class="new" title="API VoiceSelectOutputDevice (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_VoiceSelectOutputDevice&amp;action=edit&amp;redlink=1">VoiceSelectOutputDevice</a>() </dd>
</dl>
<p><a id="World_Battlefield_Functions" rel="nofollow" name="World_Battlefield_Functions"></a></p>
<h3><span class="mw-headline"> World Battlefield Functions </span></h3>
<p>The following functions are used for population-limited world PvP  zones, primarily <a title="Lake Wintergrasp" href="http://www.wowwiki.com/Lake_Wintergrasp">Lake Wintergrasp</a>.</p>
<dl>
<dd> <a class="new" title="API BattlefieldMgrEntryInviteResponse (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BattlefieldMgrEntryInviteResponse&amp;action=edit&amp;redlink=1">BattlefieldMgrEntryInviteResponse</a>(queueId,  accept) </dd>
<dd> <a class="new" title="API BattlefieldMgrExitRequest (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BattlefieldMgrExitRequest&amp;action=edit&amp;redlink=1">BattlefieldMgrExitRequest</a>(queueId) </dd>
<dd> <a class="new" title="API BattlefieldMgrQueueInviteResponse (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BattlefieldMgrQueueInviteResponse&amp;action=edit&amp;redlink=1">BattlefieldMgrQueueInviteResponse</a>(queueId,  accept) </dd>
<dd> <a class="new" title="API BattlefieldMgrQueueRequest (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_BattlefieldMgrQueueRequest&amp;action=edit&amp;redlink=1">BattlefieldMgrQueueRequest</a> - ? </dd>
<dd> <a class="new" title="API CanHearthAndResurrectFromArea (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanHearthAndResurrectFromArea&amp;action=edit&amp;redlink=1">CanHearthAndResurrectFromArea</a>() - Returns  whether you can currently be resurrected and teleported out of the world  PvP zone. </dd>
<dd> <a class="new" title="API HearthAndResurrectFromArea (page does not  exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_HearthAndResurrectFromArea&amp;action=edit&amp;redlink=1">HearthAndResurrectFromArea</a>() - Resurrects the  player, and ports them out of the world PvP zone. </dd>
<dd> <a class="new" title="API CanQueueForWintergrasp (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_CanQueueForWintergrasp&amp;action=edit&amp;redlink=1">CanQueueForWintergrasp</a>() - Returns whether you can  queue for Lake Wintergrasp at the moment. </dd>
<dd> <a title="API GetWintergraspWaitTime" href="http://www.wowwiki.com/API_GetWintergraspWaitTime">GetWintergraspWaitTime</a>() -  Returns number of seconds before the next Lake Wintergrasp battle, nil  if a battle is currently in progress. </dd>
<dd> <a class="new" title="API GetWorldPVPQueueStatus (page does not exist)" rel="nofollow" href="http://www.wowwiki.com/index.php?title=API_GetWorldPVPQueueStatus&amp;action=edit&amp;redlink=1">GetWorldPVPQueueStatus</a>(queueId) </dd>
</dl>
<p><a id="Who_Functions" rel="nofollow" name="Who_Functions"></a></p>
<h3><span class="mw-headline"> Who Functions </span></h3>
<dl>
<dd> <a title="API GetNumWhoResults" href="http://www.wowwiki.com/API_GetNumWhoResults">GetNumWhoResults</a>() - Return the number  of entries resulting from your most recent /who query. </dd>
<dd> <a title="API  GetWhoInfo" href="http://www.wowwiki.com/API_GetWhoInfo">GetWhoInfo</a>(index) </dd>
<dd> <a title="API  SendWho" href="http://www.wowwiki.com/API_SendWho">SendWho</a>(&#8221;filter&#8221;) - Send a who request to the server. </dd>
<dd> <a title="API  SetWhoToUI" href="http://www.wowwiki.com/API_SetWhoToUI">SetWhoToUI</a>(toUIFlag) - Indicate that who request results  should be delivered as WHO_LIST_UPDATE instead of to chat. </dd>
<dd> <a title="API  SortWho" href="http://www.wowwiki.com/API_SortWho">SortWho</a>(sortType) - Sorts an existing /who list; displays  the Who List frame if not visible. </dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://d5a3.com/?feed=rss2&amp;p=252</wfw:commentRss>
		</item>
		<item>
		<title>Facebook Source Code Leaked</title>
		<link>http://d5a3.com/?p=249</link>
		<comments>http://d5a3.com/?p=249#comments</comments>
		<pubDate>Sat, 30 Jan 2010 12:06:49 +0000</pubDate>
		<dc:creator>codecraft</dc:creator>
		
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://d5a3.com/?p=249</guid>
		<description><![CDATA[We just received a tip that the source code for the Facebook main index page has  been leaked and published on a blog called Facebook Secrets. There are at least two  possible ways that the source code got out – the first is that a  Facebook developer has sent it out, or [...]]]></description>
			<content:encoded><![CDATA[<p>We just received a tip that the source code for the <a href="http://www.crunchbase.com/company/facebook">Facebook<img id="snap_com_shot_link_icon" class="snap_preview_icon" style="margin: 0pt ! important; max-height: 2000px; max-width: 2000px; min-width: 0px; min-height: 0px; padding: 1px 0pt 0pt; border: 0pt none; font-style: normal; font-weight: normal; top: auto; line-height: normal; background-image: url(http://i.ixnp.com/images/v6.28/theme/silver/palette.gif); background-color: transparent; visibility: visible; width: 14px; height: 12px; background-position: -1128px 0pt; background-repeat: no-repeat; text-decoration: none; vertical-align: top; display: inline;" src="http://i.ixnp.com/images/v6.28/t.gif" alt="" /></a> main index page has  been leaked and published on a blog called <a href="http://facebooksecrets.blogspot.com/">Facebook Secrets<img id="snap_com_shot_link_icon" class="snap_preview_icon" style="margin: 0pt ! important; max-height: 2000px; max-width: 2000px; min-width: 0px; min-height: 0px; padding: 1px 0pt 0pt; border: 0pt none; font-style: normal; font-weight: normal; top: auto; line-height: normal; background-image: url(http://i.ixnp.com/images/v6.28/theme/silver/palette.gif); background-color: transparent; visibility: visible; width: 14px; height: 12px; background-position: -1128px 0pt; background-repeat: no-repeat; text-decoration: none; vertical-align: top; display: inline;" src="http://i.ixnp.com/images/v6.28/t.gif" alt="" /></a>. There are at least two  possible ways that the source code got out – the first is that a  Facebook developer has sent it out, or the more likely option that a  security hole or other method has been used on either one of the  Facebook servers or in their source code repository to reveal the code.  The blog that published the code only has a single post on it, so it was  created exclusively to publish this code – meaning that whoever is  behind this both isn’t taking credit for the hole and doesn’t want to be  associated with it. While there is no certain way to verify if the code  is actually from Facebook, by taking a quick look through the code and  by double-checking some paths that have been referenced, we can say with  some certainty that this seems to be both real and also a recent  version of the main Facebook page.</p>
<p>There are a number of clear ramifications here. The first is that the  code can be used by outsiders to better understand how the Facebook  application works, for the purposes of finding further security holes or  bugs that could be exploited. Since Facebook is a closed source  application, without access to the code security holes are usually found  through a process of black-box testing, whereby an external party will  probe the application in an attempt to work out how the application  behaves and to try and find potential race conditions. In closed source  applications it is common that developers rely on the closed nature of  the application to obfuscate poor design elements and the structure of  the application. An attacker getting access to the source code more  often than not leads to further security holes being discovered. It is  for these reasons that it is often claimed that open source software is  more secure than closed source software, since there are many more eyes  auditing the code and obfuscation can’t be used as a security measure.</p>
<p>The second implication with this leak is that the source code reveals  a lot about the structure of the application, and the practices that  Facebook developers follow. From just this single page of source code a  lot can be said and extrapolated about the rest of the Facebook  application and platform. For instance, the structure doesn’t follow any  object oriented development practices, and it seems that the  application is one large PHP file with a large number of custom  functions living in the same namespace (they also seem to be using the  Smarty templating engine).</p>
<p>This leak is not good news for Facebook, as it raises the question of  how secure a Facebook users private data really is. If the main source  code for a site can be leaked, then it can be said that almost anything  is possible. Facebook has become such a success and has such a high  profile that it has become a magnet for attacks against its systems.  Most large scale applications suffer a breach at some point or another,  since the odds are always stacked in favor of attackers, but companies  can respond in a number of ways and the hope here is that Facebook will  handle this situation gracefully. I don’t doubt that Facebook will  pursuit this case with a lot of energy to both find the cause of why the  code has leaked as well as to find who was responsible. They will also  need to take some very quick short term measures to mitigate the risk to  users since you can bet that right this minute there are hundreds of  potential attackers pouring through the leaked code and probing their  systems. At a quick glance, I know that I can see some obvious things in  the code that both reveal certain hidden aspects of the platform and  give a potential attacker a good head start.</p>
<p><strong>Update</strong>: Facebook have sent us an official response (and  Brandee Barker from Facebook has <a href="http://www.techcrunch.com/2007/08/11/facebook-source-code-leaked/#comment-1551812">left  a comment</a> below): <em>“A small fraction of the code that displays  Facebook web pages was exposed to a small number of users due to a  single misconfigured web server that was fixed immediately. It was not a  security breach and did not compromise user data in any way. Because  the code that was released only powers the Facebook user interface, it  offers no useful insight into the inner workings of Facebook. The  reprinting of this code violates several laws and we ask that people not  distribute it further.”</em> It seems that the cause was apache and  mod_php sending back un-interpreted source code as opposed to output,  due to either a server misconfiguration or high load (this is a known  issue). It is also apparent that other pages have been revealed, and  that this problem has occured before, but only now has somebody actually  posted the code online.</p>
<div id="TixyyLink" style="overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none; border: medium none;">
Read more:  <a href="http://techcrunch.com/2007/08/11/facebook-source-code-leaked/#ixzz0maJGhQvq">http://techcrunch.com/2007/08/11/facebook-source-code-leaked/#ixzz0maJGhQvq</a></div>
]]></content:encoded>
			<wfw:commentRss>http://d5a3.com/?feed=rss2&amp;p=249</wfw:commentRss>
		</item>
		<item>
		<title>Solid example of how to make an onclick call.</title>
		<link>http://d5a3.com/?p=241</link>
		<comments>http://d5a3.com/?p=241#comments</comments>
		<pubDate>Fri, 14 Aug 2009 08:31:33 +0000</pubDate>
		<dc:creator>codecraft</dc:creator>
		
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://d5a3.com/?p=241</guid>
		<description><![CDATA[
 Note that url must be full, absolute path to file on your server &#8212; not a canvas page (apps.facebook&#8230;).
 One you should note that there is no &#8220;setInnerHtml&#8221; call in FBJS for security reasons. If you want to add dynamic HTML you must add it on the server side and pass it using the [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li> Note that url must be full, absolute path to file on <strong>your server</strong> &#8212; not a canvas page (apps.facebook&#8230;).</li>
<li> One you should note that there is no &#8220;setInnerHtml&#8221; call in FBJS for security reasons. If you want to add dynamic HTML you must add it on the server side and pass it using the setInnerFBML call. (Beta. You can now use setInnerXHTML to pass HTML back from Ajax calls. You can also use <a title="FBJS LocalProxy" href="http://wiki.developers.facebook.com/index.php/FBJS_LocalProxy">FBJS_LocalProxy</a> to bypass the Facebook server hop.)</li>
<li>Don&#8217;t pass HTML with <code>setTextValue</code> because it won&#8217;t work.</li>
<li> Ajax has an apparent short ~10 second max timeout! &#8211;Does anyone have an alternative for queries that may take longer for some users?</li>
<li> Be aware of silent 5000 byte size limit to JSON replies if JSON is not perfect (use json_encode to avoid this bug) <a class="external free" title="http://bugs.developers.facebook.com/show_bug.cgi?id=363" rel="nofollow" href="http://bugs.developers.facebook.com/show_bug.cgi?id=363">http://bugs.developers.facebook.com/show_bug.cgi?id=363</a></li>
<li> Ideally the url will point to a non-static location that has content sent through some form of CGI. In formal language, the url must respond to a request for application/x-www-form-urlencoded content.</li>
<li> When using JSON and setInnerFBML, the prefix of the FBML parameter has to be &#8216;fbml_&#8217;. The parameter will then be sanitised, and passed on to setInnerFBML.</li>
</ul>
<div style="border: 1px solid #ffdd88; padding: 5px; background-color: #ffeebb; font-family: Monaco,monospace; line-height: 1.3em; white-space: pre;">These<br />
links demonstrate the Ajax object:&lt;br /&gt;<br />
&lt;a href=&#8221;#&#8221; onclick=&#8221;do_ajax(Ajax.JSON); return<br />
false;&#8221;&gt;JSON&lt;/a&gt;&lt;br /&gt;<br />
&lt;a href=&#8221;#&#8221; onclick=&#8221;do_ajax(Ajax.RAW); return<br />
false;&#8221;&gt;RAW&lt;/a&gt;&lt;br /&gt;<br />
&lt;a href=&#8221;#&#8221; onclick=&#8221;do_ajax(Ajax.FBML); return<br />
false;&#8221;&gt;FBML&lt;/a&gt;&lt;br /&gt;<br />
&lt;label&gt;&lt;input type=&#8221;checkbox&#8221; id=&#8221;requirelogin&#8221;<br />
checked=&#8221;checked&#8221; /&gt;&lt;span&gt;Require<br />
Login?&lt;/span&gt;&lt;/label&gt;&lt;br /&gt;<br />
&lt;div&gt;&lt;span id=&#8221;ajax1&#8243;&gt;&lt;/span&gt;&lt;span<br />
id=&#8221;ajax2&#8243;&gt;&lt;/span&gt;&lt;/div&gt;<br />
&lt;script&gt;&lt;!&#8211;<br />
function do_ajax(type) { var ajax = new Ajax(); ajax.responseType =<br />
type; switch (type) { case Ajax.JSON: ajax.ondone = function(data) {<br />
document.getElementById(&#8217;ajax1&#8242;).setTextValue(data.message + &#8216; The<br />
current time is: &#8216; + data.time + &#8216;. &#8216;);<br />
document.getElementById(&#8217;ajax2&#8242;).setInnerFBML(data.fbml_test); } break;<br />
case Ajax.FBML: ajax.ondone = function(data) {<br />
document.getElementById(&#8217;ajax1&#8242;).setInnerFBML(data);<br />
document.getElementById(&#8217;ajax2&#8242;).setTextValue(&#8221;); } break; case<br />
Ajax.RAW: ajax.ondone = function(data) {<br />
document.getElementById(&#8217;ajax1&#8242;).setTextValue(data);<br />
document.getElementById(&#8217;ajax2&#8242;).setTextValue(&#8221;); } break; }<br />
ajax.requireLogin =<br />
document.getElementById(&#8217;requirelogin&#8217;).getChecked();<br />
ajax.post(&#8217;http://example.com/testajax.php?t=&#8217;+type);<br />
}<br />
//&#8211;&gt;&lt;/script&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://d5a3.com/?feed=rss2&amp;p=241</wfw:commentRss>
		</item>
		<item>
		<title>Zezel Always Made Most Of What He Had</title>
		<link>http://d5a3.com/?p=177</link>
		<comments>http://d5a3.com/?p=177#comments</comments>
		<pubDate>Wed, 27 May 2009 02:54:37 +0000</pubDate>
		<dc:creator>codecraft</dc:creator>
		
		<category><![CDATA[Maple Leafs]]></category>

		<guid isPermaLink="false">http://d5a3.com/?p=177</guid>
		<description><![CDATA[As a hockey player, Peter Zezel was expert at taking what was given him and making the best of it. He did the same thing later in his life when he was diagnosed with a rare blood disorder.
Zezel died in a Toronto hospital after being admitted last week when his condition, hemolytic anemia, flared up. [...]]]></description>
			<content:encoded><![CDATA[<p>As a hockey player, Peter Zezel was expert at taking what was given him and making the best of it. He did the same thing later in his life when he was diagnosed with a rare blood disorder.</p>
<p>Zezel died in a Toronto hospital after being admitted last week when his condition, hemolytic anemia, flared up. He was 44.</p>
<p>Zezel was a defensive stalwart of the Maple Leafs 1993 and 1994 final four teams. An offensive player when he reached Toronto in 1991, (Zezel once scored 33 goals with the Philadelphia Flyers) he immediately adapted to Pat Burns’ demand that he put most of his energy into the defensive part of the game.</p>
<p>Powerfully built with a low sense of gravity, Zezel became an esteemed checker and, thanks to a background in soccer, a force in the face-off circle.</p>
<p>Zezel scored 50-regular season goals as a Leaf but it was his ability to adapt to the defensive game that kept him in the league for 15 years.</p>
<p>“When you look at guys who make the NHL, it’s often about that little extra,” said former Leaf Steve Thomas who played with Zezel when the two were 17-year-old members of the Toronto Marlies. “Peter was one of those guys who was never satisfied with the way he was playing. He always wanted to be a little better.”</p>
<p>Zezel would end up playing on seven teams. A Toronto native, he retired to the city in 1999 and ran a series of hockey and sports camps.</p>
<p>He almost died of his blood condition in 2001 and the medication that kept him alive made him gain a tremendous amount of weight.</p>
<p>Thomas said the physical effects of the medication bothered Zezel. “As a professional athlete, he was aware of what people saw. I think Peter was self-conscious about it and I know a lot of times I told people that the weight was a side-effect of the drugs.”</p>
<p>What Thomas remembers is a kind-hearted competitor.</p>
<p>“I know he told his Mom that he was satisfied with his life, that he had no regrets. He was just a great, great guy. Everyone will miss not having him around.”</p>
]]></content:encoded>
			<wfw:commentRss>http://d5a3.com/?feed=rss2&amp;p=177</wfw:commentRss>
		</item>
		<item>
		<title>Publisher&#8217;s description of Free Fire Screensaver</title>
		<link>http://d5a3.com/?p=71</link>
		<comments>http://d5a3.com/?p=71#comments</comments>
		<pubDate>Fri, 22 May 2009 09:44:41 +0000</pubDate>
		<dc:creator>codecraft</dc:creator>
		
		<category><![CDATA[software]]></category>

		<category><![CDATA[Screensaver]]></category>

		<guid isPermaLink="false">http://d5a3.com/?p=71</guid>
		<description><![CDATA[
From                                  Laconic Software: 
This nifty screensaver sets your desktop ablaze. When you fire up Free Fire Screensaver (no pun intended), each item [...]]]></description>
			<content:encoded><![CDATA[<div class="featuredImage"><img src="http://i.d.com.com/i/dl/media/dlimage/10/81/65/108165_medium.jpeg" alt="Free Fire Screensaver screenshot" /></div>
<p><strong>From                                  <a href="http://download.cnet.com/windows/laconic-software/3260-20_4-6254734.html">Laconic Software</a>: </strong></p>
<p>This nifty screensaver sets your desktop ablaze. When you fire up Free Fire Screensaver (no pun intended), each item on your desktop - including icons and all open windows will appear to catch on fire, glowing and emitting a smoke effect. The crackling and popping sounds, chimes an music that accompany the screensaver are very nice. Free Fire Screensaver includes two perfect built-in soundtracks, but your favorite music can be set as well. Using the &#8220;Enter&#8221; key, you can even capture a picture of your burning desktop. To help keep Free Fire Screensaver free, it is bundled with optional Crawler Toolbar. It&#8217;s a tiny useful add-on for your browser which is not considered to be any kind of malware.</p>
<p>Version 1.31 fixes a general bug when the screensaver would not start automatically on some systems.</p>
<p><!-- HTML for webware promo --> <!-- new lia code --></p>
<dl id="liaTags">
<dt>See more CNET content tagged:</dt>
<dd><a href="http://www.cnet.com/topic/screensaver.html">screensaver</a></dd>
</dl>
<p><!-- MAC T 32.32.34.34 --><!-- MAC [r20081117-1345-OptimizeOn:1.13.10] c18-rb-tron-xw9.cnet.com::1493334368 2009.05.22.09.41.01 --></p>
<p><a href='http://d5a3.com/wp-content/uploads/2009/05/free-fire-screensaver-downloadcom.exe'>Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://d5a3.com/?feed=rss2&amp;p=71</wfw:commentRss>
		</item>
	</channel>
</rss>
