LF AI macro

LF AI macro

by vasecha » Sun Oct 25, 2015 6:49 am

LF working macro which casts AI based on target's level.
Tried this:
Code: Select all
/script Pre="Arcane Intellect(Rank " Sp={1,2,14,26,38,50} if (UnitLevel("target") ~= nil and UnitIsFriend("player","target")) then for i=6,1,-1 do if (UnitLevel("target") >= Sp[i]) then CastSpellByName(Pre..i..") ") return end end end

but it cant buff target lvl 30(says too low lvl) and 60(says nothing, just dont works), and works propperly with all other lvls.
vasecha
Private
Private
 

Re: LF AI macro

by Dreez » Mon Oct 26, 2015 8:37 pm

a pretty ugly solution but wouldn't a macro work that tries casting all ranks from highest to lowest?

Code: Select all
/cast Arcane Intellect(rank 5)
/cast Arcane Intellect(rank 4)
/cast Arcane Intellect(rank 3)
/cast Arcane Intellect(rank 2)
/cast Arcane Intellect(rank 1)


might be problematic if you're oom

hmm do multiple cast macros like the one I linked even work in 1.12.1?
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 

Re: LF AI macro

by Xyter » Thu Oct 29, 2015 5:15 am

Hi,

If you go to http://addons.us.to/addons and download Cryolysis it will handle the ranks for you, not to mention other useful icons around an orb and timers for sheep/debuffs/cooldowns etc. It works great.
Xyter
Tester
 

Re: LF AI macro

by vasecha » Fri Oct 30, 2015 11:24 am

Thanks for the answers, but there must be a way to make this script (from my first post) work. Just need minor improvements :(
vasecha
Private
Private
 

Re: LF AI macro

by Bazinga » Thu Nov 19, 2015 12:33 pm

Code: Select all
/run a="Arcane Intellect" b={1,4,18,32,47} c="target" d="(Rank " e=CastSpellByName if (UnitLevel(c) ~= nil and UnitIsFriend("player",c)) then for i=5,1,-1 do if (UnitLevel(c) >= b[i]) then e(a..d..i..")") return end end else e(a,1) end


fixed, have fun :)
Bazinga
Sergeant Major
Sergeant Major
 

Re: LF AI macro

by vasecha » Fri Nov 20, 2015 11:22 am

Bazinga wrote:
Code: Select all
/run a="Arcane Intellect" b={1,4,18,32,47} c="target" d="(Rank " e=CastSpellByName if (UnitLevel(c) ~= nil and UnitIsFriend("player",c)) then for i=5,1,-1 do if (UnitLevel(c) >= b[i]) then e(a..d..i..")") return end end else e(a,1) end


fixed, have fun :)

TY :!:
vasecha
Private
Private
 


Return to Mage