A S Pgentoo 默认启动脚本脚本主要使用的是什么

BLIZZCON&欧美各队使用的脚本
声明:所有宏的版权归Diziet/Kollektiv/Firebug.
使用方法:&
1.保存成.txt文件,然后一条条复制到聊天栏吧..事实上欧美队伍是这么做的...
2.中级:每一行/run&做成一个宏,拖出来一个个点一遍.
3.进阶:&使用以下宏绑定各个宏的快捷键,然后按快捷键...NUMPAD1&是小键盘数字键1,以此类推,&A,B,C..为你做的宏的名字)
/run&sbc=SetBindingMsbc("NUMPAD1","A");sbc("NUMPAD2","B");sbc("NUMPAD3","C");sbc("NUMPAD4","D");sbc("NUMPAD5","E");sbc("NUMPAD6","F");sbc("NUMPAD7","G");sbc("NUMPAD8","H");sbc("NUMPAD9","I");sbc("ALT-NUMPAD1","J");sbc("ALT-NUMPAD2","K")
/run&sbc("SHIFT-F3","SF3");sbc("SHIFT-F4","SF4");sbc("SHIFT-F5","SF5");sbc("SHIFT-F6","SF6");sbc("SHIFT-F7","SF7");sbc("SHIFT-F8","SF8");sbc("SHIFT-F9","SF9");sbc("SHIFT-F10","SF10");SaveBindings(1)
自动反制类法术监视(游戏内置秒表监视)
/run&AID={};for&i=1,5&do&AID["arena"..i]=1;AID["arenapet"..i]=1&GSI=GetSpellIINTIDS={[GSI(2139)]=24,[GSI(19647)]=24,[GSI(691)]=1};StopwatchFrame:Show()
/run&local&f=CreateFrame("Frame");f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");f:SetScript("OnEvent",function(f,e,u,s,_)if((AID[u])&and&INTIDS[s])then&Stopwatch_StartCountdown(0,0,INTIDS[s]);Stopwatch_Play();end&end)
/run&UFP&=&"UnitFramePortrait_Update";&UICC&=&"Interface\\TargetingFrame\\UI-Classes-Circles";&CIT&=&CLASS_ICON_TCOORDS;SP,CA="SetPoint","ClearAllPoints";NO=function()&end
/run&hooksecurefunc(UFP,function(s)&if&s.portrait&then&if&UnitIsPlayer(s.unit)&then&local&t=CIT[select(2,UnitClass(s.unit))]&if&t&then&s.portrait:SetTexture(UICC)&s.portrait:SetTexCoord(unpack(t))&end&else&s.portrait:SetTexCoord(0,1,0,1)&end&end&end)
头像姓名框职业颜色(目标和焦点)
/run&zf&=&CreateFrame("FRAME")&zf:RegisterEvent("PLAYER_ENTERING_WORLD")&zf:RegisterEvent("PARTY_MEMBERS_CHANGED")&zf:RegisterEvent("PLAYER_TARGET_CHANGED")&zf:RegisterEvent(S.C)
/run&function&zz(self,&event,&td)&if&(event&==&S.C&and&td&~=&"target")&then&return&&if&UnitIsPlayer("target")&then&_,&class&=&UnitClass("target");&c&=&RAID_CLASS_COLORS[class];&_G[S.A]:SetVertexColor(c.r,&c.g,&c.B);&_G[S.A]:SetAlpha(1);&end&end
/run&zf:SetScript("OnEvent",&zz);ff&=&CreateFrame("FRAME")&ff:RegisterEvent("PLAYER_ENTERING_WORLD")&ff:RegisterEvent("PARTY_MEMBERS_CHANGED")&ff:RegisterEvent("PLAYER_FOCUS_CHANGED")&ff:RegisterEvent(S.C)
/run&function&ft(self,&event,&td)&if&(event&==&S.C&and&td&~=&"focus")&then&return&&if&UnitIsPlayer("focus")&then&_,&class&=&UnitClass("focus");&c&=&RAID_CLASS_COLORS[class];&_G[S.B]:SetVertexColor(c.r,&c.g,&c.B);&_G[S.B]:SetAlpha(1)&end&end
/run&ff:SetScript("OnEvent",&ft)
POWER AURAS (宏做出POWER AURAS插件的效果, 在我以前一个帖子有提到过, 改变spell
id(法术ID)监视你需要的技能,下面例子监视自身触发的4个AURAS. 基本原理就是利用游戏内置的法术触发监视)
/run&SAF=SpellActivationOverlayFrame&SAS=SpellActivationOverlay_ShowOverlay&SAH=SpellActivationOverlay_HideOverlays&
/run&FO1="TEXTURES\\SPELLACTIVATIONOVERLAYS\\ART_OF_WAR.BLP";FO2="TEXTURES\\SPELLACTIVATIONOVERLAYS\\FROZEN_FINGERS.BLP";FO3="TEXTURES\\SPELLACTIVATIONOVERLAYS\\BRAIN_FREEZE.BLP";FO4="TEXTURES\\SPELLACTIVATIONOVERLAYS\\LOCK_AND_LOAD.BLP"
/run&PS1=CreateFrame("FRAME");PS2=CreateFrame("FRAME");PS3=CreateFrame("FRAME");PS4=CreateFrame("FRAME")
/run&PS1:RegisterEvent("UNIT_AURA");PS1:SetScript('OnEvent',function()&o=0&for&i=1,40&do&_,_,_,_,_,_,_,_,_,_,id=UnitAura("Player",i)&if&id==64343&then&SAS(SAF,64343,FO1,"RIGHT",.5,255,50,50,false,true)&o=1&end&end&if&o==0&then&SAH(SAF,64343)&end&end)
/run&PS2:RegisterEvent("UNIT_AURA");PS2:SetScript('OnEvent',function()&o=0&for&i=1,40&do&_,_,_,_,_,_,_,_,_,_,id=UnitAura("Player",i)&if&id==44544&then&SAS(SAF,44544,FO2,"TOP",.5,255,255,255,false,true)&o=1&end&end&if&o==0&then&SAH(SAF,44544)&end&end)
/run&PS3:RegisterEvent("UNIT_AURA");PS3:SetScript('OnEvent',function()&o=0&for&i=1,40&do&_,_,_,_,_,_,_,_,_,_,id=UnitAura("Player",i)&if&id==57761&then&SAS(SAF,57761,FO3,"LEFT",.5,255,255,255,true,false)&o=1&end&end&if&o==0&then&SAH(SAF,57761)&end&end)
/run&PS4:RegisterEvent("UNIT_AURA");PS4:SetScript('OnEvent',function()&o=0&for&i=1,40&do&_,_,_,_,_,_,_,_,_,_,id=UnitAura("Player",i)&if&id==91024&then&SAS(SAF,91024,FO4,"BOTTOM",.8,255,255,255,true,true)&o=1&end&end&if&o==0&then&SAH(SAF,91024)&end&end)
竞技场目标PVP徽章监视, 包括了人类的自利 (推荐进入竞技场后在执行脚本!)
/run&rc=36;rfc=CooldownFrame_SetTaef="ArenaEnemyFrame";hb="HealthBar";trt=GetItemIcon(37864)ctf&=&CreateFoe="ARENA_OPPONENT_UPDATE"ve="PLAYER_ENTERING_WORLD"tr="RIGHT"LoadAddOn("Blizzard_ArenaUI")
/run&function&Cr(i)local&f=ctf("Frame",nil,UIParent)f:SetPoint(tr,_G[aef..i..hb],tr,80,0)f:SetSize(rc,rc)f.t=f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.t:SetTexture(trt)f.c=CreateFrame("Cooldown",nil,f)f.c:SetAllPoints(f)return&f;end
/run&function&ur(f,i)f:SetScript("OnEvent",function(_,e,u,_,_,_,s)if(u=="arena"..i)then&if(s==42292&or&s==59752)then&rfc(f.c,GetTime(),120,1)elseif(s==7744)then&rfc(f.c,GetTime(),30,1)end&end&end)f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")end
/run&for&i=1,5&do&_G["rf"..i]=Cr(i)local&f=_G["rf"..i]ur(f,i)f:Hide()end&function&str(o,m)for&i=1,&m&do&local&f=_G["rf"..i]if&o&then&f:Show()else&f:Hide()f.c:Hide()end&end&end
/run&tk=ctf("Frame")tk:SetScript("OnEvent",function(_,e)if&e==oe&then&str(1,GetNumArenaOpponents())else&str(nil,5)end&end)tk:RegisterEvent(oe)tk:RegisterEvent(ve)
LoseControl (实现 losecontrol插件的功能,在竞技场框体右边显示控制技能)
/run&RMP={[8]=1,[70]=1,[8]=1,[8757]=1,[12]=1,[3302]=1,[7357]=1,[4021]=1};
/run&LC={[3259]=1,[964]=1,[882]=1,[8044]=1,[511]=1,[118]=1,[511]=1,[8]=1,[572]=1,[105]=1,[23]=1,[9021]=1,[1476]=1};
/run&table.insert(LC,&7922,&1);table.insert(LC,&1833,&1);table.insert(LC,&1330,&1);table.insert(LC,&2094,&1);table.insert(LC,&6770,&1);table.insert(LC,&80354,&1)
/run&d="Debuff";TT="TargetDebuffFrameTemplate";L="LEFT";R="RIGHT";F="Frame";UA="UNIT_AURA";OE="OnEvent";AR="arena";UD=UnitDAE="ArenaEnemyFrame";d1="Debuff1";D=RefreshDCF=CreateFBO="Border";T="TOP";B="BOTTOM"
/run&g1=CF(F);g1:RegisterEvent(UA);g2=CF(F);g2:RegisterEvent(UA);g3=CF(F);g3:RegisterEvent(UA);h1=CF(F);h1:RegisterEvent(UA);h2=CF(F);h2:RegisterEvent(UA);h3=CF(F);h3:RegisterEvent(UA);q1=CF(F);q1:RegisterEvent(UA);q2=CF(F);q2:RegisterEvent(UA)
/run&function&DoDebuffs(f,aura,template,R1,R2)&for&j=1,16&do&local&l&=&f:GetName()..local&n=l..j;local&c=CF(F,n,f,template);c.unit=f.c:SetPoint(R1,_G[l..(j-1)],R2);_G[n..BO]:SetAlpha(0);end&end
/run&f1=_G[AE.."1"];&g1:SetScript(OE,function(self,event,a1)&if&a1==f1.unit&then&D(f1,a1,16,nil,1);end&end)&DoDebuffs(f1,d,TT,L,R)&local&b=_G[f1:GetName()..d1];b:ClearAllPoints();b:SetPoint(L,f1,R,2,-2);
/run&f2=_G[AE.."2"];&g2:SetScript(OE,function(self,event,a2)&if&a2==f2.unit&then&D(f2,a2,16,nil,1);end&end)&DoDebuffs(f2,d,TT,L,R)&local&b=_G[f2:GetName()..d1];b:ClearAllPoints();b:SetPoint(L,f2,R,2,-2);
/run&f3=_G[AE.."3"];&g3:SetScript(OE,function(self,event,a3)&if&a3==f3.unit&then&D(f3,a3,16,nil,1);end&end)&DoDebuffs(f3,d,TT,L,R)&local&b=_G[f3:GetName()..d1];b:ClearAllPoints();b:SetPoint(L,f3,R,2,-2);
/run&h1:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD(AR.."1",j);q=f1:GetName()..d..j&if&(not&RMP[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(1.4);end&end&end)
/run&h2:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD(AR.."2",j);q=f2:GetName()..d..j&if&(not&RMP[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(1.4);end&end&end)
/run&h3:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD(AR.."3",j);q=f3:GetName()..d..j&if&(not&RMP[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(1.4);end&end&end)
/run&p1=_G["PlayerFrame"];&q1:SetScript(OE,function(self,event,a1)&if&a1==p1.unit&then&D(p1,a1,16,nil,1);end&end)&DoDebuffs(p1,d,TT,T,B)&local&b=_G[p1:GetName()..d1];b:ClearAllPoints();b:SetPoint("CENTER",&55,&46.5);b.SetPoint&=&function()&end
/run&q2:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD("player",j);q=p1:GetName()..d..j&if&(not&LC[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(2);end&end&end)/run&RMP={[8]=1,[70]=1,[8]=1,[8757]=1,[12]=1,[3302]=1,[7357]=1,[4021]=1};
/run&LC={[3259]=1,[964]=1,[882]=1,[8044]=1,[511]=1,[118]=1,[511]=1,[8]=1,[572]=1,[105]=1,[23]=1,[9021]=1,[1476]=1};
/run&table.insert(LC,&7922,&1);table.insert(LC,&1833,&1);table.insert(LC,&1330,&1);table.insert(LC,&2094,&1);table.insert(LC,&6770,&1);table.insert(LC,&80354,&1)
/run&d="Debuff";TT="TargetDebuffFrameTemplate";L="LEFT";R="RIGHT";F="Frame";UA="UNIT_AURA";OE="OnEvent";AR="arena";UD=UnitDAE="ArenaEnemyFrame";d1="Debuff1";D=RefreshDCF=CreateFBO="Border";T="TOP";B="BOTTOM"
/run&g1=CF(F);g1:RegisterEvent(UA);g2=CF(F);g2:RegisterEvent(UA);g3=CF(F);g3:RegisterEvent(UA);h1=CF(F);h1:RegisterEvent(UA);h2=CF(F);h2:RegisterEvent(UA);h3=CF(F);h3:RegisterEvent(UA);q1=CF(F);q1:RegisterEvent(UA);q2=CF(F);q2:RegisterEvent(UA)
/run&function&DoDebuffs(f,aura,template,R1,R2)&for&j=1,16&do&local&l&=&f:GetName()..local&n=l..j;local&c=CF(F,n,f,template);c.unit=f.c:SetPoint(R1,_G[l..(j-1)],R2);_G[n..BO]:SetAlpha(0);end&end
/run&f1=_G[AE.."1"];&g1:SetScript(OE,function(self,event,a1)&if&a1==f1.unit&then&D(f1,a1,16,nil,1);end&end)&DoDebuffs(f1,d,TT,L,R)&local&b=_G[f1:GetName()..d1];b:ClearAllPoints();b:SetPoint(L,f1,R,2,-2);
/run&f2=_G[AE.."2"];&g2:SetScript(OE,function(self,event,a2)&if&a2==f2.unit&then&D(f2,a2,16,nil,1);end&end)&DoDebuffs(f2,d,TT,L,R)&local&b=_G[f2:GetName()..d1];b:ClearAllPoints();b:SetPoint(L,f2,R,2,-2);
/run&f3=_G[AE.."3"];&g3:SetScript(OE,function(self,event,a3)&if&a3==f3.unit&then&D(f3,a3,16,nil,1);end&end)&DoDebuffs(f3,d,TT,L,R)&local&b=_G[f3:GetName()..d1];b:ClearAllPoints();b:SetPoint(L,f3,R,2,-2);
/run&h1:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD(AR.."1",j);q=f1:GetName()..d..j&if&(not&RMP[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(1.4);end&end&end)
/run&h2:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD(AR.."2",j);q=f2:GetName()..d..j&if&(not&RMP[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(1.4);end&end&end)
/run&h3:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD(AR.."3",j);q=f3:GetName()..d..j&if&(not&RMP[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(1.4);end&end&end)
/run&p1=_G["PlayerFrame"];&q1:SetScript(OE,function(self,event,a1)&if&a1==p1.unit&then&D(p1,a1,16,nil,1);end&end)&DoDebuffs(p1,d,TT,T,B)&local&b=_G[p1:GetName()..d1];b:ClearAllPoints();b:SetPoint("CENTER",&55,&46.5);b.SetPoint&=&function()&end
/run&q2:SetScript(OE,function(self,event,a1)for&j=1,16&do&_,_,_,_,_,_,_,_,_,_,id=UD("player",j);q=p1:GetName()..d..j&if&(not&LC[id])&then&_G[q]:Hide();_G[q]:SetScale(.01);else&_G[q]:Show();_G[q]:SetScale(2);end&end&end)
类似Bartender动作条
/run&MultiBarBottomRight:SetScale(0.72);MultiBarBottomLeft:SetScale(0.72);MainMenuBar:ClearAllPoints();MainMenuBar:SetPoint("CENTER",&UIParent,&"CENTER",&0,&-800);MainMenuBar.SetPoint&=&function()&end
/run&for&i=1,12&do&local&s,t=_G["MultiBarBottomRightButton"..i],_G["MultiBarBottomLeftButton"..i];s[CA](s);s[SP](s,"CENTER",-310+i*38.5,625);t[CA](t);t[SP](t,"CENTER",200+i*38.5,662)&end
所有框体点击穿透(防止误选,完全键盘流适用)
/run&h={PlayerFrame,TargetFrame,FocusFrame,PetFrame,MultiBarBottomLeft,MainMenuBar,MainMenuBarArtFrame,MultiBarBottomRight,MultiBarLeft,BuffFrame,Minimap,MinimapCluster,MultiBarRight,ArenaEnemyFrames,ArenaEnemyFrame1,ArenaEnemyFrame2,ArenaEnemyFrame3}
/run&for&_,s&in&ipairs(&h)&do&s:EnableMouse(false);&c={s:GetChildren()};&for&_,v&in&ipairs(c)&do&if(v)&then&v:EnableMouse(false);&end&end&end
/run&DRt={{84,},{118,203,,,,51514}}
/run&drx=110;drs=40;dp="RIGHT";dre="COMBAT_LOG_EVENT_UNFILTERED"drp="PLAYER_ENTERING_WORLD"dra="ARENA_OPPONENT_UPDATE"LoadAddOn("Blizzard_ArenaUI")function&gaef(f,n)return&_G["ArenaEnemyFrame"..n.."HealthBar"]end
/run&function&rDR(f)f.e=1;f.t:SetTexture(nil)f.c:Hide()end&function&sDR(f)f.e=f.e+1;f.c:Show()end&function&gDRt(i,j)return&_G["drc"..i..":"..j]end&function&runDR(f,n)CooldownFrame_SetTimer(f.c,GetTime(),18,1)eDR(f,n)sDR(f)oDR(n)end
/run&function&eDR(f,n)local&t=1;f:SetScript("OnUpdate",function(s,e)t=t+e;if(t&=18)then&f:SetScript("OnUpdate",nil)rDR(f)oDR(n)end&end)end&function&cDR(f,n,s)if&f.e&4&then&local&_,_,t=GetSpellInfo(s)f.t:SetTexture(t)runDR(f,n)end&end
/run&function&oDR(n)local&r=1;for&j&in&ipairs(DRt)do&local&f=gDRt(n,j)f:SetPoint(dp,gaef(f,n),dp,drx+(r-1)*50,0)r=r+1;end&end&function&uDR(n,s)for&i,t&in&ipairs(DRt)do&for&_,j&in&ipairs(t)do&if&s==j&then&cDR(gDRt(n,i),n,s)end&end&end&end
/run&function&DRc(i,j)local&f=CreateFrame("Frame",nil,UIParent)f:SetSize(drs,drs)f.t=f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.c=CreateFrame("Cooldown",nil,f)f.c:SetAllPoints(f)f.e=1&return&f&end
/run&function&clDR(_,e,_,_,_,_,_,d,_,_,_,s)if(e=="SPELL_AURA_REMOVED"&or&e=="SPELL_AURA_REFRESH")then&for&i=1,5&do&local&ag=UnitGUID("arena"..i)if(ag&~=&nil&and&d==ag)then&uDR(i,s)end&end&end&end
/run&function&iDRt(o,m)for&i=1,m&do&for&j&in&ipairs(DRt)do&local&f=gDRt(i,j)rDR(f)if&o&then&f:Show()end&end&end&end&for&i=1,5&do&for&j&in&ipairs(DRt)do&_G["drc"..i..":"..j]=DRc(i,j)end&end
/run&dt=CreateFrame("Frame")dt:SetScript("OnEvent",function(_,e,...)if&e==dre&then&clDR(...)elseif&e==dra&then&iDRt(1,GetNumArenaOpponents())else&iDRt(nil,5)end&end)dt:RegisterEvent(dra)dt:RegisterEvent(drp)dt:RegisterEvent(dre)
CD计时(Omnicc)
/run&cs=20;ps=10;ctp="CENTER"ptp="BOTTOMRIGHT"cp=5;ct=UNIT_NAME_FONT;crt=2;cDB={}action={}ccf=CreateFgac=GetActionCol="OUTLINE"cpe="PLAYER_ENTERING_WORLD"cau="ACTIONBAR_UPDATE_COOLDOWN"co="OnUpdate"
/run&function&rt(f)f.e=nil&f.t:SetText("")f:SetScript(co,nil)end&function&sf(f,v)f.t:SetFont(ct,f.s*v,ol)end&function&acv(b)local&x=b.cooldown&x.a=b.action&action[x]=x&end&function&scv(p,f,po,s)if(s&1)then&f.t:SetPoint(po,p)end&f.s=s;end
/run&function&sr(f,e)if(e&60)then&sf(f,0.7)if(f.s==cs)then&return"%d:d",e,e&else&return"%dm",e+60,e&end&elseif(e&=cp)then&sf(f,1)f.t:SetTextColor(1,1,0,1)return"%d",e&elseif(e&0)then&sf(f,0.9)f.t:SetTextColor(1,0,0,1)return"%.1f",e&else&return&end&end
/run&function&suc(f)if&not&f.e&then&f.e=1;f:SetScript(co,function(s,e)f.c=f.c+e;local&fo,v1,v2=sr(f,f.r-f.c)if&not&fo&then&rt(f)elseif&not&v2&then&f.t:SetFormattedText(fo,v1)else&f.t:SetTextColor(1,1,1,1)f.t:SetFormattedText(fo,v1/60,v2`)end&end)end&end
/run&function&scs(p,f)if(p:GetSize()&35)then&scv(p,f,ptp,ps)else&scv(p,f,ctp,cs)end&end&function&gict(f)local&c=ccf("Frame",nil,f)c:SetFrameLevel(f:GetFrameLevel()+5)c.t=c:CreateFontString(nil,"OVERLAY")c.t:SetAllPoints(c)scs(f:GetParent(),c)return&c;end
/run&function&gct(f)if&not&cDB[f]then&local&c=gict(f)c:SetSize(c.s*crt,c.s*crt)sf(c,1)cDB[f]=c;end&return&cDB[f]end&function&cvf(f,s,d)local&c=gct(f)if(s&and&d)then&c.b=s;c.d=d;if(s&0&and&d&1.5)then&c.c=0;c.r=d-(GetTime()-s);suc(c)else&rt(c)end&end&end
/run&function&cvc(DB)for&c&in&pairs(DB)do&if&c.a&then&local&s,d=gac(c.a)cvf(c,s,d)end&end&end&function&pcv(_,e)if&e==cau&then&cvc(action)else&cvc(cDB)end&end&for&_,b&in&pairs(ActionBarButtonEventsFrame.frames)do&acv(b)end
/run&vc=ccf("Frame")vc:SetScript("OnEvent",pcv)vc:RegisterEvent(cpe)vc:RegisterEvent(cau)hooksecurefunc(getmetatable(ActionButton1Cooldown).__index,"SetCooldown",cvf)hooksecurefunc("SetActionUIButton",acv)
敌对打断监视interruptabr
/run&li={,,52,,,44572}cd={24,24,5,45,60,27,10,10,10,10,10,45}
/run&fl=0;ic=40;xp=-500;yp=320;n=6;sfc=CooldownFrame_SetTcrf=CreateFce=math.ih=IsInIgsi=GetSpellIup=UIParent&pe="PLAYER_ENTERING_WORLD"cdf="Cooldown"
/run&function&cf(i,s,x,y)local&_,_,t=gsi(s)local&f=crf("Frame",nil,up)f:SetPoint("CENTER",x,y)f:SetSize(ic,ic)f.t&=&f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.t:SetTexture(t)f.c=CreateFrame(cdf,nil,f)f.c:SetAllPoints(f)return&f;end
/run&function&ud(f,ls,lc)f:SetScript("OnEvent",function(_,_,_,e,_,_,_,b,_,_,_,_,_,s)if((bit.band(b,0x40)&==&0x40)and&e=="SPELL_CAST_SUCCESS"and&s==ls)then&sfc(f.c,GetTime(),lc,1)end&end)f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")end
/run&for&i,s&in&ipairs(li)do&_G["ib"..i]&=&cf(i,s,xp+(ic+5)*ce((i-1)%n),yp-(ic+5)*ce(i/n))ud(_G["ib"..i],s,cd[i])end
/run&ik=crf("Frame")ik:SetScript("OnEvent",function()local&_,t=ih()for&i,s&in&ipairs(li)do&local&f=_G["ib"..i]if(t=="arena"or&fl==0)then&f:Show()f.c:Show()else&f:Hide()f.c:Hide()end&end&end)ik:RegisterEvent(pe)
以上全文转自蒽乩诶,慢慢研究。
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。[重点]闪电战1脚本编写基础教程-[闪电战论坛]
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
[重点]闪电战1脚本编写基础教程-[闪电战论坛]
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口ASP脚本语言的19个基本技巧使用_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
ASP脚本语言的19个基本技巧使用
上传于||文档简介
&&A​S​P​脚​本​语​言​的9​个​基​本​技​巧​使​用
阅读已结束,如果下载本文需要使用
想免费下载本文?
下载文档到电脑,查找使用更方便
还剩4页未读,继续阅读
你可能喜欢用dos命令做成的BAT脚本是怎么执行的?_百度知道
用dos命令做成的BAT脚本是怎么执行的?
提问者采纳
批命令里边每一行为一条DOS命令。
你这条命令解释如下:
shutdown -s -t
shutdown 是Windows的内部指令,意思就是关机,因为Windows是由DOS发展来的,所以批命令还是可以执行的。
-s、-t 这些被称作是参数(或选项),-s的意思是关闭此计算机,如果换成-r则是重启计算机;-t是表示一个关机延时。
shutdown还有其他参数,详细解释如下:
没有参数 显示此命令的帮助信息(与 ? 相同)
-i 显示 GUI 界面,必须是第一个选项
-l 注销(不能与选项 -m 一起使用)
-s 关闭此计算机
-r 关闭并重启动此计算机
-a 放弃系统关机
-m \\computername 远程计算机关机/重启动/放弃
-t xx 设置关闭的超时为 xx订川斥沸俪度筹砂船棘 秒
-c &comment& 关闭注释(最大 127 个字符)
-f 强制运行的应用程序关闭而没有警告
-d [u][p]:xx:yy 关闭原因代码
u 是用户代码
p 是一个计划的关闭代码
xx 是一个主要原因代码(小于 256 的正整数)
yy 是一个次要原因代码(小于 65536 的正整数)
希望你能看的明白。
其他类似问题
为您推荐:
dos命令的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 gentoo 默认启动脚本 的文章

 

随机推荐