首页 论坛 宏命令分享 [1.18德鲁伊]猫咪一键输出超级宏-by Crazydru
该帖子包含 0 评论,1 参与者,最后由Crazydru 更新于 3天前
2025年8月19日 02:56|3天前
Crazyd...
版主

V1.0.1 适配Cursive,请各位更新Cursive确保能够正确刷新流血。建议安装Crazydru魔改Classicmacro-v1.1,感谢kook好朋友Θsしっ⑤#2666提供函数简化变身判断代码

/script SP = { [13] = true, [14] = true } KBSwitch = true --分别为1#饰品,2#饰品,狂暴开关,true为开启false为关闭
/script local DruidManaLib=AceLibrary("DruidManaLib-1.0") KBID,JLHID,energy,stealth,C,CD,CP,combat,boss,th,Dmana=GetSpellIndex("狂暴"),GetSpellIndex("精灵之火(野性)"),UnitMana("player"),UnitHasAura("player","潜行"),CastSpellByName,GetSpellCooldown,GetComboPoints("target"),UnitAffectingCombat("player"),UnitClassification("target")=="worldboss",UnitHealth("target")/UnitHealthMax("target"),DruidManaLib:GetMana()
/script if CheckIsBehind then if boss then behind=CheckIsBehind(10) else behind=CheckIsBehind() end else behind=true end
/script if CheckCanBleed then bleed=CheckCanBleed("target") else bleed=true end
/script if Cursive and CheckSuperWow() then local _, guid = UnitExists("target") rake = Cursive.curses:HasCurse("扫击", guid) tear = Cursive.curses:HasCurse("撕扯", guid) else rake = UnitHasAura("target","扫击") tear = UnitHasAura("target","撕扯") end
/script zj=zj or 45 sj=sj or 40 ss=ss or 60 if not energyscantip then energyscantip = CreateFrame("GameTooltip", "energyscantip", nil, "GameTooltipTemplate") end local function GetEnergyValue(spellName) energyscantip:SetOwner(energyscantip, "ANCHOR_NONE") energyscantip:ClearLines() local spellID = GetSpellIndex(spellName) energyscantip:SetSpell(spellID, "spell") local text = getglobal("energyscantip" .. "TextLeft" .. 2):GetText() or "" if text then local _, _, energyValue = string.find(text, ".*(.%d+)能量") return tonumber(energyValue) end end energytime=energytime or GetTime()-70 if GetTime()-energytime>60 then zj=GetEnergyValue("爪击") or zj sj=GetEnergyValue("扫击") or sj ss=GetEnergyValue("撕碎") or ss energytime=GetTime() end
/script local hntf= select(5,GetTalentInfo(3,2)) hn=hntf*8+20
/script UseItemByName("撕裂神像")
/script if not timer then timer=GetTime()-18 end
/script for i = 13, 14 do local canuse = select(3,GetInventoryItemCooldown("player", i)) if canuse == 1 and GetInventoryItemCooldown("player", i) == 0 and CP==5 and SP[i] then UseInventoryItem(i) end end
/script local i, s for i = 1, GetNumShapeshiftForms() do if select(2, GetShapeshiftFormInfo(i)) == "猎豹形态" then s = i break end end if s then if select(3, GetShapeshiftFormInfo(s)) then if stealth then if not MyBuff("猛虎之怒") then C("猛虎之怒") timer = GetTime() end if bleed then C("突袭") else C("毁灭") end else if combat then if ( energy < 10 or (GetTime() - timer > 10 and energy < sj) or (energy < ss - 20 and not bleed and behind and CP < 5) ) and hn > 59 and Dmana > 400 and not MyBuff("节能施法") and select(2, GetShapeshiftFormInfo(GetNumShapeshiftForms())) == "重整" then CastShapeshiftForm(GetNumShapeshiftForms()) elseif KBID and CD(KBID, "spell") == 0 and energy < 40 and boss and th < 0.3 and KBSwitch then C("狂暴") elseif energy >= hn and not MyBuff("猛虎之怒") and bleed or not MyBuff("血之狂暴") then C("猛虎之怒") timer = GetTime() elseif MyBuff("节能施法") and behind then C("撕碎") elseif not UnitHasAura("target", "精灵之火") and boss and CD(JLHID, "spell") == 0 then C("精灵之火(野性)") elseif CP > 4 and not tear and bleed then C("撕扯") elseif CP > 4 and energy < 70 then C("凶猛撕咬") elseif not MyBuff("强化攻击") and not rake and bleed then C("扫击") elseif (MyBuff("强化攻击") or energy > 59 or MyBuff("撕裂神像") or not bleed) and ss < 49 and behind then C("撕碎") elseif energy >= zj then C("爪击") elseif energy < 20 then C("精灵之火(野性)") end else C("潜行") end end else CastShapeshiftForm(s) end end if a and not stealth and not PlayerFrame.inCombat then CastSpellByName("攻击") end
/console Sound_EnableErrorSpeech 1
/script UIErrorsFrame:Clear()
  • 该帖子由Crazydru 于 2天前 修改。
  • 该帖子由Crazydru 于 4小时前 修改。
  • 该帖子由Crazydru 于 3小时前 修改。
1.18猫一键宏V1.0.1
0.01 MB
下载
已下载 7 次.
哎呀,评论帖子必需登录。