cursor targetting and status monitor (and some other stuff)

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Mar 19, 2005 11:59 am

love the target box :)
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Shador
a lesser mummy
a lesser mummy
Posts: 31
Joined: Fri Dec 17, 2004 5:02 pm

Post by Shador » Sun Mar 20, 2005 9:35 am

very nice but I am getting Spam in the MQwindow saying no Such Float member to any Ideas how to fix

Clueless_Coder
a hill giant
a hill giant
Posts: 192
Joined: Wed Aug 25, 2004 3:18 pm

Post by Clueless_Coder » Sun Mar 20, 2005 10:12 am

Shador wrote:very nice but I am getting Spam in the MQwindow saying no Such Float member to any Ideas how to fix
Ditto

Shador
a lesser mummy
a lesser mummy
Posts: 31
Joined: Fri Dec 17, 2004 5:02 pm

Post by Shador » Sun Mar 20, 2005 10:53 am

also how do you convert the Cursor to .tga what is the best program to do that with?

User avatar
grandgrowl
orc pawn
orc pawn
Posts: 19
Joined: Mon Mar 14, 2005 2:14 pm

Post by grandgrowl » Sun Mar 20, 2005 1:42 pm

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

N0ctrnl
a lesser mummy
a lesser mummy
Posts: 60
Joined: Thu Apr 29, 2004 12:49 pm

Post by N0ctrnl » Sun Mar 20, 2005 7:46 pm


Shador
a lesser mummy
a lesser mummy
Posts: 31
Joined: Fri Dec 17, 2004 5:02 pm

Post by Shador » Mon Mar 21, 2005 11:29 am

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

User avatar
htw
a grimling bloodguard
a grimling bloodguard
Posts: 512
Joined: Wed Feb 18, 2004 8:30 pm
Location: Albuquerque, NM USA
Contact:

Post by htw » Mon Mar 21, 2005 12:57 pm

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

User avatar
grandgrowl
orc pawn
orc pawn
Posts: 19
Joined: Mon Mar 14, 2005 2:14 pm

Post by grandgrowl » Mon Mar 21, 2005 7:18 pm

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

User avatar
OnyxSys
a ghoul
a ghoul
Posts: 133
Joined: Sun Dec 21, 2003 9:58 pm
Contact:

Post by OnyxSys » Mon Mar 21, 2005 8:21 pm

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..
[img]http://web.infoave.net/~jpdixon/onyxsys.jpg[/img]

notadruid
a ghoul
a ghoul
Posts: 143
Joined: Mon Dec 08, 2003 6:02 pm

Post by notadruid » Tue Mar 22, 2005 7:43 am

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.
I am not a druid.

Teh_Hidden
a lesser mummy
a lesser mummy
Posts: 43
Joined: Wed Mar 16, 2005 12:42 am

Post by Teh_Hidden » Tue Mar 22, 2005 10:45 am

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?

notadruid
a ghoul
a ghoul
Posts: 143
Joined: Mon Dec 08, 2003 6:02 pm

Post by notadruid » Tue Mar 22, 2005 11:24 am

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.
I am not a druid.

bardomatic
a ghoul
a ghoul
Posts: 131
Joined: Thu Apr 29, 2004 12:09 am

Post by bardomatic » Tue Mar 22, 2005 1:39 pm

Is it possible to attach this info to the caption of only the selected target?

User avatar
grandgrowl
orc pawn
orc pawn
Posts: 19
Joined: Mon Mar 14, 2005 2:14 pm

Post by grandgrowl » Tue Mar 22, 2005 4:58 pm

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 ^_^