cursor targetting and status monitor (and some other stuff)
Posted: Mon Mar 14, 2005 3:47 pm
note: an improved version of the cursor targetting hud can be found down below about 10-12 or so posts
first post! i was inspired to make this due to the sheer functionality of the hud~
first, some screens... i've got lots of 'em, so i'm providing links to images as opposed to showing them all at once:
here's our normal blank cursor
when we pick up an item, this appears per usual, like other hud mods out there -- this will always show when you have an item on your cursor, no matter what
here, we're targetting one mob... note we've got line of sight and range to target
...and here, we're targetting another mob some distance away
when we cast a spell, our range monitor is replaced by what we're casting (after all, we're presuming we're using the range monitor to see if we're in spell range, most likely) -- also note we're now in melee range as opposed to simply having los
...when we've got aggro from an npc target. this's only visible when hott is active -- if there's a way to make this show anytime you've got aggro, i'm all ears
here, we're targetting ourselves...
...while feigning death
...while invis
...while both invis and feigned
that's all for now. here's the code:
edit: forgot to mention -- the code has been altered slightly to accomodate users using the Arial font (obviously the screenshots aren't using Arial, i'm rather not fond of viewing capital letters in-game myself so i use a capsless font
)
another edit: fice's suggestion
-Grandgrowl-
first post! i was inspired to make this due to the sheer functionality of the hud~
first, some screens... i've got lots of 'em, so i'm providing links to images as opposed to showing them all at once:
here's our normal blank cursor
when we pick up an item, this appears per usual, like other hud mods out there -- this will always show when you have an item on your cursor, no matter what
here, we're targetting one mob... note we've got line of sight and range to target
...and here, we're targetting another mob some distance away
when we cast a spell, our range monitor is replaced by what we're casting (after all, we're presuming we're using the range monitor to see if we're in spell range, most likely) -- also note we're now in melee range as opposed to simply having los
...when we've got aggro from an npc target. this's only visible when hott is active -- if there's a way to make this show anytime you've got aggro, i'm all ears
here, we're targetting ourselves...
...while feigning death
...while invis
...while both invis and feigned
that's all for now. here's the code:
Code: Select all
;-=mouse cursor labels=-
;per usual, any item in cursor drag-and-drop mode has its name displayed.
;your current target and its health is also displayed here, unless you're
;currently holding an item (in which case that item name is displayed).
;there is a built-in los/melee range monitor displayed to the left of your
;target's name. range to target is displayed below your target's name --
;and is replaced by whatever you're casting when you cast
cursorname=7,25,-5,255,234,8,${If[${Cursor.ID},${Cursor},${If[${Target.ID},${Target.CleanName} - ${Target.PctHPs}%,]}]}
meleerange=7,-74,-5,0,255,0,${If[${Target.MaxRangeTo}>=${Target.Distance}&&${Target.CleanName.NotEqual[${Me}]},[melee range],]}
lineofsight=7,-70,-5,0,255,0,${If[${Target.MaxRangeTo}>=${Target.Distance}&&${Target.CleanName.NotEqual[${Me}]},,${If[${Target.LineOfSight}&&${Target.CleanName.NotEqual[${Me}]},[line of sight],]}]}
selftarget=7,-33,-5,0,255,0,${If[${Target.CleanName.Equal[${Me}]},[self],]}
cast=7,25,10,0,255,255,${If[${Me.Casting.ID}>0,casting ${Me.Casting},${If[${Target.ID}&&!${Cursor.ID},range: ${Target.Distance},]}]}
;this is purely for aesthetics, comment it out if you want
cursorloc=7,5,3,255,255,255,+
;-=stun and aggro monitor=-
;the below two lines display [stun] or [aggro] depending on certain criteria.
;if your target is currently aggroed on you (which can only be satisfied if you're in
;a group that has hott activated) aggromonitor returns [aggro].
;if you're stunned and not currently the subject of aggro by your (npc) target,
;stunmonitor returns [stun].
stunmonitor=7,-36,10,255,0,0,${If[${Me.State.Equal["STUN"]}&&${Target.Type.Equal["NPC"]},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[stun],]},${If[${Me.State.Equal["STUN"]},[stun],]}]}
aggromonitor=7,-43,10,255,0,0,${If[${Me.TargetOfTarget.CleanName.Equal[${Me}]},${If[${Target.Type.Equal["NPC"]},[aggro],]},]}
;-=feign monitor=-
;we check to see if we're feigning and not stunned, and targetting an npc.
;if all three of those are true, we then check to see that we're not aggroed,
;or if hott is not available. if that check works, we display [feign].
;if the initial check fails (i.e. no target), we simply check to see that we're
;feigning and not stunned, and return [feign] accordingly. if we're invis,
;feign monitor will not work (see invis monitor below)
feignmonitor=7,-39,10,255,234,8,${If[${Me.Feigning}&&${Me.State.NotEqual["STUN"]}&&${Target.Type.Equal["NPC"]}&&!${Me.Invis},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[feign],]},${If[${Me.Feigning}&&${Me.State.NotEqual["STUN"]}&&!${Me.Invis},[feign],]}]}
;-=invisibility monitor v2=-
;we check to see if we're invis and not stunned, and targetting an npc.
;if all three of those are true, we then check to see that we're not aggroed,
;or if hott is not available. if that check works, we display [invis].
;if the initial check fails (i.e. no target), we simply check to see that we're
;invis and not stunned, and return [invis] accordingly.
;an additional check has been built in to accomodate fd classes. if both criteria
;are fulfilled, a message accordingly pops up
invismonitor=7,-37,10,255,234,8,${If[${Me.Invis}&&${Me.State.NotEqual["STUN"]}&&${Target.Type.Equal["NPC"]}&&!${Me.Feigning},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[invis],]},${If[${Me.Invis}&&${Me.State.NotEqual["STUN"]}&&!${Me.Feigning},[invis],]}]}
v2monitor=7,-64,10,255,234,8,${If[${Me.Invis}&&${Me.Feigning}&&${Me.State.NotEqual["STUN"]}&&${Target.Type.Equal["NPC"]},${If[${Me.TargetOfTarget.CleanName.NotEqual[${Me}]}||!${Me.TargetOfTarget.ID},[invis/feign],]},${If[${Me.Feigning}&&${Me.Invis}&&${Me.State.NotEqual["STUN"]},[invis/feign],]}]}
another edit: fice's suggestion
-Grandgrowl-

[/img]


