Wrobotwow 0 Posted June 2, 2017 Share Posted June 2, 2017 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 ? Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/ Share on other sites More sharing options...
Wrobotwow 0 Posted June 4, 2017 Author Share Posted June 4, 2017 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 :) Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/#findComment-27376 Share on other sites More sharing options...
Wrobotwow 0 Posted June 4, 2017 Author Share Posted June 4, 2017 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 Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/#findComment-27419 Share on other sites More sharing options...
Wrobotwow 0 Posted June 5, 2017 Author Share Posted June 5, 2017 up Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/#findComment-27443 Share on other sites More sharing options...
Wrobotwow 0 Posted June 6, 2017 Author Share Posted June 6, 2017 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 Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/#findComment-27467 Share on other sites More sharing options...
Matenia 628 Posted June 6, 2017 Share Posted June 6, 2017 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. Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/#findComment-27469 Share on other sites More sharing options...
Wrobotwow 0 Posted June 8, 2017 Author Share Posted June 8, 2017 Tested and work fine :) thx Link to comment https://wrobot.eu/forums/topic/6003-bleesin-of-sanctuary-ret-pal-buff/#findComment-27544 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now