Page 1 of 1

LF AI macro

PostPosted: Sun Oct 25, 2015 6:49 am
by vasecha
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.

Re: LF AI macro

PostPosted: Mon Oct 26, 2015 8:37 pm
by Dreez
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?

Re: LF AI macro

PostPosted: Thu Oct 29, 2015 5:15 am
by Xyter
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.

Re: LF AI macro

PostPosted: Fri Oct 30, 2015 11:24 am
by vasecha
Thanks for the answers, but there must be a way to make this script (from my first post) work. Just need minor improvements :(

Re: LF AI macro

PostPosted: Thu Nov 19, 2015 12:33 pm
by Bazinga
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 :)

Re: LF AI macro

PostPosted: Fri Nov 20, 2015 11:22 am
by vasecha
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 :!: