=============================================================
显示自己目前血量法力%的巨集
/script  TargetUnit("player");  th=UnitHealth("Target")/UnitHealthMax("Target")*100;  tm=UnitMana("Target")/UnitManaMax("Target")*100;  SendChatMessage(format("救命啊...我被怪打,我的血量只剩:%d%% 我的法力只剩:%d%% 危险~危险!!",  th,  tm),  "yell");
=============================================================
自我绷带  /*使用快捷列第22个、当目标是空或是敌人选择自己//*自动标示下一个目标*/
/script  UseAction(22);if(SpellIsTargeting())  then  SpellTargetUnit("Player");end;TargetLastEnemy();
=============================================================
解除诅咒  /*若是选到敌人,则选回自己*/
/script  if(UnitExists("target")  and  UnitInParty("target"))  then  SendChatMessage("【%T】别怕..我帮你解咒啰...","SAY");SpellStopCasting();CastSpellByName("解除次级诅咒");TargetLastEnemy();end;
=============================================================
喝水吃面包  /*判断血与魔少  90%  的时候喝水或是回魔,要是没有面包或是晶水,则自动制作*/
/e  刈包、豆浆 元气!
/script  gc=GetActionCount;c=CastSpellByName;u=UseAction;p="player";if(gc(23)==0)then  c("造食术");end;if(gc(24)==0)then  c("造水术");end;if((UnitHealth(p)/UnitHealthMax(p)*100)<90)then  u(23);end;if((UnitMana(p)/UnitManaMax(p)*100)<90)then  u(24);end;
=============================================================
法师变形术  /*当对象是敌对的时候,变羊并说出怪物的等级名字*/
/script  t="target";if  (UnitExists(t)  and  UnitIsEnemy("player",t))  then  SendChatMessage("  把﹝"  ..  UnitLevel(t)  ..  "级﹞的【%T】变羊!","SAY");SpellStopCasting();CastSpellByName("变形术");TargetLastEnemy();end;
=============================================================
魔法反制巨集  /*当对象是敌对的时候,取消你正在施放的魔法,立即使用魔法反制并说出怪物的等级名字*/
/script  t="target";if  (UnitExists(t)  and  UnitIsEnemy("player",t))  then  SendChatMessage("把﹝"  ..  UnitLevel(t)  ..  "级﹞的【%T】法术反制,引它回来啰","SAY");SpellStopCasting();CastSpellByName("法术反制");end;
=============================================================
魔暴术  /*魔暴很花魔又容易死所以我另外加了一个可以回魔回血的判断*/
/施放  魔爆术
/SCRIPT  if(UnitMana("player")<=390)  then  if  not(IsUsableAction(21)==0)  then  UseAction(21);else  UseAction(20);end;end;
/SCRIPT  if(UnitHealth("player")<=1000)  then  if  not(IsUsableAction(19)==0)  then  UseAction(19);else  UseAction(18);end;end;
=============================================================
关于  UseAction(XX);    使用第几栏位的物品  (  快速键上的栏位喔  )
我的放置物品  (  配合目前巨集  )
18 极效治疗石  (  1200  )
19 极效治疗石  (  1440  )
20    法力宝石  (  次级  )
21    法力宝石  (  最高级  )
22    绷带
23    面包
24    魔晶水
第一列  快速键  1~12
第二列  快速键  13~24
........
依此列推
声明:此文章为作者 segeyi 创作,并分享于数位男女论坛;如需转载请加注此声明