Code
-- Class: Warrior/Rogue
elseif mainClass == "WARRIOR" and subClass == "THIEF" then
local SurpriseAttack = GetActionUsable(14)
CreateDIYCETimer("SSBleed", 7) --Change the value between 6 -> 7.5 depending on your lag.
CreateDIYCETimer("SlashBleed", 6) --Change the value between 5.8 -> 6.2 depending on your lag.
--Ammo Check and Equip local ammo = (GetEquipSlotInfo(10) ~= nil)if (ammo == false) then
local HaveAmmo = false local daggers = "" for i=1,60 do
local x,y,name = GetBagItemInfo(i) if (string.find(name, " Axe")) then --[[This will equip the daggers bought in Dalanis. Change this name to whatever current throwing dagger you use.]]
HaveAmmo = true daggers = name
end
end
if (HaveAmmo == true) then i=i+1; Skill[i] = { name = "Item: "..daggers, use = (not ammo) } --Equip daggers if have
elseif ((g_cnt0) == 0) then SendChatMessage(DEFAULT_CHAT_FRAME:AddMessage"I need to get throwing daggers!")
end
g_cnt = g_cnt + 1
end
--[[if (goat = "BossBuffs") then
Skill= {
{ name = "Aggressiveness", use = boss and enemy },
{ name = "Berserk", use = boss and enemy },
{ name = "Frenzied Attack", use = boss and enemy }, }
end ]]--
--Potions and Buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Survival Instinct", use = (phealth <= .33) and combat },
{ name = "Action: "..Healslot, use = (phealth < .70) and (not combat) and (not party) },
{ name = "Action: "..HoTslot, use = (phealth < .80) and (not party) }, }
--Combat
if enemy then
Skill2 = {
{ name = "Shout", use = (silenceThis) },
{ name = "Surprise Attack", use = SurpriseAttack },
{ name = "Feint", use = ((_target == UnitName("target")) and (_type == "DODGE")) },
{ name = "Enraged", use = (EnergyBar1 <= 30) and (boss or elite) },
{ name = "Keen Attack", use = (EnergyBar2 >= 20) and (pbuffs["Vulnerable"]) },
{ name = "Shadowstab", use = (EnergyBar2 >= 20)}, { name = "Attack", use = (thealth == 1) }, }
end
Display More
Does anyone have a better DIYCE macro for Warrior/Rogue class combo?