hey rubim if you dont mind can you look over this code for casting a fully automated battle rez (raise ally)(spellID=61999)
Code:
local GROUP = ""
if IsInRaid() then
GROUP = "raid"
else
GROUP = "party"
end
local members = GetNumGroupMembers() - 1
if PQR_SpellAvailable(61999) then
for i = 1, members, 1 do
member = GROUP..tostring(i)
if ( UnitIsDead(member) or UnitIsCorpse(member) )
and not PQR_IsOutOfSight(member)
and IsSpellInRange(GetSpellInfo(61999), member) == 1
and UnitAffectingCombat("player")
then
PQR_CustomTarget = member
return true
end
end
end
basically i wanted your profile to cast a fully automated battle rez that didnt require mouseover or any interaction from me so i could focus on the raid mechanics and such-i went through your old profiles and was able to pickup most of what you see above and i modified it a little to do what i wanted-for the most part it works like a champ and it is able to detect any raid deaths in my 10 man TOT raid and automatically casts raise ally-the one issue that i have encounter tho is that when more then one raid member dies it freezes the routine at the raise ally ability-im pretty sure that im prob missing a line of code that would prevent the freezeup for multiple dead-also is there code that i can use that allows the routine to know that theres only one battle rez allowed in 10s in case someone uses the 1 available