WOW宏API全中文.docx

上传人:b****1 文档编号:14829698 上传时间:2023-06-27 格式:DOCX 页数:52 大小:49.10KB
下载 相关 举报
WOW宏API全中文.docx_第1页
第1页 / 共52页
WOW宏API全中文.docx_第2页
第2页 / 共52页
WOW宏API全中文.docx_第3页
第3页 / 共52页
WOW宏API全中文.docx_第4页
第4页 / 共52页
WOW宏API全中文.docx_第5页
第5页 / 共52页
WOW宏API全中文.docx_第6页
第6页 / 共52页
WOW宏API全中文.docx_第7页
第7页 / 共52页
WOW宏API全中文.docx_第8页
第8页 / 共52页
WOW宏API全中文.docx_第9页
第9页 / 共52页
WOW宏API全中文.docx_第10页
第10页 / 共52页
WOW宏API全中文.docx_第11页
第11页 / 共52页
WOW宏API全中文.docx_第12页
第12页 / 共52页
WOW宏API全中文.docx_第13页
第13页 / 共52页
WOW宏API全中文.docx_第14页
第14页 / 共52页
WOW宏API全中文.docx_第15页
第15页 / 共52页
WOW宏API全中文.docx_第16页
第16页 / 共52页
WOW宏API全中文.docx_第17页
第17页 / 共52页
WOW宏API全中文.docx_第18页
第18页 / 共52页
WOW宏API全中文.docx_第19页
第19页 / 共52页
WOW宏API全中文.docx_第20页
第20页 / 共52页
亲,该文档总共52页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

WOW宏API全中文.docx

《WOW宏API全中文.docx》由会员分享,可在线阅读,更多相关《WOW宏API全中文.docx(52页珍藏版)》请在冰点文库上搜索。

WOW宏API全中文.docx

WOW宏API全中文

WOW-宏-API(全,中文)

魔兽世界API

魔兽世界全局函数

帐号游戏时间范围函数(AccountPlayTimeLimitFunctions)此类API函数是专门为防沉迷系统而设计的,能计算出当前玩家游戏时间等内容,当前只在亚洲地区有效。

GetBillingTimeRested()-返回当前帐户已登陆时间。

PartialPlayTime()-如果用户状态为“疲劳(tired)”则返回1:

降低经验及掉落。

NoPlayTime()-如果用户状态为“不健康的(unhealthy)”则返回1:

无经验及掉落。

--------------------------------------------------------------------------------

动作函数(ActionFunctions)这些函数对动作按钮进行操作(通常玩家的动作有可能通过下面列表中的函数执行)。

保护界面ActionButtonDown(id)-按下指定动作按钮。

保护界面ActionButtonUp(id)-释放指定动作按钮。

ActionHasRange(slot)-检测指定动作按钮是否受距离限制(是则返回1,否则返回nil)。

界面BonusActionButtonDown-触发指定额外动作按钮(宠物或仆从)。

界面BonusActionButtonUp-释放指定额外动作按钮(宠物或仆从)。

保护CameraOrSelectOrMoveStart()-在3D界面开始"左键单击"动作。

(1.10-保护)

保护CameraOrSelectOrMoveStop([stickyFlag])-在3D界面结束"左键单击"动作。

(1.10-

保护)

ChangeActionBarPage()-更改系统动作按钮页面为系统变量CURRENT_ACTIONBAR_PAGE指定页。

GetActionBarToggles()-获取系统动作条显示状况。

GetActionCooldown(slot)-获取指定动作按钮冷却状况。

GetActionCount(slot)-获取动作按钮所需物品剩余量(绷带/毒药/等),无物品或不可用时返回0。

GetActionText(slot)-获取动作按钮文本标签(宏,等),不存在则返回nil。

GetActionTexture(slot)-获取指定动作按钮材质路径。

GetBonusBarOffset()-检测何种额外动作条已显示。

HasAction(slot)-假如指定动作条按钮有技能执行,则返回1,其他情况返回nil。

IsActionInRange(slot)-测试技能是否在施展距离内(1=是,0=否,nil=不可用)。

IsAttackAction(slot)-技能为“攻击”动作则返回1(战斗中闪光),其他情况返回nil。

