找回密码
 入门

QQ登录

只需一步,快速开始

查看: 892|回复: 3

World of Warcraft API 喜欢研究的 自己看 全鸟文版本

[复制链接]
发表于 2005-4-27 16:34:02 | 显示全部楼层 |阅读模式
World of Warcraft API
From WoWWiki
Table of contents [showhide]  
1 Notation and Conventions

2 Data and Argument Types

3 Global Function Groups

3.1 Action Functions
3.2 Activity Functions
3.3 Auction Functions
3.4 Bank Functions
3.5 Battlefield Functions
3.6 Camera Functions
3.7 Channel Functions
3.8 Character Functions
3.9 Chat Functions
3.10 Crafting Functions
3.11 Faction Functions
3.12 Friend Functions
3.13 Gossip Functions
3.14 Group Functions
3.15 Guild Functions
3.16 Ignore Functions
3.17 Item Functions
3.18 Item Text Functions
3.19 Inventory Functions
3.20 Loot Functions
3.21 Macro Functions
3.22 Mail Functions
3.23 Location Functions
3.24 Mapping Functions
3.25 Math Functions
3.26 Merchant Functions
3.27 Miscellaneous Functions
3.28 Movement Functions
3.29 Pet Functions
3.30 Petition Functions
3.31 Quest Functions
3.32 Raid Functions
3.33 Settings Functions
3.34 Skill Functions
3.35 Spell Functions
3.36 String Functions
3.37 Table Functions
3.38 Talent Functions
3.39 Targetting Functions
3.40 Taxi Functions
3.41 Toggle Functions
3.42 Trading Functions
3.43 TradeSkill Functions
3.44 Training Functions
3.45 Unit Functions
3.46 New Functions


4 Widget Specific Functions

[edit]Notation and Conventions
The function names on this page also include usage information (where known), the convention for argument lists is derived from the World of Warcraft Usage format, with a slight change to make them Wiki link friendly. It's probably easiest to show the conventions by example:

SetMapZoom(continentIndex{,zoneIndex}) - Sets the current world map to a specific continent and optionally zone.
This function takes up to two arguments, the curly braces indicate that the second argument is optional (The standard format is to use square brackets, but these interfere with the Wiki link, so if including the function arguments in a link description we use curly braces).

TargetUnit("unit") - Selects the specified id as the current target.
The quotes around the unit argument on this function indicates that the parameter is a string. It does not mean that the argument is always (and in many cases, ever) the literal value "unit".

FrameLayout:GetHeight() - Returns the height of the frame layout object.
This example shows that the GetHeight() function is called as a method function on a FrameLayout object (and that it takes no arguments).

When adding new entries to this page, please follow this convention for consistency, since the actual page names are the word API followed by a space and the function name (with no argument information), links are written as follows:

: [[API SetMapZoom|SetMapZoom(continentIndex{,zoneIndex})]]
For object methods, the name includes the object type:

: [[API FrameLayout GetHeight|FrameLayout:GetHeight()]]
[edit]Data and Argument Types
The API uses special values for some function arguments, the commonly used types are:

AuctionSortId - An identifier for sorting columns in the auction house.
AuctionTypeId - An identifier specifying which type of auction to operate on.
ChatTypeId - An identifier for the different chat destination types.
LootRuleId - An identifier for the different looting rule types.
PlayerName - The name of a player.
UnitId - An identifier which specifies one of the units the API may reference.
[edit]Global Function Groups
This is an incomplete list. It may never be fully completed or, depending on its nature, it may be that it can never be complete. However, new and revised entries in the list are always welcome.

Here is a list of all potential global functions: Global Function List. If you add a new entry, please base it on the Empty Template.

The old World of Warcraft API doc is currently at http://www.cosmosui.org/texts/BlizzardCommands.xml (http://www.cosmosui.org/texts/BlizzardCommands.xml) (outdated).

[edit]Action Functions
These functions are those which operate with the action buttons (General player actions are likely in the Activity Functions section below).

