< 魔兽世界百科 >
您尚未注册/登录
搜索帮助
搜索提示已开启 输入搜索关键词时将自动出现其他玩家的同类搜索词 开启搜索提示 搜索关键词时仍按普通搜索提交框方式输入 什么是智能搜索提示
职业技能 (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函数汇总-邮件,地图,商人等
好东西!投票支持(1)
匿名投票,确认投票给dailytoy
资料版本 1.0,更新时间:2005年8月28日 来源地址

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

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


          Mail Functions (邮件功能函数)

          Globals associated with Mail. Events associated with Mail.

REMOVED 已失效 AddSendMailCOD() - This does not appear to exist any longer. --Bug , 4 Feb 2005 (EST)

REMOVED 已失效 AddSendMailMoney() - This does not appear to exist any longer. --Bug , 4 Feb 2005 (EST)

CheckInbox() - ?.

ClearSendMail() - This clears the text in the send mail tab and places the COD item in the inventory. --Bug , 6 Feb 2005 (EST)

ClickSendMailItemButton() - This seems to just simulate a click on the send item mail slot (will pickup the item there). --Bug , 4 Feb 2005 (EST)

CloseMail() - Closes the mail window. --Bug , 4 Feb 2005 (EST)

DeleteInboxItem(index) - ?.

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

GetCoinIcon(amount)

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 , 6 Feb 2005 (EST)

GetNumStationeries() - Not yet fully implemented. Currently it always returns 2. --Bug , 6 Feb 2005 (EST)

GetPackageInfo(index) - Not yet fully implemented. Currently an index of 1 returns "Test Package". --Bug , 6 Feb 2005 (EST)

GetSelectedStationeryTexture() - Not yet fully implemented. Currently it returns "STATIONERYTEST" when the mailbox is open. --Bug , 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 , 4 Feb 2005 (EST)

InboxItemCanDelete(index) - ?.

REMOVED PickupSendMailCOD(amount) - This does not appear to exist any longer. --Bug , 6 Feb 2005 (EST)

REMOVED PickupSendMailMoney(amount) - This does not appear to exist any longer. --Bug , 6 Feb 2005 (EST)

ReturnInboxItem(index) - ?.

SelectPackage(index) - Not yet fully implemented. It does nothing visible. --Bug , 6 Feb 2005 (EST)

SelectStationery(index) - Not yet fully implemented. It does nothing visible. --Bug , 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) - ?.


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.

GetWorldLocMapPosition()

ProcessMapClick(x,y) - Passes a click to the client, which then calculates if the zone has to be changed.

RequestBattlefieldPositions() - ?.

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.

UI ToggleMinimap - Turns the minimap display on/off.

UI ToggleWorldMap - Turns the world map on/off.

UpdateMapHighlight(x,y) - Provides map rollover information for highlighting.



Math Functions (计算功能)

         These math functions are compatability references to the LUA math library (which is available via math.), some with conversion wrappers.


__pow(x, y)
- returns x to the power of y

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.

exp(value) - Returns the exponent of 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.

log(value) - Returns the logarithm of value.

log10(value) - Returns the base-10 logarithm of value.

max(value{,values...}) - Returns the numeric maximum of the input values.

min(value{,values...}) - Returns the numeric minimum 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

sin(degrees) - Returns the sine of the degree value.

sqrt(value) - Return the square root of value.

tan(degrees) - Returns the tangent of the degree value.


Meeting Stone Functions(集合石功能)


GetMeetingStoneStatusText()

IsInMeetingStoneQueue()


Merchant Functions (NPC商人功能)


BuyMerchantItem(index {,qty})
- Buys an item from a merchant.

BuybackItem() - Buys the last sold item back.

CanMerchantRepair() - Returns true if the merchant can repair items.

CloseMerchant() - Closes the merchant window.

GetBuybackItemInfo()

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.

GetRepairAllCost()

HideRepairCursor()

InRepairMode()

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

RepairAllItems()

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

ShowRepairCursor()

 

感谢WOWWIKI提供英文函数资料


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


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

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

论坛形式的传播:

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

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

《魔兽世界API函数汇总-邮件,地图,商人等》的任何感想和见解请发于此。

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

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

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

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