this might be an awfully noob question but
print("Loaded") will print Loaded in the chat frame, can I print the message in a colour ?
this might be an awfully noob question but
print("Loaded") will print Loaded in the chat frame, can I print the message in a colour ?
hi,guys
if i do in the ability editor under the class Interrupt/Xhelper and use 2 of my interrupt spells like this
if playerClass == "DEATHKNIGHT" then
return 47528, 47476
might this work?
Last edited by Nerder; 04-06-2013 at 08:43 AM.
i will test it, btw thanks for reply![]()
not working,wondering why...
has any1 a suggestion how to make this work?
??PHP Code:
if playerClass == "DEATHKNIGHT" then
if GetSpellCooldown(47528) == 0 then
return 47528
elseif GetSpellCooldown(47528) ~= 0 and GetSpellCooldown(47476) == 0 then
return 47476
end
end
That should work no matter what right there. It will use the first spellID to begin with then go to the second one there. The only thing I can think of that would make it not work is if your using a non-english client and deathknight is something else in whatever language your using.
EDIT* BTW, I have no idea what spell's these spellID's go to, so don't yell at me if the second spellID there doesn't have a cooldown![]()
hehe yelling? never i appreciate that you answered to my message
btw im using an english client and the first spell is MindFreeze=15sec CD, second one is Strangulate with 1min CD and needs 1 blood rune and its not a problem to activate a blood rune as im running blood tap talent.
I tryed to a duel vs a druid and PQR did not even interrupt with MindFreeze as it usualy does...:confused:
Thats what the full init ability in Xelper's interrupt code needs to look like. Also, make sure that you have the spellID's you want to interrupt in the settings or at least check interrupt all interrupt-able spells if your going that route. Might have had that extra end there that shouldn't have been.PHP Code:
if xelperInterruptInit == nil then
--TestComment
xelperInterruptInit = true
function PQR_InterruptSpell()
local _, playerClass = UnitClass("player")
if playerClass == "DEATHKNIGHT" then
if GetSpellCooldown(47528) == 0 then
return 47528
elseif GetSpellCooldown(47528) ~= 0 and GetSpellCooldown(47476) == 0 then
return 47476
end
elseif playerClass == "DRUID" then
local catForm = UnitBuffID("player", 768)
if catForm ~= nil then
return 80965
else
return 80964
end
elseif playerClass == "HUNTER" then
return 34490
elseif playerClass == "MAGE" then
return 2139
elseif playerClass == "PALADIN" then
return 96231
elseif playerClass == "PRIEST" then
return 15487
elseif playerClass == "ROGUE" then
return 1766
elseif playerClass == "SHAMAN" then
return 57994
elseif playerClass == "WARLOCK" then
return 19647
elseif playerClass == "WARRIOR" then
return 6552
else
return 0
end
end
end
Firepong thanks alot, it is perfect now. Only thing i found wierd at the beginn is that when both are ready to be used it will use bothbut it works now atleast. again thank you.
Try this one. It's a little more advanced and should never fire both off at the same time unless another player is casting as well, then it will. But then again, you would want to have a delay set then. Don't want to auto interrupt, thats to bot-like there.
PHP Code:
if xelperInterruptInit == nil then
--TestComment
xelperInterruptInit = true
function PQR_InterruptSpell()
local _, playerClass = UnitClass("player")
if playerClass == "DEATHKNIGHT" then
local mfStart, mfDuration = GetSpellCooldown(47528)
local mfCD = mfStart + mfDuration - GetTime()
local sStart, sDuration = GetSpellCooldown(47476)
local sCD = sStart + sDuration - GetTime()
if mfCD < 1 then
return 47528
elseif (mfCD > 0 and mfCD < 13) and sCD < 1 then
return 47476
end
elseif playerClass == "DRUID" then
local catForm = UnitBuffID("player", 768)
if catForm ~= nil then
return 80965
else
return 80964
end
elseif playerClass == "HUNTER" then
return 34490
elseif playerClass == "MAGE" then
return 2139
elseif playerClass == "PALADIN" then
return 96231
elseif playerClass == "PRIEST" then
return 15487
elseif playerClass == "ROGUE" then
return 1766
elseif playerClass == "SHAMAN" then
return 57994
elseif playerClass == "WARLOCK" then
return 19647
elseif playerClass == "WARRIOR" then
return 6552
else
return 0
end
end
end
Let me understand this. If my target is casting and his partner too in a 2v2 enviroment, for example, then it will interrupt both casts if it is in range?