LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 5793|回复: 10

盗贼部分

[复制链接]
发表于 2017-10-19 13:06:41 | 显示全部楼层 |阅读模式
盗贼

首先说明一下,宏无法判断是否在背后,所以做不出背后就背刺,否则就邪恶之类的宏,不要再问了
绷带不丢星,这其实就是自我施法,暴雪已经整合了这个功能,打开主菜单 -> 界面设置 -> 自动自我施法 打个勾就解决了

冷血 + 剔骨
如果目标是怪,连击点>=4才冷剔,否则普通剔骨;
如果目标是玩家,连击点>=3就冷剔,如果冷血未CD,才使用普通剔骨。
/script local p,f=GetComboPoints(),UnitIsPlayer("target");if f and p>2 or not f and p>3 then CastSpellByName("冷血");SpellStopCasting();end;
/施放 剔骨

剑刃乱舞 + 护符
/script c,s,x,u,p,d,e,_=CastSpellByName,SpellStopCasting;GetInventoryItemCooldown,UseInventoryItem,"player";c("剑刃乱舞");s();_,d,e=x(p,13);if d<2 and e>0 then u(13);else _,d,e=x(14);if d<2 and e>0 then u(14);end;end;

自动切割宏
平时用邪恶搌星 若无切割状态 只要有星 立即施放切割 若有 则继续 邪恶搌星 若能搌到5星时切割状态还在 则施放剔骨
/script local p,c,b,i,f=GetComboPoints(),CastSpellByName;for i=1,16 do b=UnitBuff("player",i);if b and strfind(b,"SliceDice") then f=1;break;end;end;if p>0 and not f then c("切割");elseif p==5 and f then c("剔骨");else c("邪恶攻击");end;

自动割裂宏
平时用邪恶搌星 若目标无割裂状态 只要有星 立即施放割裂 若有 则继续 邪恶搌星 若能搌到5星时割裂状态还在 则施放剔骨
/script local p,c,d,i,f=GetComboPoints(),CastSpellByName;for i=1,16 do d=UnitDebuff("target",i);if d and strfind(d,"Rupture") then f=1;break;end;end;if p>0 and not f then c("割裂");elseif p==5 and f then c("剔骨");else c("邪恶攻击");end;

偷袭起手,护符 + 背刺
/script local c,a,_=CastSpellByName;_,_,a=GetShapeshiftFormInfo(1);if a then c("偷袭");elseif UnitMana("player")>=60 then if GetInventoryItemCooldown("player",13)==0 then UseInventoryItem(13);SpellStopCasting();end;c("背刺");end;
护符放在饰品1上
如果在潜行状态,按第一下偷袭,再按就护符+背刺,不在潜行状态的话直接护符+背刺
自己掌握好距离和能量

邪恶还击宏
用 还击 在动作条上的序号替换下边红色字,查编号看上边基础知识
/script local s,d=GetActionCooldown(还击编号);if IsUsableAction(还击编号) and d<2 then CastSpellByName("还击");else CastSpellByName("邪恶攻击");end;

出血鬼魅宏
用 鬼魅攻击 在动作条上的序号替换下边红色字,查编号看上边基础知识
/script local c,s,d=CastSpellByName,GetActionCooldown(鬼魅编号);if d<2 then c("鬼魅攻击") else c("出血");end;

法术书版
/script local c,s,d=CastSpellByName,GetSpellCooldown(鬼魅编号,"spell");if d<2 then c("鬼魅攻击") else c("出血");end;

RAID专用: 平时邪恶攻击,目标转向自己就闪避
/script if UnitIsUnit("targettarget","player") then CastSpellByName("闪避");SpellStopCasting();end;CastSpellByName("邪恶攻击");

预备 + 消失
能消失就消失,消失冷却中就预备
消失编号参见上边基础知识
/script local c,s,d=CastSpellByName,GetActionCooldown(你消失编号);if d>2 then c("预备");SpellStopCasting();end;c("消失");

法术书版
/script local c,s,d=CastSpellByName,GetSpellCooldown(你消失编号,"spell");if d>2 then c("预备");SpellStopCasting();end;c("消失");

致盲 + 绷带
没满60级的或者在战场中的绷带名自己改
/施放 致盲
/script local b,s,l;for b=0,4 do for s=1,18 do l=GetContainerItemLink(b,s);if l and strfind(l,"厚符文布绷带") then UseContainerItem(b,s,1);break;end;end;end

一键脱光
注意,你身上的包至少要都是16格的
local e,b,s=0;for b=0,4 do for s=1,16 do if not GetContainerItemLink(b,s) then while e<18 do e=e+1;if e==11 then e=16;end;if GetInventoryItemLink("player",e) then PickupInventoryItem(e)ickupContainerItem(b,s);break;end;end;end;end;end