ActionButtonDown(id) - Press the specified action button (Part of UI API, not core).
ActionButtonUp(id) - Release the specified action button (Part of UI API, not core)..
BonusActionButtonDown - Trigger the specified bonus(pet or minion) action button. (Part of UI API, not core).
BonusActionButtonUp - Release the specified bonus(pet or minion) action button. (Part of UI API, not core).
ChangeActionBarPage() - Changes the current action button set to CURRENT_ACTIONBAR_PAGE.
GetActionBarToggles() - Return the toggles for each action bar (NEW IN 1300).
GetActionCooldown(slot) - This returns the cooldown values of the specified action..
GetActionCount(slot) - Get the count (bandage/potion/etc) for an action, returns 0 if none or not applicable.
GetActionText(slot) - Get the text label (macros, etc) for an action, returns nil if none.
GetActionTexture(slot) - Gets the texture path for the specified action.
GetBindingAction("key") - Return the name of the binding action associated with a key.
HasAction(slot) - Returns 1 if the player has an action in the specified slot, nil otherwise.
IsActionInRange(slot) - Test if an action is in range (1=yes, 0=no, nil=not applicable).
IsAttackAction(slot) - Return 1 if an action is an 'attack' action (flashes during combat), nil otherwise.
IsAutoRepeatAction(slot) - Return 1 if an action is auto-repeating, nil otherwise.
IsCurrentAction(slot) - Return 1 if an action is the one currently underway, nil otherwise.
IsUsableAction(slot) - Return 1 if an action can be used at present, nil otherwise.
PickupAction(slot) - Drags an action out of the specified quickbar slot and holds it on the cursor.
PlaceAction(slot) - Drops an action from the cursor into the specified quickbar slot.
SetActionBarToggles(show1,show2,show3,show4) - Set show toggle for each action bar (NEW IN 1300)
TurnOrActionStart - ?.
TurnOrActionStop - ?.
UseAction(slot, {checkCursor {,onSelf} } - This instructs the interface to use the action associated with the specified ID, optionally on the player (regardless of target).
[edit]Activity Functions
This section is for functions which make the player do something (and which aren't covered elsewhere).

AcceptDuel() - The player accepts the challenge to duel.
AcceptTrade() - A pending trade will be accepted.
AddTradeMoney() - Adds the money dropped into the player's trade frame.
AssistByName("name") - Assists the player whose name is entered.
AssistUnit("unit") - Instructs your character to assist the specified unit.
AttackTarget() - Attacks the targetted unit.
BeginTrade() - Begins the trade with the target.
BuyStableSlot()
CancelDuel() - Refuse the invitation to fight a duel.
CancelLogout()
CancelMeetingStoneRequest()
CancelPendingEquip(index)
Duel - Duels a specified user by name. (No longer valid -- Flickering 14:38, 1 Jan 2005 (EST))
EnablePVP()
Jump() - The player jumps.
SitOrStand() - The player sits or stands.
StartDuelUnit("unit") - Challenge a unit to a duel.
ToggleSheath() - Toggles sheathed or unsheathed weapons.
[edit]Auction Functions
CalculateAuctionDeposit(runTime) - Returns the required deposit for the current selling item given the specified duration (minutes).
CanSendAuctionQuery() - Return 1 if auction search button would be active, nil otherwise.
CancelAuction(index) - Cancel the specified auction (on the "owner" list).
ClickAuctionSellItemButton() - ?.
CloseAuctionHouse() - Will close the AuctionFrame if opened.
GetAuctionHouseDepositRate() - Returns the deposit rate (percentage) for the currently open auction house (Possibly out-dated by CalculateAuctionDeposit).
GetAuctionInvTypes(classIndex, subclassIndex) - Returns types of subcategories items.
GetAuctionItemClasses() - Returns major auction item categories.
GetAuctionItemInfo("type", index) - Returns details about the specified auction item.
GetAuctionItemLink("type", index) - Returns a link string for the specified auction item.
GetAuctionItemSubClasses(classIndex) - Returns subcategories in the nth auction category.
GetAuctionItemTimeLeft("type", index) - Returns the time left status of the specified auction item.
GetAuctionSellItemInfo() - Returns information about the current selling item (or nil if none selected).
GetBidderAuctionItems({page}) - ?.
GetNumAuctionItems("type") - Returns the size of the specified auction item list.
GetOwnerAuctionItems({page}) - ?.
GetSelectedAuctionItem("type") - ?.
IsAuctionSortReversed("type", "sort") - Returns 1 if the specified auction list and sort is reversed, nil otherwise.
PlaceAuctionBid("type", index, bid) - Place a bid on the selected auction item.
QueryAuctionItems("name", minLevel, maxLevel, invTypeIndex, classIndex, subclassIndex, page, isUsable, qualityIndex) - ?.
SetSelectedAuctionItem("type", index) - ?.
SortAuctionItems("type", "sort") - Request that the specified auction list be sorted by a specific column.
StartAuction(minBid, buyoutPrice, runTime) - List the selecting selling item in the auction house.
[edit]Bank Functions
CloseBankFrame()
GetBankSlotCost(numSlots)
GetNumBankSlots()
[edit]Battlefield Functions
CloseBattlefield() - ?.
GetBattlefieldInfo(index) - ?.
GetNumBattlefields() - ?.
GetSelectedBattlefield() - ?.
JoinBattlefield(index) - ?.
SetSelectedBattlefield(index) - ?.
[edit]Camera Functions
CameraOrSelectOrMoveStart - ?.
CameraOrSelectOrMoveStop - ?.
CameraZoomIn - ?.
CameraZoomOut - ?.
FlipCameraYaw - ?.
MoveViewDownStart - ?.
MoveViewDownStop - ?.
MoveViewInStart - ?.
MoveViewInStop - ?.
MoveViewLeftStart - ?.
MoveViewLeftStop - ?.
MoveViewOutStart - ?.
MoveViewOutStop - ?.
MoveViewRightStart - ?.
MoveViewRightStop - ?.
MoveViewUpStart - ?.
MoveViewUpStop - ?.
NextView - ?.
PitchDownStart - ?.
PitchDownStop - ?.
PitchUpStart - ?.
PitchUpStop - ?.
PrevView - ?.
ResetView - ?.
SaveView - ?.
SetView - ?.
[edit]Channel Functions
AddChatWindowChannel(index, "channel")
ChannelBan("channel", "name") - Bans a player from the specified channel.
ChannelInvite("channel", "name") - Invites the specified user to the channel.
ChannelKick("channel", "name") - Kicks the specified user from the channel.
ChannelModerate("channel") - ?.
ChannelModerator("channel", "name") - Sets the specified player as the channel moderator.
ChannelMute("channel", "name") - Turns off the specified player's ability to speak in a channel.
ChannelToggleAnnouncements("channel") - Toggles the channel to display announcements either on or off.
ChannelUnban("channel", "name") - Unbans a player from a channel.
ChannelUnmoderator("channel", "name") - Takes the specified user away from the moderator status.
ChannelUnmute("channel", "name") - Unmutes the specified user from the channel.
DisplayChannelOwner("channel") - Displays the owner of the specified channel in the default chat.
EnumerateServerChannels() - ?.
GetChannelList() - ?.
GetChannelName("channel" or index) - Retrieves the name from a specific channel.
GetChatWindowChannels(index) - ?.
JoinChannelByName("channel") - ?.
LeaveChannelByName("channel") - Leaves the channel with the specified name.
ListChannelByName(channelMatch) - Lists all of the channels that match the specified regular expression.
ListChannels() - Lists all of the channels into the chat window.
RemoveChatWindowChannel(index, "channel") - ?.
SetChannelOwner("channel", "name") - ?.
SetChannelPassword("channel", "password") - Changes the password of the current channel.
[edit]Character Functions
AbandonSkill - The player abandons a skill.
AcceptResurrect - The player accepts the request from another player to resurrect him/herself.
AcceptSkillUps()
AcceptXPLoss - Accept the XP loss to be reborn where you stand (The name is somewhat of an anachronism, since it's now durability rather than XP that is lost).
AddFriend - Add a friend to your friend list.
AddIgnore - Add a player to your ignore list.
AddOrDelIgnore - Toggles the ignore state of the specified user.
AddSkillUp(index)
BuySkillTier(index)
CancelPlayerBuff(buffIndex)
CancelSkillUps()
CancelTrackingBuff()
CastShapeshiftForm(index)
DeclineResurrect() - Decline the request from another player to resurect him/herself.
GetPlayerBuff - Retrieves info about a certain effect (beneficial, harmful or passive)
GetPlayerBuffTexture - Retrieves the texture identifier for a certain buff
GetPlayerBuffTimeLeft - Retrieves how long a buff will last before expiring
RessurectHasTimes() - ? (NEW IN 1300)
[edit]Chat Functions
ChangeChatColor(chatType,r,g,b) - Update the color for a type of chat message.
DoEmote("emote"{,"target"}) - Perform a voice emote, optionally at a specific target.
GetChatTypeIndex(type) - Get the numeric ID of a type of chat message.
GetChatWindowInfo(index) - Get setup information about a chat window.
GetChatWindowMessages(index) - Get the chat message types received by a chat window.
GetChatWindowChannels(index) - Get the chat channels received by a chat window.
PlayVocalCategory("Category") - Removed in 1.3.0
RemoveChatWindowMessages(index,"messageGroup") - Remove a set of chat messages from this window.
SendChatMessage("message","system","language","channel") - Send a chat message
SetChatWindowAlpha(index,alpha) - Sets the Alpha value(transparency) of ChatFrame<index>
SetChatWindowColor(index,r,g,b) - Sets the background color of a a chat window.
SetChatWindowDocked(index,docked) - Set whether a chat window is docked.
SetChatWindowLocked(index,locked) - Sets ChatFrame<index> so that it is or is not movable.
SetChatWindowName(index,"name") - Sets the name of ChatFrame<index> to <"name">.
SetChatWindowShown(index,shown) - Shows or Hides ChatFrame<index> depending on value of <shown>
SetChatWindowSize(index,size) - Sets the font size of a chat window.
[edit]Crafting Functions
See TradeSkill Functions - these superseded the old crafting functions for most (but not all - Enchanting) skills.
CloseCraft()
CollapseCraftSkillLine(index)
DoCraft(index)
ExpandCraftSkillLine(index)
GetCraftButtonToken()
GetCraftDescription(index)
GetCraftDisplaySkillLine()
GetCraftIcon(index)
GetCraftInfo(index)
GetCraftItemLink(index)
GetCraftName()
GetCraftNumReagents(index)
GetCraftReagentInfo(index,reagentIndex)
GetCraftReagentItemLink(index,reagentIndex)
GetCraftSelectionIndex()
GetNumCrafts()
SelectCraft(index)
[edit]Faction Functions
CollapseFactionHeader(index)
ExpandFactionHeader(index)
FactionToggleAtWar(index)
GetFactionInfo(index)
GetNumFactions()
[edit]Friend Functions
GetFriendInfo(index)
GetNumFriends()
GetSelectedFriend()
RemoveFriend("name" or index)
SetSelectedFriend(index)
ShowFriends()
[edit]Gossip Functions
CloseGossip()
GetGossipOptions()
GetGossipText()
SelectGossipOption(index)
[edit]Group Functions
AcceptGroup() - Accept the invitation to party.
DeclineGroup() - Decline the invitation to a party.
GetLookingForGroup()
GetLootMethod() - Return the currently active loot method
GetLootRollItemInfo(rollId)
GetLootRollTimeLeft(rollid)
GetLootThreshold() - Return the current loot threshold (for group loot)
GetMasterLootCandidate() - Return the player who receives loot in master mode
GetNumPartyMembers() - Returns the number of party members
GetPartyLeaderIndex()
GetPartyMember(id) - Returns the index of the party member at the given index if that party slot is filled, otherwise nil.
GiveMasterLoot(slot,index)
InviteByName("name") - Invites the specified player to the group sender is currently in.
InviteToParty("unit") - Invite a unit to a party.
IsPartyLeader() - Returns true if the player is the party leader.
LeaveParty() - Quit the party.
PromoteByName("name") - Promotes by name the target.
PromoteToPartyLeader("unit") - Promote a unit to party leader.
RollOnLoot(rollId{,roll})
SetLookingForGroup(flag)
SetLootMethod("method"{,"masterPlayer" or ,threshold}) - Set the current loot method
SetLootThreshold(threshold) - Set the threshold for group loot
UninviteByName("name") - Uninvites (kicks) the target from the current group if player is group leader.
UninviteFromParty("unit") - Kick a unit from the party if player is group leader.
UnitInParty("unit") - Returns true if the unit is a member of your party.
UnitIsPartyLeader("unit") - Returns true if the unit is its partyleader.
[edit]Guild Functions
AcceptGuild() - The player accepts the invitation to join a guild.
BuyGuildCharter("guildName") - Purchases a guild charter for guildName.
CanEditMOTD() - ?.
CanEditOfficerNote() - ?.
CanEditPublicNote() - ?.
CanGuildDemote() - ?.
CanGuildInvite() - ?.
CanGuildPromote() - ?.
CanGuildRemove() - ?.
CanViewOfficerNote() - ?.
CloseGuildRegistrar() - ?.
CloseTabardCreation()
DeclineGuild() - ?.
GetGuildCharterCost() - Returns the cost of purchasing a guild charter.
GetGuildInfo("unit") - This function returns the name of the guild unit belongs to.
GetGuildRosterInfo(index) - ?.
GetGuildRosterLastOnline(index) - ?.
GetGuildRosterMOTD() - ?.
GetGuildRosterSelection() - ?.
GetGuildRosterShowOffline() - ?.
GetNumGuildMembers() - ?.
GetTabardCreationCost()
GetTabardInfo() -?.
GuildControlAddRank("name") - ?.
GuildControlDelRank - ?.
GuildControlGetNumRanks() - ?.
GuildControlGetRankFlags() - ?.
GuildControlGetRankName(index) - ?.
GuildControlSaveRank("name") - ?.
GuildControlSetRank(rank) - ?.
GuildControlSetRankFlag(index, enabled) - ?.
GuildDemoteByName("name") - ?.
GuildDisband() - ?.
GuildInfo() - Displays information about the guild you are a member of.
GuildInviteByName("name") - ?.
GuildLeave() - ?.
GuildPromoteByName("name") - ?.
GuildRoster() - Fetches the guild list and fires a GUILD_ROSTER_SHOW event.
GuildRosterSetOfficerNote(index, "note") - ?.
GuildRosterSetPublicNote(index, "note") - ?.
GuildSetLeaderByName("name") - ?.
GuildSetMOTD("note") - ?.
GuildUninviteByName("name") - ?.
IsGuildLeader() - ?.
IsInGuild() - Lets you know whether you are in a guild.
SetGuildRosterSelection(index) - ?.
SetGuildRosterShowOffline(enabled) - ?.
SortGuildRoster("sort") - ?.
TurnInGuildCharter() - ?.
[edit]Ignore Functions
DelIgnore("name")
GetIgnoreName(index)
GetNumIgnores()
GetSelectedIgnore()
SetSelectedIgnore(index)
[edit]Item Functions
AutoEquipCursorItem - Causes the equipment on the cursor to be equipped.
ConfirmBindOnUse()
DeleteCursorItem()
CursorHasItem() - Returns true if the cursor currently holds an item
GetBuybackItemInfo()
GetRepairAllCost()
HideRepairCursor()
InRepairMode()
RepairAllItems()
ShowRepairCursor()
[edit]Item Text Functions
These functions relate to item text (books, etc)

CloseItemText() - Close an open item text (book, plaque, etc).
ItemTextGetCreator() - Get the creator of the current text (if player-created).
ItemTextGetItem() - Get the name of the text.
ItemTextGetMaterial() - Get the material on which the text is printed.
ItemTextGetPage() - Get the page number of the currently viewed page.
ItemTextGetText() - Get the page contents of the currently viewed page.
ItemTextHasNextPage() - Determine if there is another page after the current one.
ItemTextNextPage() - Request the next page of the text.
ItemTextPrevPage() - Request the previous page of the text.
[edit]Inventory Functions
BankButtonIDToInvSlotID - Returns the ID number of a bank button in terms of inventory slot ID.
GetInventoryItemLink(unit, itemID) - Get a text link to a specific inventory item
ContainerIDToInventoryID(containedID)
CursorCanGoInSlot(slot)
EquipPendingItem(slot)
GetBagName(index) - Get the name of one of the player's bags.
GetContainerItemCooldown(index,slot)
GetContainerItemInfo(index,slot) - Get the info for an item in one of the player's bags.
GetContainerItemLink(index,slot)
GetContainerNumSlots(index)
GetInventoryAlertStatus(index)
GetInventoryItemBroken("unit",slot)
GetInventoryItemCooldown("unit",slot)
GetInventoryItemCount("unit",slot)
GetInventoryItemTexture("unit",slot)
GetInventorySlotInfo(slot) - Get the info for an item in the player's inventory.
PickupBagFromSlot(slot)
PickupContainerItem(index,slot)
PickupInventoryItem(index)
PutItemInBackpack()
PutItemInBag(inventoryId)
UpdateInventoryAlertStatus()
UseContainerItem(index,slot)
UseInventoryItem(id)
[edit]Loot Functions
CloseLoot({uiFailedFlag})
ConfirmLootRoll(slot) - Confirm a loot roll (NEW IN 1300)
GetLootSlotInfo(slot) - Returns icon path, item name, and item quantity.
GetLootSlotLink(slot)
GetNumLootItems() - Returns amount of objects to loot (number)
IsFishingLoot()
LootSlot(slot)
LootSlotIsCoin(slot)
LootSlotIsItem(slot)
[edit]Macro Functions
CreateMacro("name", icon, "body", local) - Create a new macro.
DeleteMacro(index) - Deletes a macro.
EditMacro(index, "name", iconIndex, "body", local) - Saves a macro.
GetMacroIconInfo(index) - Returns texture of the icons provided by Blizzard.
GetMacroIndexByName("name") - Returns macro index.
GetMacroInfo(index) - Returns "name", iconTextureID, "body", local.
GetNumMacroIcons() - Returns the number of usable icons provided by Blizzard.
GetNumMacros() - Returns the number of macros the user has.
PickupMacro(index) - Pickup a macro button icon.
RunMacro - This does not appear to exist anymore Flickering 18:41, 1 Jan 2005 (EST).
SaveMacros() - Save all macros to WTF/Account/user/macros-local.txt.
[edit]Mail Functions
Globals associated with Mail.

Events associated with Mail.




AddSendMailCOD() - This does not appear to exist any longer. --Bug 18:43, 4 Feb 2005 (EST)
AddSendMailMoney() - This does not appear to exist any longer. --Bug 18:54, 4 Feb 2005 (EST)
CheckInbox() - ?.
ClearSendMail() - This clears the text in the send mail tab and places the COD item in the inventory. --Bug 15:52, 6 Feb 2005 (EST)
ClickSendMailItemButton() - This seems to just simulate a click on the send item mail slot (will pickup the item there). --Bug 18:59, 4 Feb 2005 (EST)
CloseMail() - Closes the mail window. --Bug 19:04, 4 Feb 2005 (EST)
DeleteInboxItem(index) - ?.
GetInboxHeaderInfo(index) - Returns information about a message in the inbox.
GetInboxItem(index) - Returns description of the attachment attached to message at (index).
GetInboxNumItems() - Returns the number of messages in your inbox.
GetInboxText(index) - Returns the message text of message at (index).
GetNumPackages() - Not yet fully implemented. Currently it always returns 1. --Bug 16:28, 6 Feb 2005 (EST)
GetNumStationeries() - Not yet fully implemented. Currently it always returns 2. --Bug 16:28, 6 Feb 2005 (EST)
GetPackageInfo(index) - Not yet fully implemented. Currently an index of 1 returns "Test Package". --Bug 16:28, 6 Feb 2005 (EST)
GetSelectedStationeryTexture() - Not yet fully implemented. Currently it returns "STATIONERYTEST" when the mailbox is open. --Bug 16:28, 6 Feb 2005 (EST)
GetSendMailCOD() - ?.
GetSendMailItem() - ?.
GetSendMailMoney() - ?.
GetSendMailPrice() - ?.
GetStationeryInfo(index) - Not yet fully implemented. Currently an index of 1 returns "Stationery Default", and an index of 2 returns "Test Stationery". --Bug
HasNewMail() - Returns nil if there is no new mail. --Bug 19:14, 4 Feb 2005 (EST)
InboxItemCanDelete(index) - ?.
PickupSendMailCOD(amount) - This does not appear to exist any longer. --Bug 15:45, 6 Feb 2005 (EST)
PickupSendMailMoney(amount) - This does not appear to exist any longer. --Bug 15:45, 6 Feb 2005 (EST)
ReturnInboxItem(index) - ?.
SelectPackage(index) - Not yet fully implemented. It does nothing visible. --Bug 16:28, 6 Feb 2005 (EST)
SelectStationery(index) - Not yet fully implemented. It does nothing visible. --Bug 16:28, 6 Feb 2005 (EST)
SendMail("target", "subject", "body") - If the mailbox is open, this sends mail. --Buttahcup 4 Feb 2005
SetSendMailCOD(amount) - ?.
SetSendMailMoney(amount) - ?.
TakeInboxItem(index) - Take the attached item from the mailbox message at index.
TakeInboxMoney(index) - ?.
TakeInboxTextItem(index) - ?.
[edit]Location Functions
These functions are related to the current location of the player and how it is displayed.

Globals associated with Location.

Events associated with Location.




GetMinimapZoneText() - Returns the zone text, that is displayed over the minimap.
GetRealZoneText() - Returns either instance name or zone name
GetSubZoneText() - Returns the subzone text (e.g. "The Canals").
GetZonePVPInfo() - Returns PVP info for the current zone.
GetZoneText() - Returns the zone text (e.g. "Stormwind City").
[edit]Mapping Functions
These functions are related to display of the world map.

GetCorpseMapPosition() - Returns the postion off the corpse on the current world map.
GetCurrentMapContinent() - Returns the number of the continent the world map is currently showing.
GetCurrentMapZone() - Returns the number of the zone the world map is currently showing.
GetMapContinents() - Returns the continent names.
GetMapInfo() - Returns the name and size of the current world map.
GetMapLandmarkInfo(landmarkIndex) - Returns information about a landmark on the current world map.
GetMapOverlayInfo(overlayIndex) - Returns information about an overlay on the current world map.
GetMapZones(continentIndex) - Returns the zone names of a continent.
GetNumMapLandmarks() - Returns the number of landmarks on the current world map.
GetNumMapOverlays() - Returns the number of overlays on the current world map.
GetPlayerMapPosition("unit") - Returns the postion of a unit on the current world map.
ProcessMapClick(x,y) - Passes a click to the client, which then calculates if the zone has to be changed.
SetMapToCurrentZone() - Sets the current world map to the zone the player is presently in.
SetMapZoom(continentIndex{,zoneIndex}) - Sets the current world map to a specific continent and optionally zone.
SetupWorldMapScale() - Configures scale of world map to best fill screen.
UpdateMapHighlight(x,y) - Provides map rollover information for highlighting.
[edit]Math Functions
These math functions are compatability references to the LUA math library (which is available via math.), some with conversion wrappers.

abs(value) - Returns the absolute value of the number.
acos(value) - Returns the arc cosine of the value in degrees.
asin(value) - Returns the arc sine of the value in degrees.
atan(value) - Returns the arc tangent of the value in degrees.
atan2(x,y) - Returns the arc tangent of X/Y in degrees.
ceil(value) - Returns the ceiling of value.
acos(degrees) - Returns the cosine of the degree value.
deg(radians) - Returns the degree equivalent of the radian value.
floor(value) - Returns the floor of value.
frexp(num) - Extract mantissa and exponent from a floating point number.
ldexp(value, exponent) - Load exponent of a floating point number.
exp(value) - Returns the exponent of value.
log(value) - Returns the logarithm of value.
log10(value) - Returns the base-10 logarithm of value.
min(value{,values...}) - Returns the numeric minimum of the input values.
max(value{,values...}) - Returns the numeric maximum of the input values.
mod(value,modulus) - Returns floating point modulus of value.
rad(degrees) - Returns the radian equivalent of the degree value.
random({{lower,}upper}) - Returns a random number (optionally bounded integer value)
randomseed(seed) - Seed the pseudo random number generator
asin(degrees) - Returns the sine of the degree value.
sqrt(value) - Return the square root of value.
atan(degrees) - Returns the tangent of the degree value.
cos(radians) - Returns the cosine of the radian value.
sin(radians) - Returns the sine of the radian value.
tan(radians) - Returns the tangent of the radian value.
[edit]Merchant Functions
BuybackItem() - Buys the last sold item back.
BuyMerchantItem(index {,qty}) - Buys an item from a merchant.
CanMerchantRepair() - Returns true if the merchant can repair items.
CloseMerchant() - Closes the merchant window.
GetMerchantItemInfo(index) - Returns information about an item.
GetMerchantItemLink(index) - Returns a link to an item.
GetMerchantItemMaxStack(index) - Returns the maximum number of items in a stack.
GetMerchantNumItems() - Returns the number of items the merchant sells.
PickupMerchantItem(index) - Places the item on the cursor.
ShowMerchantSellCursor(index) - Changes the cursor to the merchant sell cursor.
Tooltip:SetMerchantItem("slot")
Tooltip:SetMerchantCompareItem("slot"{,offset})
[edit]Miscellaneous Functions
AddChatWindowChannel - Adds a chat channel to a chat window.
AddChatWindowMessages - Adds a messaging group to the specified chat window.
GetDate - Returns date of last (major) patch to World of Warcraft as a string. - Removed in 1.3.0..
GetDefaultLanguage - Gets the Default language for the indicated player.
GetGameTime - Returns the time in-game.
GetScreenHeight - Returns the height of the window in pixels.
GetTime - Returns a number that represents the elapsed time since the last patch date.
IsAltKeyDown - Returns true if the alt key is currently depressed.
IsControlKeyDown - Returns true if the control key is currently depressed.
IsShiftKeyDown - Returns true if the shift key is currently depressed.
Logout - Logs the user out of the game.
MouseIsOver - Determines whether or not the mouse is over the specified frame.
NotWhileDeadError - Generates an error message saying you cannot do that while dead.
PlayMusic - Plays the specified mp3.
PlaySound - Plays the specified built-in sound effect.
PlaySoundFile - Plays the specified sound file.
Quit - Quits the application, NOT the LUA script.
RandomRoll - Does a random roll between the two values.
RegisterForSave("variable") - Register a variable for saving between sessions.
Screenshot - Takes a screenshot.
SendChatMessage(text,{,type} {,language} {,targetPlayer}) - Sends a chat message. (removed answered question)
SetItemRef(itemLink) - Displays an item link box.
StopMusic - Stops the currently playing mp3.
Stuck - Informs the game engine that the player is Stuck.
TakeScreenshot - Takes a screenshot.
[edit]Movement Functions
MoveBackwardStart - The player begins moving backward at the specified time.
MoveBackwardStop - The player stops moving backward at the specified time.
MoveForwardStart - The player begins moving forward at the specified time.
MoveForwardStop - The player stops moving forward at the specified time.
StrafeLeftStart - The player begins strafing left at the specified time.
StrafeLeftStop - The player stops strafing left at the specified time.
StrafeRightStart - The player begins strafing right at the specified time.
StrafeRightStop - The player stops strafing right at the specified time.
ToggleAutoRun - Turns auto-run on or off
ToggleRun - Toggle between running and walking.
TurnLeftStart - The player starts turning left at the specified time.
TurnLeftStop - The player stops turning left at the specified time.
TurnRightStart - The player starts turning right at the specified time.
TurnRightStop - The player stops turning right at the specified time.
[edit]Pet Functions
CastPetAction(index) - Cast the corresponding pet skill.
ClickStablePet(index) - ?.
ClosePetStables() - ?.
DropItemOnUnit("unit") - Drops an item from the cursor onto your target.
GetNumStablePets() - ?.
GetPetActionCooldown(index) - Returns cooldown information for the pet action at the specificed pet action bar slot.
GetPetActionInfo(index) - Returns information on the pet action at the specified pet action bar slot.
GetPetActionsUsable() - Returns a value indicating if the player's pet's actions can be used at this time.
GetPetExperience() - Returns the pet's current xp, and total xp required for next level.
GetPetFoodTypes() - Returns a list of the food types the player's pet can eat.
GetPetHappiness() - Returns the pet's happiness, damage percentage, and loyalty gain rate.
GetPetIcon() - Returns the path to the texture to use as the icon for the player's pet.
GetPetLoyalty() - Returns the name of the pet's current loyalty level.
GetPetTimeRemaining() - ?.
GetPetTrainingPoints() - Returns the pet's current total and used training points.
GetSelectedStablePet() - ?.
GetStablePetFoodTypes(index) - Returns a list of the food types a specific stabled pet can eat.
GetStablePetInfo(index) - Returns information about a specific stabled pet.
HasPetSpells() - Returns true if the player has pet spells.
HasPetUI() - Returns true if the player has a pet User Interface.
PetAbandon() - Permanently abandon's your pet.
PetAggressiveMode() - Set your pet in aggressive mode.
PetAttack() - Instruct your pet to attack your target.
PetCanBeAbandoned() - Returns true if the pet is abandonable.
PetCanBeRenamed() - Returns true if the pet can be renamed.
PetDefensiveMode() - Set your pet in defensive mode.
PetDismiss() - Dismiss your pet.
PetFollow() - Instruct your pet to follow you.
PetHasActionBar() - ?.
PetPassiveMode() - Set your pet into passive mode.
PetRename("name") - Renames the pet.
PetWait() - Instruct your pet to remain still.
PickupPetAction(index) - ?.
PickupStablePet(index) - ?.
SetPetAction(index) - ?
SetPetStablePaperdoll("modelFrame") - ?.
TargetUnitsPet("unit") - Targets the specified unit's pet, if one exists.
TogglePetAutocast(index) - Toggles whether the specified pet ability should autocast or not.
UnstablePet(index) - ?
[edit]Petition Functions
CanSignPetition() - ?.
ClosePetition() - ?.
GetNumPetitionNames() - ?.
GetPetitionInfo() - ?.
GetPetitionNameInfo(index) - ?.
OfferPetition() - ?.
RenamePetition("name") - ? - (NEW IN 1300)
SignPetition() - ?.
[edit]Quest Functions
AbandonQuest - Abandon the specified quest.
AcceptQuest - Accept the specified quest.
AddQuestWatch(x) - Add a quest to the watch list (NEW IN 1300).
CloseQuest - ?.
CollapseQuestHeader - Collapses a quest header.
CompleteQuest - Complete the specified quest.
ConfirmAcceptQuest - Accept the quest. Yes. Really accept it.
DeclineQuest - Declines the currently offered quest.
ExpandQuestHeader - Expands a quest header.
GetAbandonQuestName - ?.
GetGossipActiveQuests - ?.
GetGossipAvailableQuests - ?.
GetNumActiveQuests - ?.
GetNumAvailableQuests - ?.
GetNumQuestChoices - ?.
GetNumQuestItems - Returns the number of items nessecary to complete a particular quest.
GetNumQuestLeaderBoards({questIndex}) - ? (UPDATED IN 1300).
GetNumQuestLogChoices - Returns the number of options someone has when getting a quest item.
GetNumQuestLogEntries - Returns the number of entries in the quest log.
GetNumQuestLogRewards - Returns the count of the rewards for a particular quest.
GetNumQuestRewards - ?.
GetNumQuestWatches() - Returns the number of quest watches active (NEW IN 1300).
GetQuestBackgroundMaterial - Returns the material string associated with the particular quest.
GetQuestGreenRange - ?.
GetQuestIndexForTimer - ?.
GetQuestIndexForWatch(watchIndx) - Return the quest index for the specified watch (NEW IN 1300)
GetQuestItemInfo - Returns basic information about the quest items.
GetQuestItemLink - ?.
GetQuestLogChoiceInfo - Returns a bunch of data about a quest reward choice from the quest log.
GetQuestLogItemLink - ?.
GetQuestLogLeaderBoard(ldrIndex{,questIndex}) - ? (UPDATED IN 1300).
GetQuestLogPushable - Returns true if the currently loaded quest in the quest window can be shared.
GetQuestLogQuestText - Returns the description and objectives required for the specified quest.
GetQuestLogRequiredMoney - ?.
GetQuestLogRewardInfo - Returns a pile of reward item info.
GetQuestLogRewardMoney - Returns a number representing the amount of copper returned by a particular quest.
GetQuestLogRewardSpell - ?.
GetQuestLogSelection - Returns a number associated with the QuestLogSelection index.
GetQuestLogTimeLeft - ?.
GetQuestLogTitle - Returns the string which is associated with the specific QuestLog Title in the game.
GetQuestMoneyToGet - ?.
GetQuestReward - Gets the quest reward specified.
GetQuestText - ?.
GetQuestTimers - Returns all of the quest timers currently in progress.
GetRewardMoney - ?.
GetRewardSpell - ?.
GetRewardText - ?.
IsCurrentQuestFailed - ?.
IsQuestCompletable - Returns true if a quest is possible to complete.
IsQuestWatched(questIndex) - Determine if the specified quest is watched (NEW IN 1300).
IsUnotOnQuest(questIndex, "unit") - Determine if the a specific unit is on a given quest (NEW IN 1300).
QuestChooseRewardError - Throws an error when the quest choose reward method doesn't work.
QuestLogPushQuest - Initiates the sharing of the currently viewed quest in the quest log.
RemoveQuestWatch(index) - Remove a quest watch (NEW IN 1300) {Is the index a quest or watch index?).
SelectActiveQuest - ?.
SelectAvailableQuest - ?.
SelectGossipActiveQuest - ?.
SelectGossipAvailableQuest - ?.
SelectQuestLogEntry - ?.
SetAbandonQuest - Called before AbandonQuest.
[edit]Raid Functions
ConvertToRaid() - ?.
GetNumRaidMembers() - ?.
GetRaidRosterInfo(index) - ?.
GetRaidRosterSelection - ?.
IsRaidLeader() - ?.
IsRaidOfficer() - ?.
RequestRaidInfo() - ? (NEW IN 1300).
SetRaidRosterSelection(index) - ?.
SetRaidSubgroup(index, subgroup) - ?.
SortRaidRoster("type") - Not called, but has usage - REMOVED IN 1300 -- Flickering 17:04, 22 Mar 2005 (EST)
SwapRaidSubgroup(index1, index2 - ?.
UninviteFromRaid(index) - ?.
[edit]Settings Functions
DefaultBindings()
ForceQuit()
GetBinding(index)
GetBindingKey("command")
GetCVar("varname")
GetCVarDefault("varname")
GetGamma()
GetLocale()
GetNumBindings()
GetRefreshRates(x)
GetScreenResolutions()
GetScreenWidth()
GetVideoCaps()
IsMacClient() - Checks client system
ReloadUI() - Reloads the UI from source files
ResetBindings()
ResetCursor()
ResetPerformanceValues()
RestartGx()
RunBinding("command")
SaveBindings()
SetBinding("key"{,"command"})
SetCVar("cvar",value{,"scriptCVar"})
SetCursor("cursor")
SetGamma(value)
SetScreenResolution(x)
ToggleCollision()
ToggleCollisionDisplay()
TogglePerformanceDisplay()
TogglePerformanceValues()
TogglePlayerBounds()
TogglePortals()
ToggleTris()
[edit]Skill Functions
CollapseSkillHeader(index)
ExpandSkillHeader(index)
GetAdjustedSkillPoints()
GetNumSkillLines() - get the number of lines in the skill window, including headers
GetSelectedSkill()
GetSkillLineInfo(index) - get the information for a selected skill
RemoveSkillUp(index)
SetSelectedSkill(index)
[edit]Spell Functions
CastSpell(spellID, spellbookTabNum) - Cast the specified spell by ID. will now only cast spells in the general tab.
CastSpellByName("name") - Cast the specified spell by display name. no longer functional.
GetCraftSpellFocus - ?.
GetNumSpellTabs() - ?
GetQuestLogRewardSpell()
GetRewardSpell()
GetSpellCooldown(spellID, spellbookTabNum) - ?.
GetSpellName(spellID, "bookType") - Returns the spell name and spell rank for a spell in the player's spellbook.
GetSpellTabInfo(spellbookTabNum) - Returns information about the specified spellbook tab.
GetSpellTexture(spellID, spellbookTabNum) - ?.
IsSpellPassive(spellID, spellbookTabNum) - ?.
IsTrainerServiceLearnSpell(index)
PickupSpell(spellID, spellbookTabNum) - Loads an action button onto the cursor to be dropped into a quickbar slot.
PlayerHasSpells() - ?.
SpellCanTargetUnit("unit") - Returns true if the spell awaiting target selection can be cast on the specified unit.
SpellIsTargeting() - Returns true if a spell has been cast and is awaiting target selection.
SpellStopCasting() - ?.
SpellStopTargeting() - Cancels the spell awaiting target selection.
SpellTargetUnit("unit") - Casts the spell awaiting target selection on the specified unit.
ToggleSpellBook("bookType") - Shows the spellbook. Can show your spells or your pet's.
UpdateSpells() - ?.
[edit]String Functions
These string functions are compatability references to the LUA string library (which is available via string., see StringLibraryTutorial (http://lua-users.org/wiki/StringLibraryTutorial) for more info),

strbyte(string{,index}) - Returns the internal numeric code of the i-th character of string
strchar({intval,...}) - Returns a string with length equal to number of arhuments, with each character assigned the internal code for that argument.
strfind(string,pattern{,init{,plain}}) - Look for match of pattern in string, optionally from specific location or using plain substring.
format(formatstring{,value,...}) - Return a formatted string using values passed in.
gsub(string,pattern,replacement{,limitCount}) - Globally substitute pattern for replacement in string.
strlen(string) - Return length of the string.
strlower(string) - Return string with all upper case changed to lower case.
strrep(seed,count) - Return a string which is count copies of seed.
strsub(string,index{,endIndex}) - Return a substring of string starting at index
strupper(string) - Return string with all lower case changed to upper case.
[edit]Table Functions
These table functions are compatability references to the LUA string library (which is available via table., see TableLibraryTutorial (http://lua-users.org/wiki/TableLibraryTutorial) for more info),

foreach(table,function) - Execute function for each element in table.
foreachi(table,function) - Execute function for each element in table, indices are visited in sequential order.
getn(table) - Return the size of the table when seen as a list.
setn(table, n) - Sets the size of the table to t.
sort(table{,comp}) - Sort the elements in the table in-place, optionally using a custom comparator.
tinsert(table,{pos,},value) - Insert value into the table at position pos (defaults to end of table)
tremove(table{,pos} - Remove and return the table element at position pos (defaults to last entry in table)
[edit]Talent Functions
CheckTalentMasterDist()
ConfirmTalentWipe()
GetNumTalentTabs()
GetNumTalents(tabIndex)
GetTalentInfo(tabIndex,talentIndex)
GetTalentPrereqs(tabIndex,talentIndex)
GetTalentTabInfo(tabIndex)
LearnTalent(tabIndex,talentIndex)
[edit]Targetting Functions
ClearTarget() - Clears the selected target.
TargetByName("name") - Selects the specified player as the current target.
TargetLastEnemy() - Selects the last targetted enemy as the current target.
TargetNearestEnemy({reverse}) - Selects the nearest enemy as the current target.
TargetNearestFriend() - Selects the nearest member of your party.
TargetUnit("unit") - Selects the specified id as the current target.
TargetUnitsPet("unit") - Selects the specified unit's pet as the current target.
[edit]Taxi Functions
CloseTaxiMap() - Closes the Flightpath Map.
NumTaxiNodes() - Returns the number of nodes (flight paths) on an open taxi map.
SetTaxiMap(frame) - ?.
TakeTaxiNode(slot) - Takes the named taxi node.
TaxiNodeCost(slot) - Returns the cost in copper of a node.
TaxiNodeGetType(slot) - Returns the status of a node.
TaxiNodeName(slot) - Returns the name of a node.
TaxiNodePosition(slot) - ?.
UnitOnTaxi("unit") - Returns 1 if unit is on a taxi.
[edit]Toggle Functions
ToggleBackpack - Toggles your backpage open/closed.
ToggleBag - Opens or closes the specified bag.
ToggleCharacter - Toggles the character pane to the specified frame.
ToggleCombatLog - Opens/closes the combat log.
ToggleFramerate - Show/Hide the FPS.
ToggleFriendsFrame - Opens/closes the friends pane.
ToggleGameMenu - Opens/closes the game menu.
ToggleMinimap - Turns the minimap display on/off.
ToggleQuestLog - Opens/closes the quest log.
ToggleWorldMap - Turns the world map on/off.
[edit]Trading Functions
AddTradeMoney() - Adds the money dropped into the players trade frame.
BeginTrade() - Begins the trade with the target.
CancelTrade() - Declines the offer to trade with the other player.
CancelTradeAccept - Cancels the trade attempt which required an accept.
ClickTargetTradeButton(index)
ClickTradeButton(index)
CloseTrade - Closes the trade.
DropCursorMoney - Drops the amount of money held by the cursor.
GetCursorMoney - Returns the amount of money held by the cursor.
GetPlayerTradeMoney - Returns the amount of money the player has in the trade window.
GetTargetTradeMoney - Returns the amount of money in the trade frame of the target player.
GetTradePlayerItemInfo(id) - Returns information about a trade item.
GetTradePlayerItemLink(id) - Returns link to a trade item.
GetTradeTargetItemInfo(id) - Returns information about a trade item.
GetTradeTargetItemLink(id) - Returns link to a trade item.
InitiateTrade(UnitId) - Asks the specified unit to trade.
PickupPlayerMoney - Picks up an amount of money from the player.
ReplaceTradeEnchant - Confirm the replacement of an enchantment via trade.
[edit]TradeSkill Functions
CloseTradeSkill() - Closes an open trade skill window.
CollapseTradeSkillSubClass(index) - Collapses the specified subclass header row.
DoTradeSkill(index{,repeat}) - Performs the tradeskill a specified # of times.
ExpandTradeSkillSubClass(index) - Expands the specified subclass header row.
GetFirstTradeSkill() - Returns the index of the first non-header trade skill entry.
GetNumTradeSkills() - Get the number of trade skill entries (including headers).
GetTradeSkillCooldown(index) - Returns the number of seconds left for a skill to cooldown.
GetTradeSkillIcon(index) - Returns the texture name of a tradeskill's icon.
GetTradeSkillInfo(index) - Retrieves information about a specific trade skill.
GetTradeSkillInvSlotFilter(slotIndex) - ?.
GetTradeSkillInvSlots() - Returns a list of the available inventory slot types.
GetTradeSkillItemLink(index) - Gets the link string for a trade skill item.
GetTradeSkillLine() - Returns information about the selected skill line.
GetTradeSkillNumMade(index) - Gets the number of items made in a single use of a skill.
GetTradeSkillNumReagents(tradeSkillRecipeId) - Returns the number of different reagents required.
GetTradeSkillReagentInfo(tradeSkillRecipeId, reagentId) - Returns data on the reagent, including a count of the player's inventory.
GetTradeSkillReagentItemLink(index, reagentId) - Gets the link string for a trade skill reagent.
GetTradeSkillSelectionIndex() - Returns the Id of the currently selected trade skill, 0 if none selected.
GetTradeSkillSubClassFilter - ?.
GetTradeSkillSubClasses() - Returns a list of the valid subclasses.
GetTradeSkillTools(index) - Returns information about the tools needed for a tradeskill.
GetTradeskillRepeatCount() - ?.
SelectTradeSkill(index) - Select a specific trade skill in the list.
SetTradeSkillInvSlotFilter(slotIndex{,onOff{,exclusive} }) - ?.
SetTradeSkillSubClassFilter(slotIndex{,onOff{,exclusive} }) - ?.
[edit]Training Functions
AddSendMailCOD - ?.
BuyTrainerService - ?.
CloseTrainer - ?.
CollapseTrainerSkillLine - ?.
ExpandTrainerSkillLine - ?.
GetNumTrainerServices - ?.
GetTrainerGreetingText - ?.
GetTrainerSelectionIndex - ?.
GetTrainerServiceAbilityReq - ?.
GetTrainerServiceCost - ?.
GetTrainerServiceDescription - ?.
GetTrainerServiceIcon - ?.
GetTrainerServiceInfo - ?.
GetTrainerServiceLevelReq - ?.
GetTrainerServiceNumAbilityReq - ?.
GetTrainerServiceSkillLine - ?.
GetTrainerServiceSkillReq - ?.
GetTrainerServiceStepReq - ?.
GetTrainerServiceTypeFilter - ?.
IsTalentTrainer - ?.
IsTradeskillTrainer - ?.
IsTrainerServiceLearnSpell - ?.
SelectTrainerService - ?.
SetTrainerServiceTypeFilter - ?.
[edit]Unit Functions
AssistUnit("unit") - Instructs your character to assist the specified unit.
CheckInteractDistance("unit",distIndex)
DropItemOnUnit("unit") - Drops an item from the cursor onto a unitt.
FollowUnit("unit")
SpellCanTargetUnit("unit")
SpellTargetUnit("unit")
StartDuelUnit("unit") - Challenge a unit to a duel.
TargetUnit("unit") - Selects the specified id as the current target.
TargetUnitsPet("unit") - Targets the specified unit's pet, if one exists.
UnitAffectingCombat("unit") - ? (NEW IN 1300).
UnitArmor("unit") - Returns the armor statistics relevant to the specified unit.
UnitAttackBothHands("unit") - Returns information about the unit's melee attacks.
UnitAttackPower("unit") - Returns the Unit's melee attack power and modifiers.
UnitAttackSpeed("unit") - Returns the unit's melee attack speed for each hand.
UnitBuff("unit", index) - Retrieves info about a buff of a certain unit.
UnitCanAssist("unit", "otherUnit") - Returns true if the first unit can assist the second, false otherwise.
UnitCanAttack("unit", "otherUnit") - Returns true if the first unit can attack the second, false otherwise.
UnitCanCooperate("unit", "otherUnit") - Returns true if the first unit can cooperate with the second, false otherwise.
UnitCharacterPoints("unit") - ?.
UnitClass("unit") - Returns the class name of the specified unit (e.g., "Warrior" or "Shaman").
UnitClassification("unit") - Returns the classification of the specified unit (e.g., "elite" or "worldboss").
UnitCreatureFamily("unit") - Returns the type of creature of the specified unit (e.g., "Crab").
UnitCreatureType("unit") - Returns the classification type of creature of the specified unit (e.g., "Beast").
UnitDamage("unit") - Returns the damage statistics relevant to the specified unit.
UnitDebuff("unit", index) - Retrieves info about a debuff of a certain unit.
UnitDefense("unit") - ?.
UnitExists("unit") - Returns true if the specified unit exists, false otherwise.
UnitFactionGroup("unit") - Returns the faction group id and name of the specified unit. (eg. "Alliance")
UnitFacing("unit") - Returns the direction in which the unit is facing (Counterclockwise radians, from North) - REMOVED IN 1300 -- Flickering 16:51, 22 Mar 2005 (EST)
UnitHealth("unit") - Returns the current health, in points, of the specified unit.
UnitHealthMax("unit") - Returns the maximum health, in points, of the specified unit.
UnitInParty("unit") - Returns true if the specified unit is in the same party as the player, false otherwise.
UnitIsCharmed("unit") - Returns true if the specified unit is charmed, false otherwise.
UnitIsConnected("unit") - Returns 1 if the specified unit is connected or npc, nil if offline or not a valid unit.
UnitIsCorpse("unit") - Returns true if the specified unit is a corpse, false otherwise.
UnitIsDead("unit") - Returns true if the specified unit is dead, false otherwise.
UnitIsDeadOrGhost("unit") - Returns true if the specified unit is dead or a ghost, false otherwise.
UnitIsEnemy("unit", "otherUnit") - Returns true if the specified units are enemies, false otherwise.
UnitIsFriend("unit", "otherUnit") - Returns true if the specified units are friends, false otherwise.
UnitIsGhost("unit") - Returns true if the specified unit is a ghost, false otherwise.
UnitIsPVP("unit") - Returns true if the specified unit is flagged for PVP, false otherwise.
UnitIsPVPFreeForAll("unit") - Returns true if the specified unit is flagged for free-for-all PVP, false otherwise.
UnitIsPartyLeader("unit") - Returns true if the specified unit is the leader of the player's party, false otherwise.
UnitIsPlayer("unit") - Returns true if the specified unit is a player character, false otherwise.
UnitIsPlusMob("unit") - Returns true if the specified unit is a mob, more powerful than its nominal level, false otherwise (e.g., "elite" mobs) - Rumors of its demise were incorrect -- my bad -- Flickering 13:39, 25 Mar 2005 (EST)
UnitIsTapped("unit") - Returns true if the specified unit is tapped, false otherwise.
UnitIsTappedByPlayer("unit") - Returns true if the specified unit is tapped by a player, false otherwise.
UnitIsTrivial("unit") - Returns true if the specified unit is trivial (Trivial means the unit is "grey" to the player. --Antiarc 16:02, 30 Jan 2005 (EST)), false otherwise.
UnitIsUnit("unit", "otherUnit") - Returns true if the two specified units refer to the same unit (e.g., "player" and "target" can refer to the same unit), false otherwise.
UnitLevel("unit") - Returns the level of the unit referred to by the local naming schema.
UnitMana("unit") - Returns the current mana, in points, of the specified unit.
UnitManaMax("unit") - Returns the maximum mana, in points, of the specified unit.
UnitName("unit") - Returns the name of the unit referred to by the local naming schema.
UnitPVPName("unit") - ?.
UnitPlayerControlled("unit") - Returns true if the specified unit is controlled by a player, false otherwise.
UnitPowerType("unit") - Returns a number corresponding to the power type (e.g., mana, rage or energy) of the specified unit.
UnitRace("unit") - Returns the race name of the specified unit (e.g., "Human" or "Troll").
UnitRangedAttack("unit") - Returns the ranged attack number of the unit.
UnitRangedAttackPower("unit") - Returns the ranged attack power of the unit.
UnitRangedDamage("unit") - Returns the ranged attack speed and damage of the unit.
UnitReaction("unit", "otherUnit") - Returns a number corresponding to the reaction (aggressive, neutral or friendly) of the first unit towards the second unit.
UnitResistance("unit", "resistanceIndex") - Returns the resistance statistics relevant to the specified unit and resistance type.
UnitSex("unit") - Returns 1 if the specified unit is female, zero otherwise.
UnitStat("unit", statIndex) - Returns the statistics relevant to the specified unit and basic attribute (e.g., strength or intellect).
UnitXP("unit") - Returns the number of experience points the specified unit has in their current level.
UnitXPMax("unit") - Returns the number of experience points the specified unit needs to reach their next level.

--------------------------------------------------------------------------------
[edit]New Functions
add functions whose group is not clear here

Example Function

GetFarclip() - Get the world appearance Terrain Distance.
SetFarclip(value) - Set the world appearance Terrain Distance (177-777).
GetWorldDetail() - Get the world appearance Environment Detail.
SetWorldDetail(value) - Set the world appearance Environment Detail (0,1,2).
GetBaseMip() - Get the world appearance Texture Detail.
SetBaseMip(value) - Set the world appearance Texture Detail (0,1).
GetTerrainMip() - Get the world appearance Terrain Texture.
SetTerrainMip(value) - Set the world appearance Terrain Texture (0,1).
ShowingCloak() - Return 1 if player's cloak is displayed, nil otherwise.
ShowingHelm() - Return 1 if player's helm is displayed, nil otherwise.
ShowCloak(flag) - Set whether player's cloak is displayed.
ShowHelm(flag) - Set whether player's helm is displayed.
GetBuildVersion() - Return the build version of the game (e.g. "1.2.1")
GetDodgeChance() - Return's the player's percentage dodge chance.
GetParryChance() - Return's the player's percentage parry chance.
CheckSpiritHealerDist()
ClearTutorials()
ConfirmSummon()
ConsoleExec("command")
DeleteGMTicket()
DemoteAssistant(x)
FlagTutorial("tutotial")
InCinematic()
IsResting()
LaunchURL("URL")
ResetTutorials()
FollowByName("name")
FrameXML_Debug(flag)
GetActiveTitle(index)
GetAvailableTitle(index)
GetBindLocation()
GetBonusBarOffset()
GetCoinIcon(amount)
GetComboPoints()
GetCorpseRecoveryDelay()
GetCurrentPosition() - REMOVED IN 1300 -- Flickering 16:43, 22 Mar 2005 (EST)
GetCurrentResolution()
GetCursorPosition()
GetDebugStats()
GetFramerate()
GetGMStatus()
GetGMTicket()
GetGMTicketCategories()
GetGreetingText()
GetInstanceBootTimeRemaining()
GetLanguageByIndex(index)
GetMeetingStoneStatusText()
GetMoney()
GetNetStats()
GetNextStableSlotCost()
GetNumLaguages()
GetNumShapeshiftForms()
GetNumStableSlots()
GetNumStationeries()
GetNumWhoResults()
GetObjectiveText()
GetProgressText()
GetReleaseTimeRemaining()
GetResSicknessDuration()
GetRestState()
GetSelectedStationeryTexture()
GetShapeshiftFormCooldown(index)
GetShapeshiftFormInfo(index) - Retrieves information about an available ShapeshiftForm or Stance.
GetStationeryInfo(index)
GetSummonConfirmAreaName()
GetSummonConfirmSummoner()
GetSummonConfirmTimeLeft()
GetTimeToWellRested()
GetTitleText()
GetTrackingTexture()
GetWhoInfo(index)
GetXPExhaustion()
HasFullControl()
HasSoulstone()
HideNameplates()
IsCurrentCast(id,bookType)
IsInMeetingStoneQueue()
IsInventoryItemLocked(id)
NewGMTicket(type,"text")
NotifyInspect("unit")
OffhandHasWeapon()
PickupTradeMoney(amount)
PlayVocalCategory("category") - REMOVED IN 1300 -- Flickering 16:43, 22 Mar 2005 (EST)
PromoteToAssistant("name")
PurchaseSlot()
ReplaceEnchant()
RepopMe() - The "Release Spirit" button. Sends you to the graveyard when dead. -Moof
ReportBug("text") - REMOVED IN 1300 -- Flickering
ReportNote("text") - REMOVED IN 1300 -- Flickering
ReportSuggestion("text","category") - REMOVED IN 1300 -- Flickering
RequestTimePlayed()
ResurrectHasSickness()
RetrieveCorpse()
RunScript("script")
SelectStationery(index)
SendWho("filter")
SetBagPortaitTexture(texture,slot)
SetPortraitTexture(texture,"unit")
SetPortraitToTexture(x,x)
SetTradeMoney(amount)
SetWhoToUI(x)
ShowContainerSellCursor(index,slot)
ShowInspectCursor()
ShowNameplates()
SortWho(sortType)
SplitContainerItem(index,slot,amount)
SplitMoney("goldsilvercopper")
StartDuel("unit")
StopCinematic()
TutorialsEnabled()
UpdateGMTicket(type,"text")
UseSoulstone()
[edit]Widget Specific Functions
The Widget API has been moved onto its own page. All of the documentation that was linked from here is now linked from there (Verified -- Flickering 23:43, 6 Feb 2005 (EST)).
发表于 2005-4-28 22:13:20 | 显示全部楼层
Warcraft 世界API
从WoWWiki
目录[ showhide ]  
1 次记法和大会

2 种数据和论据类型

3 个全球性作用小组

3.1 行动作用
3.2 活动作用
3.3 拍卖作用
3.4 银行作用
3.5 战场作用
3.6 照相机作用
3.7 海峡作用
3.8 字符作用
3.9 闲谈作用
3.10 制作作用
3.11 派别作用
3.12 朋友作用
3.13 闲话作用
3.14 小组作用
3.15 协会作用
3.16 忽略作用
3.17 项目作用
3.18 项目文本作用
3.19 存货作用
3.20 战利品作用
3.21 宏观作用
3.22 邮件作用
3.23 地点作用
3.24 映射函数
3.25 算术作用
3.26 商人作用
3.27 混杂作用
3.28 运动作用
3.29 宠物作用
3.30 请愿作用
3.31 搜寻作用
3.32 袭击作用
3.33 设置作用
3.34 技巧作用
3.35 咒语作用
3.36 串作用
3.37 表作用
3.38 天分作用
3.39 Targetting 作用
3.40 出租汽车作用
3.41 乒乓键作用
3.42 贸易的作用
3.43 TradeSkill 作用
3.44 训练作用
3.45 单位作用
3.46 新作用


4 个装饰物具体作用

[ edit]Notation 和大会
功能名在这页并且包括用法信息(知道) 的地方, 大会为论据名单从Warcraft 用法格式世界被获得, 以轻微的变动使他们Wiki 链接友好。它大概最容易显示大会由例子:

SetMapZoom(continentIndex{, zoneIndex}) - 集合当前的世界地图对一个具体大陆和任意地分区。
这个作用占去二个论据, 卷曲括号表明, 第二个论据是任意的(标准格式将使用方括号, 但这些干涉Wiki 链接, 因此如果包括作用论据在我们使用卷曲括号) 的链接描述。

TargetUnit("unit") - 选择指定的id 作为当前的目标。
行情在单位论据附近在这个作用表明, 参量是串。它不意味, 论据总(和在许多情况下, 曾经) 是逐字价值"单位" 。

FrameLayout:GetHeight() - 退回框架布局对象的高度。
这个例子表示, GetHeight() 作用叫作为一个方法作用在FrameLayout 对象(和, 它不采取论据) 。

当增加新词条来这页, 请跟随这次大会为一贯性, 因为实际页名字是词API 被空间跟随和功能名(没有论据信息), 链接被写如下:

: [ [ API SetMapZoom|SetMapZoom(continentIndex{, zoneIndex}) ] ]
为对象方法, 名字包括目标类型:

: [ [ API FrameLayout GetHeight|FrameLayout:GetHeight() ] ]
[ edit]Data 和论据类型
API 使用特别价值为一些作用论据, 常用的型是:

AuctionSortId - 一个标识符为排序专栏在拍卖场里。
AuctionTypeId - 标识符指定哪类型拍卖操作。
ChatTypeId - 一个标识符为不同的闲谈目的地类型。
LootRuleId - 一个标识符为不同的抢劫的规则类型。
PlayerName - 球员的名字。
UnitId - 指定单位的当中一个API 的标识符也许参考。
[ edit]Global 作用小组
这是一张残缺不全的名单。它也许充分地从未被完成或, 根据它的自然, 它也许是它可能从未是完全的。但是, 新和修改过的词条在名单总是受欢迎的。

这所有潜在的全球性作用名单: 全球性作用名单。如果您增加一个新词条, 请根据它空的模板。

Warcraft API 旧世界doc 当前是在 http://www.cosmosui.org/texts/BlizzardCommands.xml (http://www.cosmosui.org/texts/BlizzardCommands.xml) (过时) 。

[ edit]Action 作用
这些作用是那些经营与行动按钮(一般球员行动是可能的在活动作用部分如下) 。

ActionButtonDown(id) - 按指定的行动按钮(一部分的UI API, 不是核心) 。
ActionButtonUp(id) - 发布指定的行动按钮(一部分的UI API, 不是核心) 。。
BonusActionButtonDown - 触发指定的bonus(pet 或奴才) 行动按钮。(一部分的UI API, 不是核心) 。
BonusActionButtonUp - 发布指定的bonus(pet 或奴才) 行动按钮。(一部分的UI API, 不是核心) 。
ChangeActionBarPage() - 当前的行动按钮设置对CURRENT_ACTIONBAR_PAGE 的变动。
GetActionBarToggles() - 退回乒乓开关为各个行动酒吧1300 (新) 。
GetActionCooldown(slot) - 这退回指定的行动的cooldown 价值。
GetActionCount(slot) - 得到计数(bandage/potion/etc) 为行动, 回归0 如果无或不可适用。
GetActionText(slot) - 得到文本标签(宏指令, 等) 为行动, 回归零如果无。
GetActionTexture(slot) - 得到纹理道路为指定的行动。
GetBindingAction("key") - 退回约束行动的名字与相关钥匙。
HasAction(slot) - 回归1 如果球员有一次行动在指定的槽孔, 零否则。
IsActionInRange(slot) - 测试如果行动是在范围(1=yes, 0=no, nil=not 可适用) 。
IsAttackAction(slot) - 退回1 如果行动是' 攻击' 行动(闪光在作战期间), 零否则。
IsAutoRepeatAction(slot) - 退回1 如果行动自动重覆, 零否则。
IsCurrentAction(slot) - 退回1 如果行动当前是那个进行中, 零否则。
IsUsableAction(slot) - 退回1 如果行动可能当前被使用, 零否则。
PickupAction(slot) - 阻力一次行动在指定的quickbar 槽孔和举行外面它在游标。
PlaceAction(slot) - 下落一次行动从游标入指定的quickbar 槽孔。
SetActionBarToggles(show1, show2, show3, 1300 show4) - 集合展示乒乓开关为各个行动酒吧(新)
TurnOrActionStart -? 。
TurnOrActionStop -? 。
UseAction(slot, {checkCursor {, onSelf}} - 这指示接口使用行动与相关指定的身份证, 任意地在球员(不管目标) 。
[ edit]Activity 作用
这个部分是为使球员做某事的作用(和在别处不报道) 。

AcceptDuel() - 球员接受挑战决斗。
AcceptTrade() - 即将发生的贸易将被接受。
AddTradeMoney() - 增加金钱投下入球员的商业框架。
AssistByName("name") - 协助名字被输入的球员。
AssistUnit("unit") - 指示您的字符协助指定的单位。
AttackTarget() - 攻击targetted 单位。
BeginTrade() - 从目标开始贸易。
BuyStableSlot()
CancelDuel() - 拒绝邀请参加决斗。
CancelLogout()
CancelMeetingStoneRequest()
CancelPendingEquip(index)
决斗- 决斗一名指定的用户名义上。(不再合法-- 闪烁的14:38, 2005 年1月1 日(EST))
EnablePVP()
Jump() - 球员跳。
SitOrStand() - 球员坐或站立。
StartDuelUnit("unit") - 质询单位对决斗。
ToggleSheath() - 乒乓开关被覆盖或unsheathed 武器。
[ edit]Auction 作用
CalculateAuctionDeposit(runTime) - 回归必需的储蓄为当前的销售的项目被给指定的期间(分钟) 。
CanSendAuctionQuery() - 退回1 如果拍卖查寻按钮会是活跃的, 零否则。
CancelAuction(index) - 取消指定的拍卖(在"所有者" 名单) 。
ClickAuctionSellItemButton() -? 。
CloseAuctionHouse() - 将结束AuctionFrame 如果打开。
GetAuctionHouseDepositRate() - 回归储蓄率(百分比) 为当前开放拍卖场(可能过时由CalculateAuctionDeposit) 。
GetAuctionInvTypes(classIndex, subclassIndex) - 回归类型次种类项目。
GetAuctionItemClasses() - 回归主要拍卖项目类别。
GetAuctionItemInfo("type", 索引) - 关于指定的拍卖项目的回归细节。
GetAuctionItemLink("type", 索引) - 回归链接串为指定的拍卖项目。
GetAuctionItemSubClasses(classIndex) - 回归次种类在第n 个拍卖类别。
GetAuctionItemTimeLeft("type", 索引) - 回归时间留下指定的拍卖项目的状况。
GetAuctionSellItemInfo() - 关于当前的销售的项目(或零的回归信息如果无选择) 。
GetBidderAuctionItems({page}) -? 。
GetNumAuctionItems("type") - 回归指定的拍卖项目名单的大小。
GetOwnerAuctionItems({page}) -? 。
GetSelectedAuctionItem("type") -? 。
IsAuctionSortReversed("type", "排序") - 回归1 如果指定的拍卖名单和排序被扭转, 零否则。
PlaceAuctionBid("type", 索引, 出价) - 安置一个出价在选择的拍卖项目。
QueryAuctionItems("name", minLevel 、maxLevel 、invTypeIndex 、classIndex 、subclassIndex, 页, isUsable, qualityIndex) -? 。
SetSelectedAuctionItem("type", 索引) -? 。
SortAuctionItems("type", "排序") - 请求, 指定的拍卖名单由一个具体专栏排序。
StartAuction(minBid, buyoutPrice, 运行时间) - 列出选择的销售的项目在拍卖场里。
[ edit]Bank 作用
CloseBankFrame()
GetBankSlotCost(numSlots)
GetNumBankSlots()
[ edit]Battlefield 作用
CloseBattlefield() -? 。
GetBattlefieldInfo(index) -? 。
GetNumBattlefields() -? 。
GetSelectedBattlefield() -? 。
JoinBattlefield(index) -? 。
SetSelectedBattlefield(index) -? 。
[ edit]Camera 作用
CameraOrSelectOrMoveStart -? 。
CameraOrSelectOrMoveStop -? 。
CameraZoomIn -? 。
CameraZoomOut -? 。
FlipCameraYaw -? 。
MoveViewDownStart -? 。
MoveViewDownStop -? 。
MoveViewInStart -? 。
MoveViewInStop -? 。
MoveViewLeftStart -? 。
MoveViewLeftStop -? 。
MoveViewOutStart -? 。
MoveViewOutStop -? 。
MoveViewRightStart -? 。
MoveViewRightStop -? 。
MoveViewUpStart -? 。
MoveViewUpStop -? 。
NextView -? 。
PitchDownStart -? 。
PitchDownStop -? 。
PitchUpStart -? 。
PitchUpStop -? 。
PrevView -? 。
ResetView -? 。
SaveView -? 。
SetView -? 。
[ edit]Channel 作用
AddChatWindowChannel(index, "渠道")
ChannelBan("channel", "名字") - 禁令一个球员从指定的渠道。
ChannelInvite("channel", "名字") - 邀请指定的用户到渠道。
ChannelKick("channel", "名字") - 解雇指定的用户从渠道。
ChannelModerate("channel") -? 。
ChannelModerator("channel", "名字") - 集合指定的球员作为渠道调解人。
ChannelMute("channel", "名字") - 关闭指定的球员的能力讲话在渠道。
ChannelToggleAnnouncements("channel") - 乒乓开关渠道显示公告或或。
ChannelUnban("channel", "名字") - Unbans 一个球员从渠道。
ChannelUnmoderator("channel", "名字") - 作为指定的用户从调解人状态。
ChannelUnmute("channel", "名字") - Unmutes 指定的用户从渠道。
DisplayChannelOwner("channel") - 显示指定的渠道的所有者在缺省闲谈。
EnumerateServerChannels() -? 。
GetChannelList() -? 。
GetChannelName("channel" 或索引) - 检索名字从一种具体渠道。
GetChatWindowChannels(index) -? 。
JoinChannelByName("channel") -? 。
LeaveChannelByName("channel") - 叶子渠道以指定的名字。
ListChannelByName(channelMatch) - 名单匹配指定的正则表达式的全部渠道。
ListChannels() - 名单全部渠道入闲谈窗口。
RemoveChatWindowChannel(index, "渠道") -? 。
SetChannelOwner("channel", "名字") -? 。
SetChannelPassword("channel", "密码") - 变动当前的渠道的密码。
[ edit]Character 作用
AbandonSkill - 球员摒弃技巧。
AcceptResurrect - 球员接受请求从其它球员复活him/herself 。
AcceptSkillUps()
AcceptXPLoss - 接受XP 损失是再生的您站立的地方(名字是有些时代错误, 因为这现在是丢失) 的耐久性而不是XP 。
AddFriend - 增加一个朋友来您的朋友名单。
AddIgnore - 增加一个球员来您忽略名单。
AddOrDelIgnore - 乒乓开关指定的用户的忽略状态。
AddSkillUp(index)
BuySkillTier(index)
CancelPlayerBuff(buffIndex)
CancelSkillUps()
CancelTrackingBuff()
CastShapeshiftForm(index)
DeclineResurrect() - 拒绝请求从其它球员到resurect him/herself 。
GetPlayerBuff - 检索信息关于有些作用(有利, 有害或被动)
GetPlayerBuffTexture - 检索纹理标识符为某一buff
GetPlayerBuffTimeLeft - 检索多久buff 将持续在到期之前
RessurectHasTimes() -? 1300 (新)
[ edit]Chat 作用
ChangeChatColor(chatType, r, g, b) - 更新颜色为类型闲谈消息。
DoEmote("emote"{, "目标"}) - 执行声音表现感情, 任意地在一个具体目标。
GetChatTypeIndex(type) - 得到类型的数字身份证闲谈消息。
GetChatWindowInfo(index) - 得到设定关于闲谈窗口的信息。
GetChatWindowMessages(index) - 得到闲谈消息类型由闲谈窗口接受。
GetChatWindowChannels(index) - 得到闲谈渠道由闲谈窗口接受。
PlayVocalCategory("Category") - 被去除在1.3.0
RemoveChatWindowMessages(index, "messageGroup") - 从这个窗口去除一套闲谈消息。
SendChatMessage("message", "system" 、"language", "渠道") - 送闲谈信
SetChatWindowAlpha(index, alpha) - 集合ChatFrame<index 阿尔法value(transparency) >
SetChatWindowColor(index, r, g, b) - 集合背景颜色的闲谈窗口。
SetChatWindowDocked(index, docked) - 设置是否闲谈窗口靠码头。
SetChatWindowLocked(index, locked) - 集合ChatFrame<index > 以便它是或不是可移动的。
SetChatWindowName(index, "名字") - 集合ChatFrame<index 的名字> < "命名" > 。
SetChatWindowShown(index, shown) - 展示或掩藏ChatFrame<index > 根据价值的< 显示>
SetChatWindowSize(index, size) - 集合闲谈窗口的字体大小。
[ edit]Crafting 的作用
参见TradeSkill 作用- 这些代替了老制作的作用为多数(但不是所有- 迷惑) 技能。
CloseCraft()
CollapseCraftSkillLine(index)
DoCraft(index)
ExpandCraftSkillLine(index)
GetCraftButtonToken()
GetCraftDescription(index)
GetCraftDisplaySkillLine()
GetCraftIcon(index)
GetCraftInfo(index)
GetCraftItemLink(index)
GetCraftName()
GetCraftNumReagents(index)
GetCraftReagentInfo(index, reagentIndex)
GetCraftReagentItemLink(index, reagentIndex)
GetCraftSelectionIndex()
GetNumCrafts()
SelectCraft(index)
[ edit]Faction 作用
CollapseFactionHeader(index)
ExpandFactionHeader(index)
FactionToggleAtWar(index)
GetFactionInfo(index)
GetNumFactions()
[ edit]Friend 作用
GetFriendInfo(index)
GetNumFriends()
GetSelectedFriend()
RemoveFriend("name" 或索引)
SetSelectedFriend(index)
ShowFriends()
[ edit]Gossip 作用
CloseGossip()
GetGossipOptions()
GetGossipText()
SelectGossipOption(index)
[ edit]Group 作用
AcceptGroup() - 接受邀请party 。
DeclineGroup() - 下降邀请到党。
GetLookingForGroup()
GetLootMethod() - 退回当前活跃战利品方法
GetLootRollItemInfo(rollId)
GetLootRollTimeLeft(rollid)
GetLootThreshold() - 退回当前的战利品门限(为小组战利品)
GetMasterLootCandidate() - 返回接受战利品在主要方式下的球员
GetNumPartyMembers() - 回归党员的数量
GetPartyLeaderIndex()
GetPartyMember(id) - 回归党员的索引在指定的索引如果那个党槽孔被填装, 否则零。
GiveMasterLoot(slot, index)
InviteByName("name") - 邀请指定的球员到发令者当前是的小组。
InviteToParty("unit") - 邀请单位到党。
IsPartyLeader() - 回归配齐如果球员是党的领导。
LeaveParty() - 放弃党。
PromoteByName("name") - 促进名义上目标。
PromoteToPartyLeader("unit") - 促进单位对党的领导。
RollOnLoot(rollId{, 卷})
SetLookingForGroup(flag)
SetLootMethod("method"{, "masterPlayer" 或, 门限}) - 设置当前的战利品方法
SetLootThreshold(threshold) - 设置门限为小组战利品
UninviteByName("name") - Uninvites (解雇) 目标从当前的小组如果球员是小组领导。
UninviteFromParty("unit") - 踢一个单位从党如果球员是小组领导。
UnitInParty("unit") - 回归配齐如果单位是您的党的成员。
UnitIsPartyLeader("unit") - 回归配齐如果单位是它的partyleader 。
[ edit]Guild 作用
AcceptGuild() - 球员接受邀请加入协会。
BuyGuildCharter("guildName") - 购买一部协会宪章为guildName 。
CanEditMOTD() -? 。
CanEditOfficerNote() -? 。
CanEditPublicNote() -? 。
CanGuildDemote() -? 。
CanGuildInvite() -? 。
CanGuildPromote() -? 。
CanGuildRemove() -? 。
CanViewOfficerNote() -? 。
CloseGuildRegistrar() -? 。
CloseTabardCreation()
DeclineGuild() -? 。
GetGuildCharterCost() - 回归购买协会宪章的费用。
GetGuildInfo("unit") - 这个作用退回协会单位的名字属于。
GetGuildRosterInfo(index) -? 。
GetGuildRosterLastOnline(index) -? 。
GetGuildRosterMOTD() -? 。
GetGuildRosterSelection() -? 。
GetGuildRosterShowOffline() -? 。
GetNumGuildMembers() -? 。
GetTabardCreationCost()
GetTabardInfo() -? 。
GuildControlAddRank("name") -? 。
GuildControlDelRank -? 。
GuildControlGetNumRanks() -? 。
GuildControlGetRankFlags() -? 。
GuildControlGetRankName(index) -? 。
GuildControlSaveRank("name") -? 。
GuildControlSetRank(rank) -? 。
GuildControlSetRankFlag(index, 使能) -? 。
GuildDemoteByName("name") -? 。
GuildDisband() -? 。
GuildInfo() - 关于协会的显示信息您是成员。
GuildInviteByName("name") -? 。
GuildLeave() -? 。
GuildPromoteByName("name") -? 。
GuildRoster() - 取指令协会名单和火GUILD_ROSTER_SHOW 事件。
GuildRosterSetOfficerNote(index, "笔记") -? 。
GuildRosterSetPublicNote(index, "笔记") -? 。
GuildSetLeaderByName("name") -? 。
GuildSetMOTD("note") -? 。
GuildUninviteByName("name") -? 。
IsGuildLeader() -? 。
IsInGuild() - 告诉您是否您是在协会。
SetGuildRosterSelection(index) -? 。
SetGuildRosterShowOffline(enabled) -? 。
SortGuildRoster("sort") -? 。
TurnInGuildCharter() -? 。
[ edit]Ignore 作用
DelIgnore("name")
GetIgnoreName(index)
GetNumIgnores()
GetSelectedIgnore()
SetSelectedIgnore(index)
[ edit]Item 作用
AutoEquipCursorItem - 起因设备在游标被装备。
ConfirmBindOnUse()
DeleteCursorItem()
CursorHasItem() - 回归配齐如果游标当前拿着一个项目
GetBuybackItemInfo()
GetRepairAllCost()
HideRepairCursor()
InRepairMode()
RepairAllItems()
ShowRepairCursor()
[ edit]Item 文本作用
这些作用与项目文本关系(书, 等)

CloseItemText() - 接近开放项目文本(书、匾, 等) 。
ItemTextGetCreator() - 得到当前的文本的创作者(如果球员创造) 。
ItemTextGetItem() - 得到文本的名字。
ItemTextGetMaterial() - 得到文本打印的材料。
ItemTextGetPage() - 得到当前被观看的页的页数。
ItemTextGetText() - 得到当前被观看的页的页内容。
ItemTextHasNextPage() - 确定如果有其它页在当前一个以后。
ItemTextNextPage() - 请求文本的下页。
ItemTextPrevPage() - 请求文本的前页。
[ edit]Inventory 作用
BankButtonIDToInvSlotID - 回归一个银行按钮的身份证数字根据存货槽孔身份证。
GetInventoryItemLink(unit, itemID) - 得到文本链接对一种具体库存项目
ContainerIDToInventoryID(containedID)
CursorCanGoInSlot(slot)
EquipPendingItem(slot)
GetBagName(index) - 得到名字的球员的袋子的当中一个。
GetContainerItemCooldown(index, slot)
GetContainerItemInfo(index, slot) - 得到信息为一个项目在球员的袋子的当中一个中。
GetContainerItemLink(index, slot)
GetContainerNumSlots(index)
GetInventoryAlertStatus(index)
GetInventoryItemBroken("unit", slot)
GetInventoryItemCooldown("unit", slot)
GetInventoryItemCount("unit", slot)
GetInventoryItemTexture("unit", slot)
GetInventorySlotInfo(slot) - 得到信息为一个项目在球员的存货。
PickupBagFromSlot(slot)
PickupContainerItem(index, slot)
PickupInventoryItem(index)
PutItemInBackpack()
PutItemInBag(inventoryId)
UpdateInventoryAlertStatus()
UseContainerItem(index, slot)
UseInventoryItem(id)
[ edit]Loot 作用
CloseLoot({uiFailedFlag})
ConfirmLootRoll(slot) - 证实战利品卷1300 (新)
GetLootSlotInfo(slot) - 回归像道路、项目名字, 和项目数量。
GetLootSlotLink(slot)
GetNumLootItems() - 回归相当数量对象对战利品(数字)
IsFishingLoot()
LootSlot(slot)
LootSlotIsCoin(slot)
LootSlotIsItem(slot)
[ edit]Macro 作用
CreateMacro("name", 像, "身体", 地方) - 创造一个新宏指令。
DeleteMacro(index) - 删除宏指令。
EditMacro(index, "名字", iconIndex, "身体", 地方) - 保存一个宏指令。
GetMacroIconInfo(index) - 像的回归纹理提供了由Blizzard 。
GetMacroIndexByName("name") - 回归宏指令索引。
GetMacroInfo(index) - 回归"名字", iconTextureID, "身体", 地方。
GetNumMacroIcons() - 能用的像的数量提供由Blizzard 的回归。
GetNumMacros() - 回归用户有宏指令的数量。
PickupMacro(index) - 搭便车一个宏观按钮像。
RunMacro - 这不看上去存在再闪烁的18:41, 2005 年1月1 日(EST) 。
SaveMacros() - 之外所有宏指令对WTF/Account/user/macros-local.txt 。
[ edit]Mail 作用
Globals 联系了邮件。

事件联系了邮件。




AddSendMailCOD() - 这不看上去存在任何更长。-- 臭虫18:43, 2005 年二月4 日(EST)
AddSendMailMoney() - 这不看上去存在任何更长。-- 臭虫18:54, 2005 年二月4 日(EST)
CheckInbox() -? 。
ClearSendMail() - 这清除文本在送邮件制表符和安置鳕鱼项目在存货。-- 臭虫15:52, 2005 年二月6 日(EST)
ClickSendMailItemButton() - 这似乎模仿点击在送项目邮件槽孔(将搭便车项目那里) 。-- 臭虫18:59, 2005 年二月4 日(EST)
CloseMail() - 关上邮件窗口。-- 臭虫19:04, 2005 年二月4 日(EST)
DeleteInboxItem(index) -? 。
GetInboxHeaderInfo(index) - 关于一则消息的回归信息在inbox 。
GetInboxItem(index) - 回归描述附件附有消息在(索引) 。
GetInboxNumItems() - 回归消息的数量在您的inbox 。
GetInboxText(index) - 回归消息文本在(索引) 。
GetNumPackages() - 不充分地被实施。它总当前退回1 。-- 臭虫16:28, 2005 年二月6 日(EST)
GetNumStationeries() - 不充分地被实施。它总当前退回2 。-- 臭虫16:28, 2005 年二月6 日(EST)
GetPackageInfo(index) - 不充分地被实施。索引1 当前退回"测试包裹" 。-- 臭虫16:28, 2005 年二月6 日(EST)
GetSelectedStationeryTexture() - 不充分地被实施。它当前退回"STATIONERYTEST" 当邮箱是开放。-- 臭虫16:28, 2005 年二月6 日(EST)
GetSendMailCOD() -? 。
GetSendMailItem() -? 。
GetSendMailMoney() -? 。
GetSendMailPrice() -? 。
GetStationeryInfo(index) - 不充分地被实施。索引1 当前退回"文具缺省", 和2 回归"测试文具" 索引。-- 臭虫
HasNewMail() - 回归零如果没有新邮件。-- 臭虫19:14, 2005 年二月4 日(EST)
InboxItemCanDelete(index) -? 。
PickupSendMailCOD(amount) - 这不看上去存在任何更长。-- 臭虫15:45, 2005 年二月6 日(EST)
PickupSendMailMoney(amount) - 这不看上去存在任何更长。-- 臭虫15:45, 2005 年二月6 日(EST)
ReturnInboxItem(index) -? 。
SelectPackage(index) - 不充分地被实施。它做没什么可看见。-- 臭虫16:28, 2005 年二月6 日(EST)
SelectStationery(index) - 不充分地被实施。它做没什么可看见。-- 臭虫16:28, 2005 年二月6 日(EST)
SendMail("target", "主题", "身体") - 如果邮箱是开放, 这送邮件。-- Buttahcup 2005 年二月4 日
SetSendMailCOD(amount) -? 。
SetSendMailMoney(amount) -? 。
TakeInboxItem(index) - 采取附加的项目从邮箱消息在索引。
TakeInboxMoney(index) -? 。
TakeInboxTextItem(index) -? 。
[ edit]Location 作用
这些作用与球员的当前地点有关和怎么它被显示。

Globals 联系了地点。

事件联系了地点。




GetMinimapZoneText() - 回归区域文本, 那被显示在minimap 。
GetRealZoneText() - 回归或举例名字或区域名字
GetSubZoneText() - 回归subzone 文本(即"运河") 。
GetZonePVPInfo() - 回归PVP 信息为当前的区域。
GetZoneText() - 回归区域文本(即"Stormwind 市") 。
[ edit]Mapping 的作用
这些作用与世界地图的显示有关。

GetCorpseMapPosition() - 回归postion 尸体在当前的世界地图。
GetCurrentMapContinent() - 回归世界地图当前显示大陆的数字。
GetCurrentMapZone() - 回归世界地图当前显示区域的数字。
GetMapContinents() - 回归大陆名字。
GetMapInfo() - 回归当前的世界地图的名字和大小。
GetMapLandmarkInfo(landmarkIndex) - 关于一个地标的回归信息在当前的世界地图。
GetMapOverlayInfo(overlayIndex) - 关于一件覆盖物的回归信息在当前的世界地图。
GetMapZones(continentIndex) - 回归大陆的区域名字。
GetNumMapLandmarks() - 回归地标的数量在当前的世界地图。
GetNumMapOverlays() - 回归覆盖物的数量在当前的世界地图。
GetPlayerMapPosition("unit") - 回归一个单位的postion 在当前的世界地图。
ProcessMapClick(x, y) - 通行证点击对客户, 然后计算如果区域必须被改变。
SetMapToCurrentZone() - 集合当前的世界地图对区域球员目前是。
SetMapZoom(continentIndex{, zoneIndex}) - 集合当前的世界地图对一个具体大陆和任意地分区。
SetupWorldMapScale() - 配置世界地图标度最好填装屏幕。
UpdateMapHighlight(x, y) - 为突出提供地图大量突然跑气信息。
[ edit]Math 作用
这些算术作用是在是可利用的通过算术) 的LUA 算术图书馆的兼容性参考(, 一些与转换封皮。

abs(value) - 回归数字的绝对值。
acos(value) - 回归价值的弧余弦在程度。
asin(value) - 回归价值的弧正弦在程度。
atan(value) - 回归价值的弧正切在程度。
atan2(x, y) - 回归X/Y 弧正切在程度。
ceil(value) - 回归价值天花板。
acos(degrees) - 回归程度价值的余弦。
deg(radians) - 回归弧度价值的程度等值。
floor(value) - 回归价值地板。
frexp(num) - 萃取物尾数和方次数从一个浮点数字。
ldexp(value, 方次数) - 装载一个浮点数字的方次数。
exp(value) - 回归价值方次数。
log(value) - 回归价值对数。
log10(value) - 退回价值基地10 对数。
min(value{, 价值...}) - 输入数字极小值重视的回归。
max(value{, 价值...}) - 输入数字最大值重视的回归。
mod(value, modulus) - 回归浮点模数价值。
rad(degrees) - 回归程度价值的弧度等值。
random({{lower,}upper}) - 回归一个随机号(任意地一定整数价值)
randomseed(seed) - 播种冒充的随机号发电器
asin(degrees) - 回归程度价值的正弦。
sqrt(value) - 退回价值方根。
atan(degrees) - 回归程度价值的正切。
cos(radians) - 回归弧度价值的余弦。
sin(radians) - 回归弧度价值的正弦。
tan(radians) - 回归弧度价值的正切。
[ edit]Merchant 作用
BuybackItem() - 购买最后被卖的项目后面。
BuyMerchantItem(index {, qty}) - 购买一个项目从客商。
CanMerchantRepair() - 回归配齐如果客商能修理项目。
CloseMerchant() - 关上商人窗口。
GetMerchantItemInfo(index) - 关于项目的回归信息。
GetMerchantItemLink(index) - 回归链接到项目。
GetMerchantItemMaxStack(index) - 回归项目的最大数字在堆。
GetMerchantNumItems() - 回归项目的数量客商出售。
PickupMerchantItem(index) - 地方项目在游标。
ShowMerchantSellCursor(index) - 变动游标对商人出售游标。
Tooltip:SetMerchantItem("slot")
Tooltip:SetMerchantCompareItem("slot"{, 垂距})
[ edit]Miscellaneous 作用
AddChatWindowChannel - 增加闲谈渠道来闲谈窗口。
AddChatWindowMessages - 增加传讯小组来指定的闲谈窗口。
GetDate - 回归日期前个(主要) 补丁对Warcraft 世界作为串。- 去除在1.3.0. 。
GetDefaultLanguage - 得到缺省语言为被表明的球员。
GetGameTime - 回归时间在游戏。
GetScreenHeight - 回归窗口的高度在映像点。
GetTime - 回归代表流逝的时间从最后补丁日期的数字。
IsAltKeyDown - 回归配齐如果Alt键当前被压下。
IsControlKeyDown - 回归配齐如果控制键当前被压下。
IsShiftKeyDown - 回归配齐如果移位键当前被压下。
注销- 日志用户在比赛外面。
MouseIsOver - 确定是否老鼠是指定的框架。
NotWhileDeadError - 引起一个错误信息认为您无法做那当死者。
PlayMusic - 戏剧指定的MP3 。
PlaySound - 戏剧指定的固定音响效果。
PlaySoundFile - 戏剧指定的酣然的文件。
放弃- 放弃应用, 不是LUA 剧本。
RandomRoll - 做任意卷在二价值之间。
RegisterForSave("variable") - 登记可变物为保存在会议之间。
Screenshot - 作为screenshot 。
SendChatMessage(text, {, 型} {, 语言} {, targetPlayer}) - 送闲谈信(被去除的被回答的问题)
SetItemRef(itemLink) - 显示项目链接箱子。
StopMusic - 中止当前演奏的MP3 。
陷进- 通知游戏引擎, 球员是陷进。
TakeScreenshot - 作为screenshot 。
[ edit]Movement 作用
MoveBackwardStart - 球员开始搬走落后在指定的时间。
MoveBackwardStop - 球员停止搬走落后在指定的时间。
MoveForwardStart - 球员开始搬走今后在指定的时间。
MoveForwardStop - 球员停止搬走今后在指定的时间。
StrafeLeftStart - 球员开始扫射左在指定的时间。
StrafeLeftStop - 球员停止扫射左在指定的时间。
StrafeRightStart - 球员开始扫射在指定的时间。
StrafeRightStop - 球员停止扫射在指定的时间。
ToggleAutoRun - 轮自动跑或
ToggleRun - 乒乓开关在跑和走之间。
TurnLeftStart - 球员开始向左转在指定的时间。
TurnLeftStop - 球员停止向左转在指定的时间。
TurnRightStart - 球员开始向右转在指定的时间。
TurnRightStop - 球员停止向右转在指定的时间。
[ edit]Pet 作用
CastPetAction(index) - 熔铸对应的宠物技巧。
ClickStablePet(index) -? 。
ClosePetStables() -? 。
DropItemOnUnit("unit") - 下落一个项目从游标您的目标。
GetNumStablePets() -? 。
GetPetActionCooldown(index) - 回归cooldown 信息为宠物行动在specificed 宠物行动酒吧槽孔。
GetPetActionInfo(index) - 回归信息关于宠物行动在指定的宠物行动酒吧槽孔。
GetPetActionsUsable() - 回归价值表明如果球员的宠物的行动可能被使用此时。
GetPetExperience() - 回归宠物的当前的xp, 和总xp 要求为下个水平。
GetPetFoodTypes() - 食物名单键入球员的宠物的回归可能吃。
GetPetHappiness() - 回归宠物的幸福、损伤百分比, 和忠诚获取率。
GetPetIcon() - 回归道路到纹理对用途作为像为球员的宠物。
GetPetLoyalty() - 回归宠物的当前的忠诚水平的名字。
GetPetTimeRemaining() -? 。
GetPetTrainingPoints() - 回归宠物的当前的总和被使用的训练点。
GetSelectedStablePet() -? 。
GetStablePetFoodTypes(index) - 食物名单键入具体的回归stabled 宠物可能吃。
GetStablePetInfo(index) - 关于具体的回归信息stabled 宠物。
HasPetSpells() - 回归配齐如果球员有宠物拼写。
HasPetUI() - 回归配齐如果球员有宠物用户界面。
PetAbandon() - 永久地摒弃了您的宠物。
PetAggressiveMode() - 设置您的宠物在进取的方式下。
PetAttack() - 指示您的宠物攻击您的目标。
PetCanBeAbandoned() - 回归配齐如果宠物是abandonable 。
PetCanBeRenamed() - 回归配齐如果宠物可能改名。
PetDefensiveMode() - 设置您的宠物在防御方式下。
PetDismiss() - 遣散您的宠物。
PetFollow() - 指示您的宠物跟随您。
PetHasActionBar() -? 。
PetPassiveMode() - 设置您的宠物入被动方式。
PetRename("name") - 给宠物改名。
PetWait() - 指示您的宠物保留仍然。
PickupPetAction(index) -? 。
PickupStablePet(index) -? 。
SetPetAction(index) -?
SetPetStablePaperdoll("modelFrame") -? 。
TargetUnitsPet("unit") - 目标指定的单位的宠物, 如果你存在。
TogglePetAutocast(index) - 乒乓开关是否指定的宠物能力如果autocast 。
UnstablePet(index) -?
[ edit]Petition 作用
CanSignPetition() -? 。
ClosePetition() -? 。
GetNumPetitionNames() -? 。
GetPetitionInfo() -? 。
GetPetitionNameInfo(index) -? 。
OfferPetition() -? 。
RenamePetition("name") -? - 1300 (新)
SignPetition() -? 。
[ edit]Quest 作用
AbandonQuest - 摒弃指定的搜寻。
AcceptQuest - 接受指定的搜寻。
AddQuestWatch(x) - 增加搜寻来手表名单1300 (新) 。
CloseQuest -? 。
CollapseQuestHeader - 崩溃搜寻倒栽跳水。
CompleteQuest - 完成指定的搜寻。
ConfirmAcceptQuest - 接受搜寻。是。真正地接受它。
DeclineQuest - 衰落当前被提供的搜寻。
ExpandQuestHeader - 扩展搜寻倒栽跳水。
GetAbandonQuestName -? 。
GetGossipActiveQuests -? 。
GetGossipAvailableQuests -? 。
GetNumActiveQuests -? 。
GetNumAvailableQuests -? 。
GetNumQuestChoices -? 。
GetNumQuestItems - 回归项目的数量nessecary 完成特殊搜寻。
GetNumQuestLeaderBoards({questIndex}) -? 1300 (更新) 。
GetNumQuestLogChoices - 选择的数量某人有当得到搜寻项目的回归。
GetNumQuestLogEntries - 回归词条的数量在搜寻日志。
GetNumQuestLogRewards - 回归奖励的计数特殊搜寻的。
GetNumQuestRewards -? 。
GetNumQuestWatches() - 回归搜寻的数字观看激活1300 (新) 。
GetQuestBackgroundMaterial - 物质串联系特殊搜寻的回归。
GetQuestGreenRange -? 。
GetQuestIndexForTimer -? 。
GetQuestIndexForWatch(watchIndx) - 退回搜寻索引为指定的手表1300 (新)
GetQuestItemInfo - 关于搜寻项目的回归基本的信息。
GetQuestItemLink -? 。
GetQuestLogChoiceInfo - 一束数据关于搜寻奖励选择从搜寻采伐的回归。
GetQuestLogItemLink -? 。
GetQuestLogLeaderBoard(ldrIndex{, questIndex}) -? 1300 (更新) 。
GetQuestLogPushable - 回归配齐如果当前被装载的搜寻在搜寻窗口可能被分享。
GetQuestLogQuestText - 回归描述和宗旨要求为指定的搜寻。
GetQuestLogRequiredMoney -? 。
GetQuestLogRewardInfo - 回归堆奖励项目信息。
GetQuestLogRewardMoney - 数字代表相当数量铜返回由特殊搜寻的回归。
GetQuestLogRewardSpell -? 。
GetQuestLogSelection - 数字联系QuestLogSelection 索引的回归。
GetQuestLogTimeLeft -? 。
GetQuestLogTitle - 回归同具体QuestLog 标题联系在一起在比赛的串。
GetQuestMoneyToGet -? 。
GetQuestReward - 得到搜寻奖励被指定。
GetQuestText -? 。
GetQuestTimers - 回归全部搜寻定时器当前进展中。
GetRewardMoney -? 。
GetRewardSpell -? 。
GetRewardText -? 。
IsCurrentQuestFailed -? 。
IsQuestCompletable - 回归配齐如果搜寻是可能完成。
IsQuestWatched(questIndex) - 确定如果指定的搜寻观看1300 (新) 。
IsUnotOnQuest(questIndex, 1300 "单位") - 确定如果一个具体单位是在指定的搜寻(新) 。
QuestChooseRewardError - 错误的投掷当搜寻选择不运作的奖励方法。
QuestLogPushQuest - 发起分享当前被观看的搜寻在搜寻日志。
RemoveQuestWatch(index) - 去除搜寻手表1300 (新) {是索引搜寻或手表索引?) 。
SelectActiveQuest -? 。
SelectAvailableQuest -? 。
SelectGossipActiveQuest -? 。
SelectGossipAvailableQuest -? 。
SelectQuestLogEntry -? 。
SetAbandonQuest - 叫在AbandonQuest 之前。
[ edit]Raid 作用
ConvertToRaid() -? 。
GetNumRaidMembers() -? 。
GetRaidRosterInfo(index) -? 。
GetRaidRosterSelection -? 。
IsRaidLeader() -? 。
IsRaidOfficer() -? 。
RequestRaidInfo() -? 1300 (新) 。
SetRaidRosterSelection(index) -? 。
SetRaidSubgroup(index, 小群) -? 。
SortRaidRoster("type") - 没叫, 1300 年但有用法- 被去除-- 闪烁的17:04, 2005 年3月22 日(EST)
SwapRaidSubgroup(index1, index2 -? 。
UninviteFromRaid(index) -? 。
[ edit]Settings 作用
DefaultBindings()
ForceQuit()
GetBinding(index)
GetBindingKey("command")
GetCVar("varname")
GetCVarDefault("varname")
GetGamma()
GetLocale()
GetNumBindings()
GetRefreshRates(x)
GetScreenResolutions()
GetScreenWidth()
GetVideoCaps()
IsMacClient() - 检查客户系统
ReloadUI() - 再装UI 从源文件
ResetBindings()
ResetCursor()
ResetPerformanceValues()
RestartGx()
RunBinding("command")
SaveBindings()
SetBinding("key"{, "命令"})
SetCVar("cvar",value{, "scriptCVar"})
SetCursor("cursor")
SetGamma(value)
SetScreenResolution(x)
ToggleCollision()
ToggleCollisionDisplay()
TogglePerformanceDisplay()
TogglePerformanceValues()
TogglePlayerBounds()
TogglePortals()
ToggleTris()
[ edit]Skill 作用
CollapseSkillHeader(index)
ExpandSkillHeader(index)
GetAdjustedSkillPoints()
GetNumSkillLines() - 得到排数在技巧窗口, 包括倒栽跳水
GetSelectedSkill()
GetSkillLineInfo(index) - 获得信息为一个选择的技巧
RemoveSkillUp(index)
SetSelectedSkill(index)
[ edit]Spell 作用
CastSpell(spellID, spellbookTabNum) - 熔铸指定的咒语由身份证只现在将熔铸拼写在一般制表符。
CastSpellByName("name") - 熔铸指定的咒语由显示名字。不再功能。
GetCraftSpellFocus -? 。
GetNumSpellTabs() -?
GetQuestLogRewardSpell()
GetRewardSpell()
GetSpellCooldown(spellID, spellbookTabNum) -? 。
GetSpellName(spellID, "bookType") - 回归咒语名字和拼写等级为一个咒语在球员的spellbook 。
GetSpellTabInfo(spellbookTabNum) - 关于指定的spellbook 制表符的回归信息。
GetSpellTexture(spellID, spellbookTabNum) -? 。
IsSpellPassive(spellID, spellbookTabNum) -? 。
IsTrainerServiceLearnSpell(index)
PickupSpell(spellID, spellbookTabNum) - 装载一个行动按钮游标滴下入一个quickbar 槽孔。
PlayerHasSpells() -? 。
SpellCanTargetUnit("unit") - 回归配齐如果咒语等候目标选择可能被熔铸在指定的单位。
SpellIsTargeting() - 回归配齐如果咒语被熔铸了和等候目标选择。
SpellStopCasting() -? 。
SpellStopTargeting() - 取消咒语等候目标选择。
SpellTargetUnit("unit") - 塑像咒语等候目标选择在指定的单位。
ToggleSpellBook("bookType") - 展示spellbook 。能显示您拼写或您的宠物的。
UpdateSpells() -? 。
[ edit]String 的作用
这些串作用是在是可利用的通过串的LUA 串图书馆的兼容性参考(, 参见StringLibraryTutorial (http://lua-users.org/wiki/StringLibraryTutorial) 为更多信息),

strbyte(string{, 索引}) - 回归串我th 字符的内部数字编码
strchar({intval...}) - 回归串以长度相等与arhuments 的数字, 与各个字符被分配内码为那个论据。
strfind(string, pattern{、init{, 平原}}) - 寻找样式比赛在串, 任意地从具体地点或使用简单的子链。
format(formatstring{, 价值...}) - 退回格式化的串使用价值通过。
gsub(string, 样式、replacement{, limitCount}) - 用替换全球性地替代样式在串。
strlen(string) - 退回串的长度。
strlower(string) - 退回串以所有大写被改变到小写。
strrep(seed, count) - 退回是种子的计数拷贝的串。
strsub(string, index{, endIndex}) - 退回串子链开始在索引
strupper(string) - 退回串与所有小写被改变到大写。
[ edit]Table 作用
这些桌作用是在是可利用的通过桌的LUA 串图书馆的兼容性参考(, 参见TableLibraryTutorial (http://lua-users.org/wiki/TableLibraryTutorial) 为更多信息),

foreach(table, function) - 执行作用为各个元素在桌里。
foreachi(table, function) - 执行作用为各个元素在桌里, 索引被参观在连续次序。
getn(table) - 退回桌的大小当看见作为名单。
setn(table, n) - 集合桌的大小对t 。
sort(table{, comp}) - 排序元素在桌中就地, 任意地使用一台习惯比较器。
tinsert(table, {pos,}, value) - 插入价值入桌在位置pos (缺省对桌的末端)
tremove(table{, pos} - 去除和退回桌元素在位置pos (缺省对前个词条在桌里)
[ edit]Talent 作用
CheckTalentMasterDist()
ConfirmTalentWipe()
GetNumTalentTabs()
GetNumTalents(tabIndex)
GetTalentInfo(tabIndex, talentIndex)
GetTalentPrereqs(tabIndex, talentIndex)
GetTalentTabInfo(tabIndex)
LearnTalent(tabIndex, talentIndex)
[ edit]Targetting 的作用
ClearTarget() - 明白选择的目标。
TargetByName("name") - 选择指定的球员作为当前的目标。
TargetLastEnemy() - 选择为时targetted 敌人作为当前的目标。
TargetNearestEnemy({reverse}) - 选择最近的敌人作为当前的目标。
TargetNearestFriend() - 选择您的党的最近的成员。
TargetUnit("unit") - 选择指定的id 作为当前的目标。
TargetUnitsPet("unit") - 选择指定的单位的宠物作为当前的目标。
[ edit]Taxi 作用
CloseTaxiMap() - 关闭Flightpath 地图。
NumTaxiNodes() - 回归结(飞行路线的) 数量在一张开放出租汽车地图。
SetTaxiMap(frame) -? 。
TakeTaxiNode(slot) - 作为名为出租汽车结。
TaxiNodeCost(slot) - 回归费用在结的铜。
TaxiNodeGetType(slot) - 回归结的状况。
TaxiNodeName(slot) - 回归结的名字。
TaxiNodePosition(slot) -? 。
UnitOnTaxi("unit") - 回归1 如果单位是在出租汽车。
[ edit]Toggle 作用
ToggleBackpack - 乒乓开关您的backpage open/closed 。
ToggleBag - 打开或关闭指定的袋子。
ToggleCharacter - 乒乓开关字符单块玻璃对指定的框架。
ToggleCombatLog - Opens/closes 作战日志。
ToggleFramerate - Show/Hide FPS 。
ToggleFriendsFrame - Opens/closes 朋友单块玻璃。
ToggleGameMenu - Opens/closes 游戏菜单。
ToggleMinimap - 轮minimap 显示开关。
ToggleQuestLog - Opens/closes 搜寻日志。
ToggleWorldMap - 轮世界地图开关。
[ edit]Trading 的作用
AddTradeMoney() - 增加金钱投下入球员商业框架。
BeginTrade() - 从目标开始贸易。
CancelTrade() - 衰落提议换与另一球员。
CancelTradeAccept - 取消要求受理的商业尝试。
ClickTargetTradeButton(index)
ClickTradeButton(index)
CloseTrade - 结束贸易。
DropCursorMoney - 相当数量金钱举行由游标的下落。
GetCursorMoney - 相当数量金钱举行由游标的回归。
GetPlayerTradeMoney - 回归球员有在商业窗口的相当数量金钱。
GetTargetTradeMoney - 回归相当数量金钱在目标球员的商业框架。
GetTradePlayerItemInfo(id) - 关于一个商业项目的回归信息。
GetTradePlayerItemLink(id) - 一个商业项目的回归链接。
GetTradeTargetItemInfo(id) - 关于一个商业项目的回归信息。
GetTradeTargetItemLink(id) - 一个商业项目的回归链接。
InitiateTrade(UnitId) - 请求指定的单位换。
PickupPlayerMoney - 拾起一相当数量金钱从球员。
ReplaceTradeEnchant - 证实一个魔法的替换通过贸易。
[ edit]TradeSkill 作用
CloseTradeSkill() - 关上一个开放商业技巧窗口。
CollapseTradeSkillSubClass(index) - 崩溃指定的子类倒栽跳水列。
DoTradeSkill(index{, 重覆}) - 执行tradeskill 被指定# 时期。
ExpandTradeSkillSubClass(index) - 扩展指定的子类倒栽跳水列。
GetFirstTradeSkill() - 回归第一非倒栽跳水商业技巧词条的索引。
GetNumTradeSkills() - 得到商业技巧词条的数量(包括倒栽跳水) 。
GetTradeSkillCooldown(index) - 秒钟的数量留下为技巧给cooldown 的回归。
GetTradeSkillIcon(index) - 回归tradeskill 的像的纹理名字。
GetTradeSkillInfo(index) - 检索关于一个具体商业技巧的信息。
GetTradeSkillInvSlotFilter(slotIndex) -? 。
GetTradeSkillInvSlots() - 回归可利用的存货槽孔类型名单。
GetTradeSkillItemLink(index) - 得到链接串为一个商业技巧项目。
GetTradeSkillLine() - 关于选择的技巧线的回归信息。
GetTradeSkillNumMade(index) - 得到项目的数量被做在单一用途技巧。
GetTradeSkillNumReagents(tradeSkillRecipeId) - 回归不同的试剂的数量要求。
GetTradeSkillReagentInfo(tradeSkillRecipeId, reagentId) - 关于试剂的回归数据, 包括球员的存货的一计数。
GetTradeSkillReagentItemLink(index, reagentId) - 得到链接串为一种商业技巧试剂。
GetTradeSkillSelectionIndex() - 回归当前选择的商业技巧的Id, 0 如果无选择了。
GetTradeSkillSubClassFilter -? 。
GetTradeSkillSubClasses() - 回归合法的子类名单。
GetTradeSkillTools(index) - 关于工具的回归信息需要为tradeskill 。
GetTradeskillRepeatCount() -? 。
SelectTradeSkill(index) - 选择一个具体商业技巧在名单。
SetTradeSkillInvSlotFilter(slotIndex{, onOff{, 专属}}) -? 。
SetTradeSkillSubClassFilter(slotIndex{, onOff{, 专属}}) -? 。
[ edit]Training 的作用
AddSendMailCOD -? 。
BuyTrainerService -? 。
CloseTrainer -? 。
CollapseTrainerSkillLine -? 。
ExpandTrainerSkillLine -? 。
GetNumTrainerServices -? 。
GetTrainerGreetingText -? 。
GetTrainerSelectionIndex -? 。
GetTrainerServiceAbilityReq -? 。
GetTrainerServiceCost -? 。
GetTrainerServiceDescription -? 。
GetTrainerServiceIcon -? 。
GetTrainerServiceInfo -? 。
GetTrainerServiceLevelReq -? 。
GetTrainerServiceNumAbilityReq -? 。
GetTrainerServiceSkillLine -? 。
GetTrainerServiceSkillReq -? 。
GetTrainerServiceStepReq -? 。
GetTrainerServiceTypeFilter -? 。
IsTalentTrainer -? 。
IsTradeskillTrainer -? 。
IsTrainerServiceLearnSpell -? 。
SelectTrainerService -? 。
SetTrainerServiceTypeFilter -? 。
[ edit]Unit 作用
AssistUnit("unit") - 指示您的字符协助指定的单位。
CheckInteractDistance("unit", distIndex)
DropItemOnUnit("unit") - 下落一个项目从游标unitt 。
FollowUnit("unit")
SpellCanTargetUnit("unit")
SpellTargetUnit("unit")
StartDuelUnit("unit") - 质询单位对决斗。
TargetUnit("unit") - 选择指定的id 作为当前的目标。
TargetUnitsPet("unit") - 目标指定的单位的宠物, 如果你存在。
UnitAffectingCombat("unit") -? 1300 (新) 。
UnitArmor("unit") - 回归装甲统计与指定的单位有关。
UnitAttackBothHands("unit") - 关于单位的混战攻击的回归信息。
UnitAttackPower("unit") - 回归单位的混战攻击力量和修饰词。
UnitAttackSpeed("unit") - 回归单位的混战攻击速度为各只手。
UnitBuff("unit", 索引) - 检索信息关于某一单位的buff 。
UnitCanAssist("unit", "otherUnit") - 回归配齐如果第一单位可能协助二, 假否则。
UnitCanAttack("unit", "otherUnit") - 回归配齐如果第一单位可能攻击二, 假否则。
UnitCanCooperate("unit", "otherUnit") - 回归配齐如果第一单位可能与二合作, 假否则。
UnitCharacterPoints("unit") -? 。
UnitClass("unit") - 回归指定的单位(即, "战士" 或"僧人的" 分类名) 。
UnitClassification("unit") - 回归指定的单位(即, "精华" 或"worldboss 的" 分类) 。
UnitCreatureFamily("unit") - 回归类型指定的单位(即, "螃蟹的" 生物) 。
UnitCreatureType("unit") - 回归分类类型指定的单位(即, "野兽的" 生物) 。
UnitDamage("unit") - 回归损伤统计与指定的单位有关。
UnitDebuff("unit", 索引) - 检索信息关于某一单位的debuff 。
UnitDefense("unit") -? 。
UnitExists("unit") - 回归配齐如果指定的单位存在, 假否则。
UnitFactionGroup("unit") - 回归指定的单位的派别组标识符和名字。(即"联盟")
UnitFacing("unit") - 回归单位是饰面的方向(左转弧度, 1300 年从北部) - 被去除-- 闪烁的16:51, 2005 年3月22 日(EST)
UnitHealth("unit") - 回归当前的健康, 在点, 指定的单位。
UnitHealthMax("unit") - 回归最大健康, 在点, 指定的单位。
UnitInParty("unit") - 回归配齐如果指定的单位和球员一样是在党, 假否则。
UnitIsCharmed("unit") - 回归配齐如果指定的单位被迷住, 假否则。
UnitIsConnected("unit") - 回归1 如果指定的单位被连接或npc, 零如果离线或不是一个合法的单位。
UnitIsCorpse("unit") - 回归配齐如果指定的单位是尸体, 假否则。
UnitIsDead("unit") - 回归配齐如果指定的单位是死的, 假否则。
UnitIsDeadOrGhost("unit") - 回归配齐如果指定的单位是死或鬼魂, 假否则。
UnitIsEnemy("unit", "otherUnit") - 回归配齐如果指定的单位是敌人, 假否则。
UnitIsFriend("unit", "otherUnit") - 回归配齐如果指定的单位是朋友, 假否则。
UnitIsGhost("unit") - 回归配齐如果指定的单位是鬼魂, 假否则。
UnitIsPVP("unit") - 回归配齐如果指定的单位被下垂为PVP, 假否则。
UnitIsPVPFreeForAll("unit") - 回归配齐如果指定的单位被下垂为可以自由参加的PVP, 假否则。
UnitIsPartyLeader("unit") - 回归配齐如果指定的单位是球员的党的领导, 假否则。
UnitIsPlayer("unit") - 回归配齐如果指定的单位是球员字符, 假否则。
UnitIsPlusMob("unit") - 回归比它有名无实的水平配齐如果指定的单位是暴民, 强有力, 假否则(即, "精华" 暴民) - 它的困境谣言是不正确-- 我的坏-- 闪烁的13:39, 2005 年3月25 日(EST)
UnitIsTapped("unit") - 回归配齐如果指定的单位被轻拍, 假否则。
UnitIsTappedByPlayer("unit") - 回归配齐如果指定的单位由球员轻拍, 假否则。
UnitIsTrivial("unit") - 回归配齐如果指定的单位是琐细的(琐细的手段单位是"灰色" 对球员。-- Antiarc 16:02, 2005 年1月30 日(EST)), 假否则。
UnitIsUnit("unit", "otherUnit") - 回归配齐如果二指定了单位提到同样单位(即, "球员" 并且"目标" 能提到同样单位), 假否则。
UnitLevel("unit") - 回归单位的水平由地方命名图解提到。
UnitMana("unit") - 回归当前的mana, 在点, 指定的单位。
UnitManaMax("unit") - 回归最大mana, 在点, 指定的单位。
UnitName("unit") - 回归单位的名字由本地名字图解提到。
UnitPVPName("unit") -? 。
UnitPlayerControlled("unit") - 回归配齐如果指定的单位由球员控制, 假否则。
UnitPowerType("unit") - 回归数字对应于力量类型(即, mana 、愤怒或能量) 的指定的单位。
UnitRace("unit") - 回归指定的单位(即, "人" 或"拖钓的" 种族名字) 。
UnitRangedAttack("unit") - 回归单位的被排列的攻击数字。
UnitRangedAttackPower("unit") - 回归单位的被排列的攻击力量。
UnitRangedDamage("unit") - 回归单位的被排列的攻击速度和损伤。
UnitReaction("unit", "otherUnit") - 回归数字对应于反应(进取, 中立或友好) 第一单位往第二个单位。
UnitResistance("unit", "resistanceIndex") - 回归抵抗统计与指定的单位和抵抗有关键入。
UnitSex("unit") - 回归1 如果指定的单位是女性, 零否则。
UnitStat("unit", statIndex) - 回归统计与指定的单位有关和基本的属性(即, 力量或智力) 。
UnitXP("unit") - 回归经验的数字指向指定的单位有在他们的当前层。
UnitXPMax("unit") - 回归经验的数字指向指定的单位需要到达他们的下个水平。

--------------------------------------------------------------------------------
[ edit]New 作用
增加小组不在清楚的这里的作用

例子作用

GetFarclip() - 得到世界出现地形距离。
SetFarclip(value) - 设置世界出现地形距离(177-777) 。
GetWorldDetail() - 得到世界出现环境细节。
SetWorldDetail(value) - 设置世界出现环境细节(0,1,2) 。
GetBaseMip() - 得到世界出现纹理细节。
SetBaseMip(value) - 设置世界出现纹理细节(0,1) 。
GetTerrainMip() - 得到世界出现地形纹理。
SetTerrainMip(value) - 设置世界出现地形纹理(0,1) 。
ShowingCloak() - 退回1 如果球员的斗篷被显示, 零否则。
ShowingHelm() - 退回1 如果球员的舵被显示, 零否则。
ShowCloak(flag) - 设置是否球员的斗篷被显示。
ShowHelm(flag) - 设置是否球员的舵被显示。
GetBuildVersion() - 退回比赛(即"1.2.1 的" 修造版本)
GetDodgeChance() - 退回球员的百分比推托机会。
GetParryChance() - 退回球员的百分比parry 机会。
CheckSpiritHealerDist()
ClearTutorials()
ConfirmSummon()
ConsoleExec("command")
DeleteGMTicket()
DemoteAssistant(x)
FlagTutorial("tutotial")
InCinematic()
IsResting()
LaunchURL("URL")
ResetTutorials()
FollowByName("name")
FrameXML_Debug(flag)
GetActiveTitle(index)
GetAvailableTitle(index)
GetBindLocation()
GetBonusBarOffset()
GetCoinIcon(amount)
GetComboPoints()
GetCorpseRecoveryDelay()
GetCurrentPosition() - 1300 年被去除-- 闪烁的16:43, 2005 年3月22 日(EST)
GetCurrentResolution()
GetCursorPosition()
GetDebugStats()
GetFramerate()
GetGMStatus()
GetGMTicket()
GetGMTicketCategories()
GetGreetingText()
GetInstanceBootTimeRemaining()
GetLanguageByIndex(index)
GetMeetingStoneStatusText()
GetMoney()
GetNetStats()
GetNextStableSlotCost()
GetNumLaguages()
GetNumShapeshiftForms()
GetNumStableSlots()
GetNumStationeries()
GetNumWhoResults()
GetObjectiveText()
GetProgressText()
GetReleaseTimeRemaining()
GetResSicknessDuration()
GetRestState()
GetSelectedStationeryTexture()
GetShapeshiftFormCooldown(index)
GetShapeshiftFormInfo(index) - 检索关于可利用的ShapeshiftForm 或姿态的信息。
GetStationeryInfo(index)
GetSummonConfirmAreaName()
GetSummonConfirmSummoner()
GetSummonConfirmTimeLeft()
GetTimeToWellRested()
GetTitleText()
GetTrackingTexture()
GetWhoInfo(index)
GetXPExhaustion()
HasFullControl()
HasSoulstone()
HideNameplates()
IsCurrentCast(id, bookType)
IsInMeetingStoneQueue()
IsInventoryItemLocked(id)
NewGMTicket(type, "文本")
NotifyInspect("unit")
OffhandHasWeapon()
PickupTradeMoney(amount)
PlayVocalCategory("category") - 1300 年被去除-- 闪烁的16:43, 2005 年3月22 日(EST)
PromoteToAssistant("name")
PurchaseSlot()
ReplaceEnchant()
RepopMe() - "发行精神" 按钮。派遣您到坟园当死者。- Moof
ReportBug("text") - 1300 年被去除-- 闪烁
ReportNote("text") - 1300 年被去除-- 闪烁
ReportSuggestion("text", 1300 年"类别") - 被去除-- 闪烁
RequestTimePlayed()
ResurrectHasSickness()
RetrieveCorpse()
RunScript("script")
SelectStationery(index)
SendWho("filter")
SetBagPortaitTexture(texture, slot)
SetPortraitTexture(texture, "单位")
SetPortraitToTexture(x, x)
SetTradeMoney(amount)
SetWhoToUI(x)
ShowContainerSellCursor(index, slot)
ShowInspectCursor()
ShowNameplates()
SortWho(sortType)
SplitContainerItem(index, 槽孔, amount)
SplitMoney("goldsilvercopper")
StartDuel("unit")
StopCinematic()
TutorialsEnabled()
UpdateGMTicket(type, "文本")
UseSoulstone()
[ edit]Widget 具体作用
装饰物API 被移动了它自己的页。连接从这里的所有文献现在连接从那里(核实-- 闪烁的23:43, 2005 年二月6 日(EST)) 。
 楼主| 发表于 2005-4-29 14:21:02 | 显示全部楼层
一风的所谓中文翻译  看得出 完全是金山词霸之类的直接产物  没有做过修饰的东西

还不如看鸟文  似乎更容易懂些..
发表于 2005-4-30 14:32:29 | 显示全部楼层
看的眼花
您需要登录后才可以回帖 登录 | 入门

本版积分规则

Archiver|手机版|浙公网安备 33059102000121号|【 老鸟 】 ( 浙ICP备12032149号 )

GMT+8, 2025-6-6 19:37 , Processed in 0.082545 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表