IsAutoRepeatAction(slot)-技能可自动重复时返回1,其他情况返回nil。

IsCurrentAction(slot)-技能动作正在执行时返回1,其他情况返回nil。

IsUsableAction(slot)-技能可立即执行时返回1,其他情况返回nil。

IsConsumableAction(slot)-技能有施展次数时返回1(例如:

施法物品),其他情况返回nil。

IsEquippedAction(slot)-必须装备才能施展的技能返回1(例如:

链接到必须装备的物品),其他情况返回nil。

PetHasActionBar()-检测玩家宠物是否有动作条。

PickupAction(slot)-将指定动作按钮的技能提取并放置于光标上。

PickupPetAction(slot)-将指定的宠物动作按钮的技能提取并放置于光标上。

PlaceAction(slot)-将鼠标上的技能放置于指定动作按钮。

SetActionBarToggles(show1,show2,show3,show4[,alwaysShow])-设置指定系统动作条显示。

-1.12版本添加'alwaysShow'。

保护TurnOrActionStart()-在3D界面开始"右键单击"动作。

(1.10-保护)

保护TurnOrActionStop()-在3D界面结束"右键单击"动作。

(1.10-保护)

保护UseAction(slot[,checkCursor[,onSelf]])-执行绑定到指定ID的动作按钮技能,可定向玩家(与目标无关)。

--------------------------------------------------------------------------------

行为函数(ActivityFunctions)这个部分的函数会引发玩家角色的动作(未在别处加以保护,非简单确认步骤)

AcceptDuel()-玩家同意接受决斗挑战.

保护AttackTarget()-攻击选定目标.

CancelDuel()-拒绝决斗挑战.

CancelLogout()

CancelMeetingStoneRequest()-将角色从集合石队列中移除

ClearTutorials()

ConfirmSummon()

保护DescendStop()--增加于2.1

Dismount()--增加于2.0.3

FlagTutorial("tutotial")

保护ForceLogout()

ForceQuit()

GetSummonConfirmAreaName()

GetSummonConfirmSummoner()

GetSummonConfirmTimeLeft()

Logout-注销当前玩家角色.

Quit-退出应用程序(游戏),而非LUA脚本.

RandomRoll(low,high)-随机产生在两个(正整数)数值闭区间的整数.

保护SitStandOrDescendStart()-切换玩家坐下/站立姿势.

保护StartDuel("name")-向玩家发出决斗邀请(根据名字)

TogglePVP()-切换PVP状态

ToggleSheath()-拔出/收起武器.

UseSoulstone()-使用激活的灵魂石复活自己.

--------------------------------------------------------------------------------

插件函数(AddOnFunctions)DisableAddOn(indexor"AddOnName")-禁止某插件下次载入.

DisableAllAddOns()-禁止所有插件下次被载入..

EnableAddOn(indexor"AddOnName")-在下次进程开启指定插件.

EnableAllAddOns()-在下次进程开启全部插件.

GetAddOnDependencies(indexor"AddOnName")-取得插件依赖列表.

GetAddOnInfo(indexor"AddOnName")-取得插件相关信息.

GetAddOnMetadata(indexor"name","variable")-从插件的TOC文件中获取标签内容(值)。

GetNumAddOns()-取得用户插件数量.

IsAddOnLoaded(indexor"AddOnName")-指定插件已读取则返回true.IsAddOnLoadOnDemand(indexor"AddOnName")-测试插件是否可动态载入.

LoadAddOn(indexor"AddOnName")-发出动态载入插件读取请求.ResetDisabledAddOns()-

--------------------------------------------------------------------------------

竞技场函数(ArenaFunctions)ArenaTeamInviteByName(teamIndex,playerName)-Invitesthespecifiedplayertothespecifiedarenateam.

ArenaTeamLeave(teamIndex)-Leavesthespecifiedarenateam.

ArenaTeamRoster(teamIndex)-SendsarequesttotheservertorequestthemostrecentinformationonaspecificArenaTeamthatyouarein.

ArenaTeamUninviteByName(teamIndex,playerName)-Removesthespecifiedplayedfromthespecifiedarenateam.

ArenaTeamDisband(teamIndex)-Disbandsthearenateamwithoutanywarning!

