PHP Code:
if not UnitDebuffID("party1", 8122)
and not UnitDebuffID("party1", 5782)
and not UnitDebuffID("party1", 111397)
and not UnitDebuffID("party1", 118)
and not UnitDebuffID("party1", 61305)
and not UnitDebuffID("party1", 28272)
and not UnitDebuffID("party1", 61721)
and not UnitDebuffID("party1", 61780)
and not UnitDebuffID("party1", 28271)
and not UnitDebuffID("party1", 103139)
and not UnitDebuffID("party1", 6358)
and not UnitDebuffID("party1", 44572)
and not UnitDebuffID("party1", 15487)
and not UnitDebuffID("party1", 64044)
and not UnitDebuffID("party1", 12598)
and not UnitDebuffID("party1", 2139)
and not UnitDebuffID("party1", 1499)
and not UnitDebuffID("party1", 20066)
and not UnitDebuffID("party1", 853)
and not UnitDebuffID("party1", 105593)
and not UnitDebuffID("party1", 31661)
and not UnitDebuffID("party1", 5484)
and not UnitDebuffID("party1", 339)
and not UnitDebuffID("party1", 47476)
and not UnitDebuffID("party2", 8122)
and not UnitDebuffID("party2", 5782)
and not UnitDebuffID("party2", 111397)
and not UnitDebuffID("party2", 118)
and not UnitDebuffID("party2", 61305)
and not UnitDebuffID("party2", 28272)
and not UnitDebuffID("party2", 61721)
and not UnitDebuffID("party2", 61780)
and not UnitDebuffID("party2", 28271)
and not UnitDebuffID("party2", 103139)
and not UnitDebuffID("party2", 6358)
and not UnitDebuffID("party2", 44572)
and not UnitDebuffID("party2", 15487)
and not UnitDebuffID("party2", 64044)
and not UnitDebuffID("party2", 12598)
and not UnitDebuffID("party2", 2139)
and not UnitDebuffID("party2", 1499)
and not UnitDebuffID("party2", 20066)
and not UnitDebuffID("party2", 853)
and not UnitDebuffID("party2", 105593)
and not UnitDebuffID("party2", 31661)
and not UnitDebuffID("party2", 5484)
and not UnitDebuffID("party2", 339)
and not UnitDebuffID("party2", 47476)
and not UnitDebuffID("party3", 8122)
and not UnitDebuffID("party3", 5782)
and not UnitDebuffID("party3", 111397)
and not UnitDebuffID("party3", 118)
and not UnitDebuffID("party3", 61305)
and not UnitDebuffID("party3", 28272)
and not UnitDebuffID("party3", 61721)
and not UnitDebuffID("party3", 61780)
and not UnitDebuffID("party3", 28271)
and not UnitDebuffID("party3", 103139)
and not UnitDebuffID("party3", 6358)
and not UnitDebuffID("party3", 44572)
and not UnitDebuffID("party3", 15487)
and not UnitDebuffID("party3", 64044)
and not UnitDebuffID("party3", 12598)
and not UnitDebuffID("party3", 2139)
and not UnitDebuffID("party3", 1499)
and not UnitDebuffID("party3", 20066)
and not UnitDebuffID("party3", 853)
and not UnitDebuffID("party3", 105593)
and not UnitDebuffID("party3", 31661)
and not UnitDebuffID("party3", 5484)
and not UnitDebuffID("party3", 339)
and not UnitDebuffID("party3", 47476) then
return false
end
-- Party 1
if PQR_SpellAvailable(4987)
and IsSpellInRange("Cleanse", "party1") == 1
and PQR_IsOutOfSight("party1", 0.1) == false then
if not UnitDebuffID("party1", 30108)
and not UnitDebuffID("party1", 124465)
then
if UnitDebuffID("party1", 8122)
or UnitDebuffID("party1", 5782)
or UnitDebuffID("party1", 111397)
or UnitDebuffID("party1", 118)
or UnitDebuffID("party1", 61305)
or UnitDebuffID("party1", 28272)
or UnitDebuffID("party1", 61721)
or UnitDebuffID("party1", 61780)
or UnitDebuffID("party1", 28271)
or UnitDebuffID("party1", 103139)
or UnitDebuffID("party1", 6358)
or UnitDebuffID("party1", 44572)
or UnitDebuffID("party1", 15487)
or UnitDebuffID("party1", 64044)
or UnitDebuffID("party1", 12598)
or UnitDebuffID("party1", 2139)
or UnitDebuffID("party1", 1499)
or UnitDebuffID("party1", 20066)
or UnitDebuffID("party1", 853)
or UnitDebuffID("party1", 105593)
or UnitDebuffID("party1", 31661)
or UnitDebuffID("party1", 5484)
or UnitDebuffID("party1", 339)
or UnitDebuffID("party1", 47476) then
CastSpellByID(4987, "party1")
end
end
end
-- Party 2
if PQR_SpellAvailable(4987)
and IsSpellInRange("Cleanse", "party2") == 1
and PQR_IsOutOfSight("party2", 0.1) == false then
if not UnitDebuffID("party2", 30108)
and not UnitDebuffID("party2", 124465)
then
if UnitDebuffID("party2", 8122)
or UnitDebuffID("party2", 5782)
or UnitDebuffID("party2", 111397)
or UnitDebuffID("party2", 118)
or UnitDebuffID("party2", 61305)
or UnitDebuffID("party2", 28272)
or UnitDebuffID("party2", 61721)
or UnitDebuffID("party2", 61780)
or UnitDebuffID("party2", 28271)
or UnitDebuffID("party2", 103139)
or UnitDebuffID("party2", 6358)
or UnitDebuffID("party2", 44572)
or UnitDebuffID("party2", 15487)
or UnitDebuffID("party2", 64044)
or UnitDebuffID("party2", 12598)
or UnitDebuffID("party2", 2139)
or UnitDebuffID("party2", 1499)
or UnitDebuffID("party2", 20066)
or UnitDebuffID("party2", 853)
or UnitDebuffID("party2", 105593)
or UnitDebuffID("party2", 31661)
or UnitDebuffID("party2", 5484)
or UnitDebuffID("party2", 339)
or UnitDebuffID("party2", 47476) then
CastSpellByID(4987, "party2")
end
end
end
-- Party 3
if PQR_SpellAvailable(4987)
and IsSpellInRange("Cleanse", "party3") == 1
and PQR_IsOutOfSight("party3", 0.1) == false then
if not UnitDebuffID("party3", 30108)
and not UnitDebuffID("party3", 124465)
then
if UnitDebuffID("party3", 8122)
or UnitDebuffID("party3", 5782)
or UnitDebuffID("party3", 111397)
or UnitDebuffID("party3", 118)
or UnitDebuffID("party3", 61305)
or UnitDebuffID("party3", 28272)
or UnitDebuffID("party3", 61721)
or UnitDebuffID("party3", 61780)
or UnitDebuffID("party3", 28271)
or UnitDebuffID("party3", 103139)
or UnitDebuffID("party3", 6358)
or UnitDebuffID("party3", 44572)
or UnitDebuffID("party3", 15487)
or UnitDebuffID("party3", 64044)
or UnitDebuffID("party3", 12598)
or UnitDebuffID("party3", 2139)
or UnitDebuffID("party3", 1499)
or UnitDebuffID("party3", 20066)
or UnitDebuffID("party3", 853)
or UnitDebuffID("party3", 105593)
or UnitDebuffID("party3", 31661)
or UnitDebuffID("party3", 5484)
or UnitDebuffID("party3", 339)
or UnitDebuffID("party3", 47476) then
CastSpellByID(4987, "party3")
end
end
end
The way you have it if party1 doesnt have anything to dispell it wont look for the other party members. And I dont know why you have it using "not UnitDebuffID" b/c it does it again when it looks to see if party member has the debuff id
PHP Code:
-- member 1
if PQR_SpellAvailable(4987)
and not UnitIsDeadOrGhost(member[1])
and IsSpellInRange("Cleanse", member[1]) == 1
and PQR_IsOutOfSight(member[1], 0.1) == false then
if not UnitDebuffID(member[1], 30108)
and not UnitDebuffID(member[1], 124465)
then
if UnitDebuffID(member[1], 8122)
or UnitDebuffID(member[1], 5782)
or UnitDebuffID(member[1], 111397)
or UnitDebuffID(member[1], 118)
or UnitDebuffID(member[1], 61305)
or UnitDebuffID(member[1], 28272)
or UnitDebuffID(member[1], 61721)
or UnitDebuffID(member[1], 61780)
or UnitDebuffID(member[1], 28271)
or UnitDebuffID(member[1], 103139)
or UnitDebuffID(member[1], 6358)
or UnitDebuffID(member[1], 44572)
or UnitDebuffID(member[1], 15487)
or UnitDebuffID(member[1], 64044)
or UnitDebuffID(member[1], 12598)
or UnitDebuffID(member[1], 2139)
or UnitDebuffID(member[1], 1499)
or UnitDebuffID(member[1], 20066)
or UnitDebuffID(member[1], 853)
or UnitDebuffID(member[1], 105593)
or UnitDebuffID(member[1], 31661)
or UnitDebuffID(member[1], 5484)
or UnitDebuffID(member[1], 339)
or UnitDebuffID(member[1], 47476) then
CastSpellByID(4987, member[1])
end
end
end
And do that for each member so for Rbgs it would goto 10. Btw ^^^ code doesnt work b/c i dont know how to do raid members.