处理 SSI 文件时出错
您的位置:游民星空 >> 魔兽世界 >> 盗贼经验 >> 正文

副本输出无限使用切割的宏

发布时间: [2007-4-22]  游民星空 http://www.gamersky.com

我自己做的一个如题的宏,请大家测试使用,谢谢。

/script i=1;t=0;
while UnitBuff("player",i) do

    if string.find(UnitBuff("player",i),"SliceDice") then
        t=1;
        break;
    end;

    i=i+1;
end;

if((GetComboPoints()>1 and t=0)) then
    CastSpellByName("切割")
elseif ((GetComboPoints()>2 and t=1)) then
    CastSpellByName("剔骨")
else
    CastSpellByName("邪恶攻击")
end;

*****************以下是解释:*********************

/script i=1;t=0;
while UnitBuff("player",i) do--------------------------------〉循环判断自己身上的BUFF

    if string.find(UnitBuff("player",i),"SliceDice") then---------〉自身的BUFF的字符串中是否有切割
        t=1;------------------------------------------------〉有的话t设为1
        break;----------------------------------------------〉跳出循环
    end;

    i=i+1;
end;

if((GetComboPoints()>1 and t=0)) then--------------------〉如果星大于1颗并且没有切割
    CastSpellByName("切割")-------------------------------〉则释放切割
elseif ((GetComboPoints()>2 and t=1)) then---------------〉如果星大于2颗并且有切割

    CastSpellByName("剔骨")-------------------------------〉则释放剔骨
else
    CastSpellByName("邪恶攻击")---------------------------〉其它情况则邪恶攻击
end;

相关文章:
·给新手猎人的一点PK小经验
·兽王终结天赋
·奶德27-0-34副本天赋
·法师很弱么?不见得吧
·毒毁 JJC试用
发表评论】 【我要投稿】 【魔兽论坛】 【离开这里

发表评论: 查看所有评论 
昵称 *

魔兽图库
处理 SSI 文件时出错
处理 SSI 文件时出错
处理 SSI 文件时出错