< 魔兽世界百科 >
您尚未注册/登录
搜索帮助
搜索提示已开启 输入搜索关键词时将自动出现其他玩家的同类搜索词 开启搜索提示 搜索关键词时仍按普通搜索提交框方式输入 什么是智能搜索提示
职业技能 (1199)专业技能 (423)
武器 (2209)防具 (15620)药品 (0)任务道具 (1677)材料 (0)其它 (10399)
商人NPC (981)任务NPC (952)怪物 (7220)其他NPC (10639)
1-10级11-20级21-30级31-40级41-50级50级以上
全部地图 (10091)
WOW动态 (267)WOW学院 (778)职业研究 (27159)副本心得 (1319)天赋交流 (559)任务攻略 (1885)专业技能心得 (740)战场PVP (803)宏与插件交流 (222)
游戏百科 > 魔兽世界 > WOW手册 > 宏与插件交流 > 宏函数大全 > 百科资料
资源苗 基于游戏百科共建计划 - 了解 | 加入
在魔兽世界中已有97,734项百科条目,如果你有任何可以分享的请
魔兽世界API函数汇总-背包管理,鼠标指针,交友等
好东西!投票支持(0)
匿名投票,确认投票给dailytoy
资料版本 1.0,更新时间:2005年8月28日 来源地址

(编者注:魔兽世界的API接口函数库相当庞大,本类的整理将是一个长期的编辑过程,逐步汉化,同时欢迎对魔兽世界宏与UI有兴趣的各路高手加入本项百科计划!)

魔兽世界API
魔兽世界API是一整套由暴雪提供的,允许玩家通过插件与宏改善魔兽世界游戏用户界面的函数接口功能.
以下是几近完整的函数接口列表,由暴雪开放提供,您可以使用它们创建你自己的插件或者宏.
我们欢迎您将自己了解的更多知识与我们共享,将自己的心得发布上来.


These functions manage containers (bags, backpack). See also Inventory Functions and Bank Functions.

ContainerIDToInventoryID(containedID) 

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) - Gives you the number of slots available in the bag specified by the index.

PickupBagFromSlot(slot) 

PickupContainerItem(index,slot) 

PutItemInBackpack() 

PutItemInBag(inventoryId) 

SetBagPortaitTexture(texture,slot) 

SplitContainerItem(index,slot,amount) 

UI ToggleBackpack - Toggles your backpack open/closed.

UI ToggleBag - Opens or closes the specified bag.

UseContainerItem(bag,slot) - Uses an item located in bag# and slot#.



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() 

GetCraftSkillLine() 

GetCraftSpellFocus - ?.

GetNumCrafts() 

SelectCraft(index)


Cursor Functions (鼠标指针函数)

AutoEquipCursorItem() - Causes the equipment on the cursor to be equipped.

CursorCanGoInSlot(slot) 

CursorHasItem() - Returns true if the cursor currently holds an item

CursorHasMoney() - true/false

CursorHasSpell() - true/false

DeleteCursorItem() 

DropCursorMoney - Drops the amount of money held by the cursor.

DropItemOnUnit("unit") - Drops an item from the cursor onto a unit.

EquipCursorItem(x) 

GetCursorMoney - Returns the amount of money held by the cursor.

GetCursorPosition() - Get the cursor location on the screen

HideRepairCursor() 

InRepairMode() 

PickupAction(slot) - Drags an action out of the specified quickbar slot and holds it on the cursor.

PickupBagFromSlot(slot) 

PickupContainerItem(index,slot) 

PickupInventoryItem(index) 

PickupMacro(index) - Pickup a macro button icon.

PickupMerchantItem(index) - Places the item on the cursor.

PickupPetAction(index) - ?.

PickupPlayerMoney - Picks up an amount of money from the player.

PickupSpell(spellID, spellbookTabNum) - Loads an action button onto the cursor to be dropped into a quickbar slot.

PickupStablePet(index) - ?.

PickupTradeMoney(amount) 

PlaceAction(slot) - Drops an action from the cursor into the specified quickbar slot.

PutItemInBackpack() 

PutItemInBag(inventoryId) 

ResetCursor() 

SetCursor("cursor") 

