三.宏
1.玉泉鱼跃宏 这个宏的作用是按第一下施放玉泉鱼跃,第二下停止,可以控制冲出去的次数,1次2次3次都可以。嘻嘻,这个宏除了前两句,剩下的都归属原作者:jqka5401
/cast 玉泉鱼跃
#cd 玉泉鱼跃
/script bufflist=GetClientPlayer().GetBuffList()
/script for _,buff in pairs(bufflist) do buffname=Table_GetBuffName
(buff.dwID,buff.nLevel) if buffname=="玉泉鱼跃" then GetClientPlayer().CancelBuff(buff.nIndex) end end
2.探梅宏 这个宏的作用是,对目标的目标施放探梅,然后再切换成原目标。并增加判断,如果如果对方是友方或是中立则放探梅,如果是敌对NPC则对NPC目标放探梅。
/script function ST(dwID)local scene = (Station.Lookup("Lowest/Scene/Scene_Main"))local ttype = nilif IsPlayer(dwID) thenttype = TARGET.PLAYERelsettype = TARGET.NPCendthis = {}local bLDown = scene.bLDownlocal bRDown = scene.bRDownthis.bLDown = truethis.bRDown = falsethis.dwObjType = ttypethis.dwObjID = dwIDthis.bDownTime = GetTickCount() + 1000local x, y = Cursor.GetPos(false)this.x = xthis.y = ySceneSetTarget()scene.bLDown = bLDownscene.bRDown = bRDownif bLDown and not bRDown thenScene.OnSceneLButtonDown()elseif not bLDown and bRDown thenScene.OnSceneRButtonDown() end end
/script TTY,TID = GetClientPlayer().GetTarget() pT,pID=GetNpc(TID).GetTarget() ST(pID)
/cast 探梅
/script ST(TID)
3.一键打断施法宏 说实话我们的夕照雷锋不用个宏打断还挺麻烦,所以就做了,一键打断的宏如下
/script GetClientPlayer().StopCurrentAction()
我举个例子,比如说打断夕照施放摘星,可以这样写
/script GetClientPlayer().StopCurrentAction()#cd 摘星
/Delay 1
/cast 摘星