Requiresyoutobetheleaderoftheteam.(Knowntobeimplementedasof2.1.3,butmayhaveexistedbefore).GetArenaCurrency()-Getstheamountofarenapointsaplayercurrentlyhastospend.GetArenaTeam(teamIndex)-Returnsinformationregardingtheplayersarenateam,niliftheplayerisnotinthepassedteam

GetArenaTeamRosterInfo(teamIndex,playerIndex)-Returnsinformationregardingaplayerfromthespecifiedteam,thisrequiresacalltoArenaTeamRosteryouonlyneedtodothiswhentheplayerloginsin,UIreloadswillnoteffectthereturn.

GetNumArenaTeamMembers(teamIndex[,showOffline])-Getsthenumberofarenateammembers,thisrequiresacalltoArenaTeamRosteryouonlyneedtodothiswhentheplayerloginsin,UIreloadswillnoteffectthereturn.

GetBattlefieldTeamInfo(index)-GetsinfoaboutaregisteredArenaTeamattheendofanarenamatch.

GetCurrentArenaSeason()-GetsthecurrentArenaseason.

IsActiveBattlefieldArena()-ReturnstrueifinanArenaMatch,alsoReturnstrueforthesecondargumentifit'saregisteredmatch.

IsArenaTeamCaptain(teamIndex)-Returnsavaluebasedonwhethertheplayeristhearenateam

captain.

IsBattlefieldArena()-Returnstrueifthebattlemasteryou'retalkingtocanqueueyouforarenas--------------------------------------------------------------------------------

拍卖函数(AuctionFunctions)CalculateAuctionDeposit(runTime)-返回当前指定持续时间拍卖物品的堆放信息(单位:

分钟).

CanSendAuctionQuery()-拍卖行搜索按钮可用时返回1,否则为nil.

CancelAuction(index)-取消指定拍卖(在物主列表).

ClickAuctionSellItemButton()-将当前'拣起'的物品放到'拍卖'栏.CloseAuctionHouse()-关闭(打开的)拍卖窗口.

GetAuctionHouseDepositRate()-返回当前开启的拍卖窗口内物品[含未显示]存放比例(百分率)(可能根据CalculateAuctionDeposit).

GetAuctionInvTypes(classIndex,subclassIndex)-返回物品的子类.GetAuctionItemClasses()-返回拍卖物品的主分类.

GetAuctionItemInfo("type",index)-返回指定拍卖物品细节.

GetAuctionItemLink("type",index)-返回指定拍卖物品的itemLink.GetAuctionItemSubClasses(classIndex)-返回拍卖物品种类次序的子类.GetAuctionItemTimeLeft("type",index)-返回指定拍卖物品剩余时间状态.GetAuctionSellItemInfo()-返回当前拍卖物品相关信息(未选择为nil).GetBidderAuctionItems([page])-(取得竞标人信息).

GetNumAuctionItems("type")-返回指定拍卖物品列表大小.

GetOwnerAuctionItems([page])-(取得拍卖人信息).

GetSelectedAuctionItem("type")-返回选择的拍卖物品索引(1-50),未选择返回0.IsAuctionSortReversed("type","sort")-指定拍卖物品的排列类型逆序排列时返回1,否则为nil.

PlaceAuctionBid("type",index,bid)-对选择拍卖物品投标.

QueryAuctionItems("name",minLevel,maxLevel,invTypeIndex,classIndex,subclassIndex,page,isUsable,qualityIndex)-(请求检索符合条件的物品).

SetSelectedAuctionItem("type",index)-?

.

SortAuctionItems("type","sort")-根据指定分栏对指定拍卖列表进行排序.

StartAuction(minBid,buyoutPrice,runTime)-开始拍卖'创建拍卖'面板内物品.

界面AuctionFrameAuctions.duration-设置拍卖持续总计时间.

--------------------------------------------------------------------------------

银行函数(BankFunctions)BankButtonIDToInvSlotID(buttonID)-以背包位置ID方式返回银行包裹位置ID.

CloseBankFrame()-关闭(打开的)银行窗口.--Ramble

GetBankSlotCost(numSlots)-返回购买下个银行包裹位置的价格.--RambleGetNumBankSlots()-返回已购买银行包裹位置数量,如果已购完返回特定标志.PurchaseSlot()-购买一个空余的银行包裹位置.