ShowContainerSellCursor(index,slot) 

ShowInspectCursor() - Change the cursor to the magnifying glass inventory inspection cursor

ShowInventorySellCursor() - ?.

ShowMerchantSellCursor(index) - Changes the cursor to the merchant sell cursor.

ShowRepairCursor()


Debugging Functions (错误调试函数)

FrameXML_Debug(flag) - Sets FrameXML logging state which is output to /WoW Folder/Logs/FrameXML.log

GetDebugStats()



Disabled Functions (已禁用函数)

          These functions are present but have been disabled entirely.

AppendToFile - ?.

DeleteFile() - ?

ReadFile() - ?.



Enchanting Functions(附魔功能函数)

GetWeaponEnchantInfo() - Return information about main and offhand weapon enchantments.

ReplaceEnchant() 

ReplaceTradeEnchant - Confirm the replacement of an enchantment via trade.


Faction Functions 

CollapseFactionHeader(index) 

ExpandFactionHeader(index) 

FactionToggleAtWar(index) 

GetFactionInfo(index) 

GetNumFactions() 

UnitFactionGroup("unit") - Returns the faction group id and name of the specified unit. (eg. "Alliance") - string returned is localization-independent (used in filepath) -~~


Friend Functions (交友功能函数)

AddFriend - Add a friend to your friend list.

GetFriendInfo(index) - Returns information of players on your FriendsList.

GetNumFriends() 

GetSelectedFriend() 

RemoveFriend("name" or index) 

SetSelectedFriend(index) 

ShowFriends() 

UI ToggleFriendsFrame - Opens/closes the friends pane.


GM Functions

DeleteGMTicket() 

GMRequestPlayerInfo() - access denied (darn)

GetGMStatus() 

GetGMTicket() 

GetGMTicketCategories() 

NewGMTicket(type,"text") 

REMOVED 已失效 ReportBug("text") - REMOVED IN 1300

REMOVED 已失效 ReportNote("text") - REMOVED IN 1300

REMOVED 已失效 ReportSuggestion("text","category") - REMOVED IN 1300

Stuck - Informs the game engine that the player is Stuck.

UpdateGMTicket(type,"text")


Gossip Functions

CloseGossip() 

GetGossipActiveQuests - ?.

GetGossipAvailableQuests - ?.

GetGossipOptions() 

GetGossipText() 

SelectGossipActiveQuest - ?.

SelectGossipAvailableQuest - ?.

SelectGossipOption(index)


感谢WOWWIKI提供英文函数资料

Container/Bag Functions (背包管理函数)

暂时没有补充内容 您可以第一个补充内容


引用百科资源:多种方式引用本页 | 浏览引用了本页的网站/网页(735)
关闭
百科引用链使您能方便地在其他网页插入本资源的引用链接,让优秀的百科资源通过引用链对更多玩家造成帮助。
越多的玩家通过您的引用链访问百科将为您带来更多的百科威望!

引用本页地址(点击复制到粘贴板) 粘贴到你想引用的网页。
HTML形式的传播:

论坛形式的传播:

关闭
本页有下列读者,字体越大、颜色越深的玩家阅读本页的次数越多。
*如果您的玩家名称未刊载于此,因为只有百科成员才能记录阅读体验。
在魔兽世界中已有97,734项百科条目,如果你有任何可以分享的请

本页由 dailytoy 创建,希望能用你我的开放思维帮助下得到不断完善。
共有 0 条评论 浏览全部评论
匿名发表,您可以马上注册/登录成为百科玩家后用属于自己个性名称发表。

《魔兽世界API函数汇总-背包管理,鼠标指针,交友等》的任何感想和见解请发于此。

热门资料推荐
请和我们一起建造全球最大的人工游戏百科
在本目录提交一笔资料 - 我们的计划 - 成为目录编辑
搜游的搜索内容将在 游戏百科共建计划 的基础上不断完善与加强。
当前目录下还没有目录编辑负责管理。
 

想把自己的网站也加上搜索功能?来这里获得免费的魔兽世界搜索条

搜游大全 - 免责声明 - 投放广告 - 商务合作

© 2005 - 2007 搜友游戏百科 SOUYO.com