远程武器宏
自动判定当前远程武器类型而决定使用该种武器进行射击,弓,弩使用箭,枪械使用子弹
这个不会切换,所以弹药自己处理
/script local l,_=GetInventoryItemLink("player",18);_,_,l=strfind(l,"item%d+)");_,_,_,_,_,l=GetItemInfo(l);l=strsub(l,1,6);if l~="投掷" then l=l.."射击";end;CastSpellByName(l);

1.12新潜行宏(不会因反复按而导致取消潜行)
/script local a,_;if not UnitAffectingCombat("player") then _,_,a=GetShapeshiftFormInfo(1);if not a then CastSpellByName("潜行");end;end;

暗夜精灵贼专用 - 潜行CD中使用影遁,连续按也不会取消影遁,潜行冷却完毕使用潜行,连续按不会取消潜行
连续按不取消影遁写不下了,去掉,但潜行中不取消潜行还可以,用时自己注意点
把潜行放动作条上,查出编号,替换下边红色字,查编号看上边基础知识
/script local c,s,d,a,_=CastSpellByName;_,_,a=GetShapeshiftFormInfo(1);if not a then s,d=Get(潜行编号);if d>2 then c("影遁");else c("潜行");end;end;

法术书版
/script local c,s,d,a,_=CastSpellByName;_,_,a=GetShapeshiftFormInfo(1);if not a then s,d=GetSpellCooldown(潜行编号,"spell");if d>2 then c("影遁");else c("潜行");end;end;

不取消潜行的:需要SuperMacro支持
左边窗口:
/script NEStealth();

右边窗口Code c:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:

function NEStealth()
&#8195;&#8195;local c,i,b,f,s,d,a,_=CastSpellByName;
&#8195;&#8195;_,_,a=GetShapeshiftFormInfo(1);
&#8195;&#8195;if not a then
&#8195;&#8195;&#8195;&#8195;s,d=GetActionCooldown(你潜行编号);
&#8195;&#8195;&#8195;&#8195;if d>2 then
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;for i=1,16 do
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;b=UnitBuff("player",i);
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;if b and strfind(b,"Ambu") then
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;f=1;break;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;end;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;end;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;if not f then c("影遁");end;
&#8195;&#8195;&#8195;&#8195;else c("潜行");
&#8195;&#8195;&#8195;&#8195;end;
&#8195;&#8195;end;
end;





法术书版Code c:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:

function NEStealth()
&#8195;&#8195;local c,i,b,f,s,d,a,_=CastSpellByName;
&#8195;&#8195;_,_,a=GetShapeshiftFormInfo(1);
&#8195;&#8195;if not a then
&#8195;&#8195;&#8195;&#8195;s,d=GetSpellCooldown(你潜行编号,"spell");
&#8195;&#8195;&#8195;&#8195;if d>2 then
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;for i=1,16 do
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;b=UnitBuff("player",i);
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;if b and strfind(b,"Ambu") then
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;f=1;break;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;end;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;end;
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;if not f then c("影遁");end;
&#8195;&#8195;&#8195;&#8195;else c("潜行");
&#8195;&#8195;&#8195;&#8195;end;
&#8195;&#8195;end;
end;







回复

使用道具 举报

发表于 2018-2-19 11:15:50 | 显示全部楼层
为了伸手费。。。。。。。。。。。。。。。。。。。。。。
回复 支持 反对

使用道具 举报

发表于 2018-3-22 13:21:40 | 显示全部楼层
下来看看。感觉还蛮好的,希望好用谢谢楼主~
回复 支持 反对

使用道具 举报

发表于 2018-4-1 10:53:28 | 显示全部楼层
好东西 收藏了
回复 支持 反对

使用道具 举报

发表于 2018-6-14 22:20:34 | 显示全部楼层
好东西 收藏了先谢楼主
回复 支持 反对

使用道具 举报

发表于 2018-10-5 18:38:43 | 显示全部楼层

不顶,则意味着少积分,失去早日升级的机会
回复 支持 反对

使用道具 举报

发表于 2018-10-24 09:13:22 | 显示全部楼层
我也是为了伸手费 怎么可以不给我呢
回复 支持 反对

使用道具 举报

发表于 2018-11-2 06:21:29 | 显示全部楼层

评分

参与人数 1伸手费 -5 收起 理由
404NotFound -5 论坛禁止灌水!

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2018-11-9 17:13:57 | 显示全部楼层
貌似非常厉害的样子 学习中....
回复 支持 反对

使用道具 举报

发表于 2019-6-16 15:56:39 | 显示全部楼层
编号哪查啊,,,大佬················
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-5-2 08:40 PM , Processed in 0.085136 second(s), 37 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表