anyone can help me with include this code in pqr 1.1.1
PHP Code:
i have code and he is works fine in pqr v2 but dont wna work with old pqr
how i can include it in old version? +REP
SIN_InterruptFrame = SIN_InterruptFrame or CreateFrame("FRAME", nil, UIParent)
function SIN_Interrupt_OnEvent(self, event, ...)
local type, hidecaster, srcGUID, srcName, _, _, destGUID = select(2, ...)
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
if type == "SPELL_CAST_SUCCESS" then
if destGUID == UnitGUID("player") then
local spellId = select(13, ...)
local deathId = {
"Hammer of Justice"
}
for d = 1, #deathId do
if spellId == deathId[d] then
SpellStopCasting()
TargetUnit(srcName)
CastSpellByName("Vanish")
TargetLastTarget()
print ("Trying to Death")
end
end
local interruptId = {
"Kick"
}
for i = 1, #interruptId do
if spellId == interruptId[i] then
SpellStopCasting()
print ("Trying to Stopcast")
end
end
end
end
end
end
SIN_InterruptFrame:SetScript("OnEvent", SIN_Interrupt_OnEvent)
SIN_InterruptFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")