Page 2 of 6

Posted: Sat Mar 19, 2005 11:59 am
by Lax
love the target box :)

Posted: Sun Mar 20, 2005 9:35 am
by Shador
very nice but I am getting Spam in the MQwindow saying no Such Float member to any Ideas how to fix

Posted: Sun Mar 20, 2005 10:12 am
by Clueless_Coder
Shador wrote:very nice but I am getting Spam in the MQwindow saying no Such Float member to any Ideas how to fix
Ditto

Posted: Sun Mar 20, 2005 10:53 am
by Shador
also how do you convert the Cursor to .tga what is the best program to do that with?

Posted: Sun Mar 20, 2005 1:42 pm
by grandgrowl
spam fix, under the -=labels=- section:

Code: Select all

 meleerange=7,85,-138,0,255,0,${If[${Target.MaxRangeTo}>=${Target.Distance}&&${Target.CleanName.NotEqual[${Me}]},[melee range],]}
i use photoshop to convert images. do a bit o' searching and i'm sure there's something cheap or free out there that'll convert into .tga for ya

Posted: Sun Mar 20, 2005 7:46 pm
by N0ctrnl

Posted: Mon Mar 21, 2005 11:29 am
by Shador
ok I don't know what I am doing Wrong I am using AYA UI modded for MQ
and I can not get your cursor working :(
someone help plz

Posted: Mon Mar 21, 2005 12:57 pm
by htw
Some cool stuff. I don't see the hud code for the "Target Weakness" posted though, from the cap you indicated a few posts from the original?

htw

Posted: Mon Mar 21, 2005 7:18 pm
by grandgrowl
htw: that's specific for vex thal only. even more specifically, it's primarily for wizards and druids. but, since i promised myself i'd post code if someone asked for it...

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]}]},]},]}
also, since i don't have access to shamans, can someone be as so kind to test this? it works for proc and normal-cast avatar, but i'm not sure if it works for any other kind of avatar. all returns for this should show up on the bottom-right corner of the target box -- it may be misaligned slightly 'cuz my font's different from most of yours:

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

Posted: Mon Mar 21, 2005 8:21 pm
by OnyxSys
Works just fine.. though i dont keep avatar on myself usually when xping or on a raid.. would own if it would give stats for someone else though impossible to do im sure...

This is in conjunction with the BOX Target im assuming as the [avatar] is in the lower right corner..

Posted: Tue Mar 22, 2005 7:43 am
by notadruid
Would it be possible to have the HUD center on your target rather than your cursor? It would be awesome to have say, a crosshair on your target with its class, level, distance, LOS indicator around the crosshair.

Posted: Tue Mar 22, 2005 10:45 am
by Teh_Hidden
That'd be awesome...

I was playing around with this last night, and while it was nice, it was semi-annoying to have the box following my mouse along everywhere.

Actually...If it was not possible to make it stick on a mob, would it be possible to attach it on the screen somewhere?

Posted: Tue Mar 22, 2005 11:24 am
by notadruid
It could definitely be static on the screen (as HUDs in other games tend to be) but hovering over the target would pwn so much. If not possible atm, we should see what we can code up for the next MQ2 patch.

Posted: Tue Mar 22, 2005 1:39 pm
by bardomatic
Is it possible to attach this info to the caption of only the selected target?

Posted: Tue Mar 22, 2005 4:58 pm
by grandgrowl
sticking the box onto the target, and having it move with the target, would be exactly what i had hoped to achieve :lol:

since i suck at c++ (for now), the best i can do atm is have it follow the mouse cursor. it's not so bad, really, once you get used to it -- it's almost like playing a fps imo

code's meant to be edited though -- if you don't like it following the cursor, it's not so hard to move (find =7, and replace with =3, then use hudmove to move the whole thing wherever you want it -- i'd suggest dead center, but you can place it anywhere really)

one consideration, however, if we were to somehow impliment a sticky target box --

-if the target is out of your viewing angle, where does the box show? does it hang off to whatever side of the screen it's closest to? is it centered? or does it take a completely different form until the target returns to viewing angle?

keep the feedback coming, i love it ^_^