--------------------------------------------------------------------------------

战场函数(BattlefieldFunctions)AcceptAreaSpiritHeal()-接受灵魂治疗.CancelAreaSpiritHeal()-取消灵魂治疗.

CanJoinBattlefieldAsGroup()-玩家不能加入战场团队则返回nil.

AcceptBattlefieldPort(index[,acceptFlag])-接受或拒绝一个传送至战场的请求.CheckSpiritHealerDist()-死亡时如果你在精神医者复活的范围内,返回true.CloseBattlefield()-关闭候列战场窗口.

GetHonorCurrency()-获取当前荣誉值

GetAreaSpiritHealerTime()-返回距精神医者下一次释放复活的时间.GetBattlefieldEstimatedWaitTime(index)-返回战场队列估算的排队时间.GetBattlefieldFlagPosition(index)-获得战场旗帜的位置.

GetBattlefieldInfo(index)-返回你最近打开队列窗口的战场的详细信息.GetBattlefieldInstanceExpiration()-获取战场即将关闭的时间.GetBattlefieldInstanceInfo(index)-获得战场的副本ID.GetBattlefieldInstanceRunTime()-单位:

毫秒,返回本次战场已运行的时间.(似乎是从服务器上获取数据,因为它和time()函数并不同步)

GetBattlefieldMapIconScale()-调整在战场小地图上标记图标的比例.GetBattlefieldPortExpiration(index)-获得对应战场传送的剩余时间.GetBattlefieldPosition(index)-获取战场中与你不在同一小队或团队的玩家姓名与位置.GetBattlefieldScore(index)-获得一个玩家的战场分数.

GetBattlefieldStatData(playerIndex,slotIndex)-获取战场中某一个玩家某一分栏的详细信息.(例如战歌峡谷的夺旗数)

GetBattlefieldStatInfo(index)-从战场记分板的指定分栏获取信息.

GetBattlefieldStatus(index)-返回玩家所在或正在队列中的战场的状态.GetBattlefieldTimeWaited(index)-获取玩家在战场队列中的时间.

GetBattlefieldWinner()-获得战场中获胜者.

GetNumBattlefieldFlagPositions()-GetthenumberofflagpositionsavailablefromGetBattlefieldFlagPosition().

GetNumBattlefieldPositions()-GetthenumberofpositionsavailablefromGetBattlefieldPosition().

GetNumBattlefieldScores()-Returnsthenumberofscores(players)listedinthebattlefieldscoreboard.

GetNumBattlefieldStats()-Getthenumberofbattlegroundspecificcolumns.GetNumBattlefields()-Getthenumberofrunningbattlefieldsforthelastbattlegroundqueuewindowyouopened.

GetNumWorldStateUI()-获取世界状态的UI数量

GetSelectedBattlefield()-Gettheselectedbattlefieldtojoinfirst.

GetWorldStateUIInfo(i)-Getscoreandflagstatuswithinabattlefield.

JoinBattlefield(index[,joinAs])-加入战场队列.

LeaveBattlefield()-离开战场.

ReportPlayerIsPVPAFK("unit")-获取当前战场中的一玩家是否AFKRequestBattlefieldPositions()-RequestnewdataforGetBattlefieldPosition().RequestBattlefieldScoreData()-RequestnewdataforGetBattlefieldScore().SetBattlefieldScoreFaction([faction])-Setthefactiontoshowonthebattlefieldscoreboard.SetSelectedBattlefield(index)-Selectthebattlefieldinstanceyouwanttojoinorthefirstonethatbecomesavailable.

ShowBattlefieldList(index)-Displaysaqueuewindowforthespecifiedbattlefield.Onlyworksifyouarealreadyinaqueueforthebattlefield.Indexcorrespondstolocationinqueuearray.

--------------------------------------------------------------------------------

绑定函数(BindingFunctions)移除GetActionSelfCastKey()-

移除GetAutoLootToggleKey()-

GetBinding(index)-获取索引的动作和快捷键.

GetBindingAction("KEY"[,checkOverride])-获取绑定该键的动作.

Get

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 经管营销 > 经济市场

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2