求高人帮我实现两个术士宏!

来源:百度知道 编辑:UC知道 时间:2024/06/23 03:43:30
参看猎人这个宏:
说明:如果躲避攻击则猫鼬撕咬,否则<如果目标无摔拌则施放摔拌/有则猛禽一击+宠物攻击>
/施放 猫鼬撕咬(等级 3)
/script local T; for i=0,15,1 do T=UnitDebuff("target", i); if (T and string.find (T,"Trip")) then break; end; end; if (T and string.find (T,"Trip")) then CastSpellByName("猛禽一击(等级 6)"); else CastSpellByName("摔绊(等级 2)"); PetAttack() end

希望实现术士以下两个宏:
①有"元素诅咒"则"灵魂之火",无"元素诅咒"则释放"元素诅咒".
②目标有"献祭"则释放"点燃",无"献祭"则施放"献祭"

如果实现并可用,马上追分给回答者.

服务器当了 不能上去看 但有个下面这个应该可以类推
/script local n,s,k,j,d,f={"Abomi","Sarge","Immol"},{"腐蚀术","痛苦诅咒","献祭"};for k=1,3 do f=nil;for j=1,16 do d=UnitDebuff("target",j);if d and strfind(d,n[k]) then f=1;break;end;end;if not f then CastSpellByName(s[k]);break;end;end;
这宏能够依次检查目标身上是否有有 腐蚀术,痛苦诅咒,献祭 效果 哪个没有就加哪个
可是这宏有个问题 SOLO的时候很好用 打BOSS的话 WL多了 连别人的效果也被判定

ss可以不用宏