Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

1、树皮+宁静:

判断是否有树皮,没有则放树皮,有则放宁静。简而言之,点一下是树皮,2 下是树皮+宁静。
/script x=1;found=0;while(UnitBuff("player",x)) do
if(string.find(UnitBuff("player",x),"StoneClaw"))then found=1;end;x=x+1;end;
/script if(found==1)then CastSpellByName("宁静(等级 3)");else CastSpellByName("树皮
术")end
2、激活:
先判断,如果目标敌对/是 NPC/没有目标/是没蓝职业 都给自己使用激活;如果目标是有蓝职业则
给对放激活。使用完激活自动返回上一目标。
/script x=UnitClass("target");if (not UnitIsFriend("player","target") or
(UnitManaMax
("target")<200 and x~="Druid")) then TargetUnit("player");end;CastSpellByName("激
活");TargetLastTarget();
3、自然迅捷+治疗之触:
只需要按一下,但是偶尔也需要 2 下(比如延迟高)。(light_arm 修改)
/script SpellStopCasting()
/施放 自然迅捷
/script SpellStopCasting()
/施放 治疗之触(等级 11)
4、回春术+迅捷治愈:
有回春效果则放迅捷治愈,没有则放回春.
/Script x=1;found=0;while(UnitBuff("target",x)) do
if(string.find(UnitBuff("target",x),"Rejuvenation"))then found=1;end;x=x+1;end;
/Script if(found==1)then CastSpellByName("迅捷治愈");else CastSpellByName("回春术(等级
11))")end
5、治疗之触:
(1)根据目标血量判断是使用最大等级的治疗之触,还是刷 4 级触(去血少于 1200)。
/cast 治疗之触
/script if UnitIsFriend("Player","target") then if UnitAffectingCombat("target")
then if
((UnitHealthMax("target"))-(UnitHealth("target"))<1200) then CastSpellByName("治疗之
触(等级 4)");end;end;elseif SpellIsTargeting() then TargetUnit("Player");end
(2)根据目标血量判断使用哪个等级的治疗之触。
/script H=UnitHealthMax("target")-UnitHealth("target");S=
{41,98,213,394,617,799,1004,1285,1621,2010,2496};
/script for j=11,1,-1 do if (H>=S[j]) then CastSpellByName("治疗之触(等级 "..j..")");
break;end;end;
6、回春术:
根据目标等级判断使用哪个等级的回春术。
/script r=11;l={4,10,16,22,28,34,40,46,52,58,60};t=UnitLevel("target");for j=r,1,-1
do if (t>=l[j]-10) then CastSpellByName("回春术(等级 "..j..")");break;end;end
7、愈合:
根据目标等级判断使用哪个等级的愈合。
/script r=9;l={12,18,24,30,36,42,48,54,60};t=UnitLevel("target");for j=r,1,-1 do if
(t>=l[j]-10) then CastSpellByName("愈合(等级 "..j..")");break;end;end
8、驱毒:
在任何形态下变回人形,并给目标上驱毒。
/script local i,a,_;for i=1,GetNumShapeshiftForms() do
_,_,a=GetShapeshiftFormInfo(i);if a then CastShapeshiftForm(i);break;end;end;
/cast 驱毒术
9、解除自身 DEBUFF:
(妖术师金度制作)可解除自己身上的诅咒和中毒效果。
/script dbk={'Poison','Curse'}; spl={''驱毒术'',''解除诅咒''}; for m=0,31,1 do for
n=1,2,1 do if GetPlayerBuffDispelType(GetPlayerBuff(m,'HARMFUL'))==dbk[n] then
TargetUnit('player');CastSpellByName(spl[n]);TargetLastTarget();break;end;end;end;

You might also like