June 2, 20178 yr Bonjour, je n'arrives pas à trouver un moyen de faire fonctionné " blessing Of Sanctuary " ( Instantly removes all stun, silence, fear and horror effects from the friendly target and reduces the duration of future such effects by 60% for 5 sec ). J'aimerais pouvoir: -le lancé automatiquement sans changer de target -et seulement sur un Stun, fear, silence ou horror Pourriez-vous me venir en aide ?
June 4, 20178 yr Author quelque chose de ce type peut être ?? local spell, Asphyxiate, Hammer of Justice, castID, 108194, 110698, = UnitCastingInfo("party1"); local usable, nomana = IsUsableSpell(" Blessing Of Sanctuary "); if spell then if castID == 210256 and usable then RunMacroText("/cast Blessing Of Sanctuary "); end end plz :)
June 4, 20178 yr Author i try this but don't work local idBuffs={8122,5782,5246,5211,22570,19577,119381,853,408,1833,89766,107570,15487,2139} for key,value in pairs(idBuffs) do for i=1,40 do local name, _, _, _, _, _, _, _, _, _, spellId = UnitBuff("party1", i) if (value==spellId) then result=1 return; end end end result=0
June 6, 20178 yr Author maybe this ? local spellid=210256 local spellname=GetSpellInfo(spellid) local idbuffs, i = {8122,5782,5246,5211,22570,19577,119381,853,408,1833,89766,107570,15487,2139}, 1; --[stun,fear, horror,silence spell] local buff = UnitBuff("party1", i); if UnitExists("party1") and UnitAffectingCombat("party1") and #buff >= 1 then RunMacroText("cast Blessing Of Sanctuary"); end end
June 6, 20178 yr Disclaimer: OP messaged me in private, and I didn't test this: local spellTable = {8122,5782,5246,5211,22570,19577,119381,853,408,1833,89766,107570,15487,2139}; hasDebuff = false; for i=1,40 do local name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID = UnitDebuff("party1", i); for k,v in pairs(spellTable) do if spellID == v then hasDebuff = true end end end return var is hasDebuff, search value is true (could also make this 0 and 1). Then the code is RunMacroText("/cast [@party1] spellName") Both the check above and this spell need to be Lua code.
Create an account or sign in to comment