Moderator: MacroQuest Developers


Code: Select all
meleerange=7,85,-138,0,255,0,${If[${Target.MaxRangeTo}>=${Target.Distance}&&${Target.CleanName.NotEqual[${Me}]},[melee range],]}

Code: Select all
;-=vex thal weakness display=-
;you'll have to change coords accordingly to make it show where you want it to show. specifically, change the 3 to a 7 if you want it stuck on your mouse cursor, and change the x,y coords accordingly to line it up however you want
label=3,5,350,255,255,255,${Zone.Name} ${If[${Zone.Name.Find[vex thal]},${If[${Target.ID}&&${Target.Type.Equal["NPC"]},target weakness -,]},]}
vtmobice=3,300,350,0,255,255,${If[${Zone.Name.Find[vex thal]},${If[${Target.ID}&&${Target.Type.Equal["NPC"]},${If[${Target.CleanName.Equal[Thall Va Kelun]}||${Target.CleanName.Equal[Thall Va Xakra]}||${Target.CleanName.Equal[Thall Xundraux Diabo]},,${If[${Target.CleanName.Find[va liako]}||${Target.CleanName.Find[thall]}||${Target.CleanName.Find[senshali]},ice,]}]},]},]}
vtmobfire=3,300,350,255,0,0,${If[${Zone.Name.Find[vex thal]},${If[${Target.ID}&&${Target.Type.Equal["NPC"]},${If[${Target.CleanName.Equal[Thall Va Kelun]}||${Target.CleanName.Equal[Thall Va Xakra]}||${Target.CleanName.Equal[Thall Xundraux Diabo]},fire,${If[${Target.CleanName.Find[va liako]}||${Target.CleanName.Find[thall]}||${Target.CleanName.Find[senshali]},,fire]}]},]},]}
Code: Select all
;-=avatar monitor beta=-
;-this displays [avatar] anytime an avatar-like spell is in the buff window, but
; with certain restrictions. if you're are targetting something, and are not invis
; or aggro'd, you see [avatar] unless any one of those conditions are not met
;-[avatar] changes color with % duration remaining (cyan for >=50%, magenta for
; 20<=x<50%, red for <20%)
;-check for avatar, and authenticate (i.e. avatar snare will return a negative, but
; ferine avatar will return a positive)
;-check for % duration remaining -- each line is a different color, so we need to
; weed out all but the duration phase we wish to display
;-check for invis; if invis, bail out
;-check for target; if no target, bail out
;-check for aggro, check for stun, return avatar if both these are negative
avatarmonitor1=7,105,131,0,255,255,${If[(${Me.Buff[Avatar].Spell.ID}==1598)||(${Me.Buff[Avatar].Spell.ID}==2434)||(${Me.Buff[Primal Avatar].Spell.ID}==1377)||(${Me.Buff[Ferine Avatar].Spell.ID}==3399)||(${Me.Buff[Ancient Feral Avatar].Spell.ID}==2112),${If[${Math.Calc[(${Me.Buff[Avatar].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Avatar].Spell.Duration.TotalSeconds}+0.01]})]}>=0.50,${If[${Me.Invis},,${If[${Target.ID},${If[(${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID})&&${Me.State.NotEqual["STUN"]},[avatar],${If[${Target.CleanName.Equal[${Me}]},[avatar],]}]},]}]},]},]}
avatarmonitor2=7,105,131,0,255,255,${If[${Me.Buff[Champion].ID}&&(${Me.Buff[Champion].Spell.ID}==5417),${If[${Math.Calc[(${Me.Buff[Champion].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Champion].Spell.Duration.TotalSeconds}+0.01]})]}>=0.50,${If[${Me.Invis},,${If[${Target.ID},${If[(${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID})&&${Me.State.NotEqual["STUN"]},[avatar],${If[${Target.CleanName.Equal[${Me}]},[avatar],]}]},]}]},]},]}
avatarmonitor3=7,105,131,255,0,255,${If[(${Me.Buff[Avatar].Spell.ID}==1598)||(${Me.Buff[Avatar].Spell.ID}==2434)||(${Me.Buff[Primal Avatar].Spell.ID}==1377)||(${Me.Buff[Ferine Avatar].Spell.ID}==3399)||(${Me.Buff[Ancient Feral Avatar].Spell.ID}==2112),${If[(${Math.Calc[(${Me.Buff[Avatar].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Avatar].Spell.Duration.TotalSeconds}+0.01]})]}<0.50)&&(${Math.Calc[(${Me.Buff[Avatar].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Avatar].Spell.Duration.TotalSeconds}+0.01]})]}>=0.20),${If[${Me.Invis},,${If[${Target.ID},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[avatar],${If[${Target.CleanName.Equal[${Me}]},[avatar],]}]},]}]},]},]}
avatarmonitor4=7,105,131,255,0,255,${If[${Me.Buff[Champion].ID}&&(${Me.Buff[Champion].Spell.ID}==5417),${If[(${Math.Calc[(${Me.Buff[Champion].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Champion].Spell.Duration.TotalSeconds}+0.01]})]}<0.50)&&(${Math.Calc[(${Me.Buff[Champion].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Champion].Spell.Duration.TotalSeconds}+0.01]})]}>=0.20),${If[${Me.Invis},,${If[${Target.ID},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[avatar],${If[${Target.CleanName.Equal[${Me}]},[avatar],]}]},]}]},]},]}
avatarmonitor5=7,105,131,255,0,0,${If[(${Me.Buff[Avatar].Spell.ID}==1598)||(${Me.Buff[Avatar].Spell.ID}==2434)||(${Me.Buff[Primal Avatar].Spell.ID}==1377)||(${Me.Buff[Ferine Avatar].Spell.ID}==3399)||(${Me.Buff[Ancient Feral Avatar].Spell.ID}==2112),${If[${Math.Calc[(${Me.Buff[Avatar].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Avatar].Spell.Duration.TotalSeconds}+0.01]})]}<0.20,${If[${Me.Invis},,${If[${Target.ID},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[avatar],${If[${Target.CleanName.Equal[${Me}]},[avatar],]}]},]}]},]},]}
avatarmonitor6=7,105,131,255,0,0,${If[${Me.Buff[Champion].ID}&&(${Me.Buff[Champion].Spell.ID}==5417),${If[${Math.Calc[(${Me.Buff[Champion].Duration.TotalSeconds}/${Math.Calc[${Me.Buff[Champion].Spell.Duration.TotalSeconds}+0.01]})]}<0.20,${If[${Me.Invis},,${If[${Target.ID},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[avatar],${If[${Target.CleanName.Equal[${Me}]},[avatar],]}]},]}]},]},]}
;spell id's:
;avatar spell = 1598
;avatar proc = 2434
;primal avatar spell = 1377
;ferine avatar = 3399
;ancient feral avatar = 2112
;champion = 5417


