资源描述:
《魔兽世界的宏函数库(world of warcraft macro library)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、魔兽世界的宏函数库(WorldofWarcraftmacrolibrary)ThefollowingistheWarcraftmacrolibrary,thereareChineseremarks,thereisnoabove,youcanfindontheBLZwebsite.(momsaidreplingisgood)1.sendmessages1.1SendChatMessage("message","system","language","channel")Role:SendachatmessageParameter:"Messa
2、ge":themessagetosend"System":thetypeofchatmessagethatyouwanttosend:"SAY":say"WHISPER":theword,inthe"channel"parameterspecifiedinthecodenameoftheobjectmustbewiththefunctionofUnitName("unit")use"CHANNEL":thechannelmustspecifythenumberofthechannelintheparameter"channel",and"
3、omit"for"synthesis"""GUILD":Union"PARTY":squad!"RAID":grouptour"YELL":yell!"Language":thelanguagethatisusedcanbeomittedifthereisnoparameter"channel".InCWOW,youcanusethelinguafranca,theorclanguage,andsoforth.YoucanalsospecifyotherlanguagesusedinWOW,andtheexactlanguagenamec
4、anbeobtainedusingthefunctionGetDefaultLanguage("unit").Thelanguagespecifiedbytheparameter"language"willonlyworkforthesenderandthereceiverwillreceiveitinitsdefaultlanguage.1.2GetDefaultLanguage(“unit)Action:returnsthedefaultlanguageusedbytheunitspecifiedintheparameter"unit
5、"2.characteroperation2.1strfind("string","pattern")Effects:findcharacter(string)instring"string"pattern"Returnvalue:iffound,returns2values,startpositionandendposition;ifnotfound,returnsnil2.2format("FormatString",value),...,...)Effects:usevalue,...,...Thesuppliedvaluesare
6、establishedintheformatspecifiedin"FormatString"Theformatcommonlyusedin"FormatString":%s:String%d:integer%f:floatingpointnumbers3.friends/shield3.1AddFriend("name")Role:theplayerwiththespecifiednameisaddedtothebuddylistParameter:"Name":theplayer'snamecanbeobtainedusingthef
7、unctionUnitName("unit")3.2AddIgnore("name")Role:theplayerwiththespecifiednameisaddedtotheblockedlist3.3DelIgnore("name")Role:removestheplayerwiththespecifiednamefromthemasklist3.4AddOrDelIgnore("name")Role:togglethescreenstateoftheplayerwiththespecifiedname4.team4.1Invite
8、ToParty("unit")Role:inviteparameter"unit"totheunitsspecified4.2InviteByName("name")Role:inviteth