snippets - hott and songwindow ui bits

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

Moderator: MacroQuest Developers

board_lurker_01
a lesser mummy
a lesser mummy
Posts: 59
Joined: Sun Jul 25, 2004 7:06 am

snippets - hott and songwindow ui bits

Post by board_lurker_01 » Sat Aug 14, 2004 1:18 pm

Since Drumstix excellent misc ui example did go vip and im not among the priveliged im just gonna post some snippets instead of some adds and modifications i made.

This is a hott example that i added in with the clean name aswell as the actual spawn name for reference. Use it or not, just an example.

Code: Select all

   TargetoftargetInfo=1,620,110,255,234,8,Target of target Information: 	       
 		 Hott=1,620,125,255,255,255,${If[${Target.ID},${Me.TargetOfTarget.CleanName},]}
 		Hott2=1,620,140,255,255,255,${If[${Target.ID},${Me.TargetOfTarget},]}
Heres some of the bonuses you might get on your gear if you want to see them, i stacked strikethrough, shielding, spellshield, accuracy, stun resist.

Code: Select all

     MyStrike=1,988,094,255,255,255,ST 
  MyStrikePct=1,1005,094,255,255,255,${Me.StrikeThroughBonus}% 
MySpellshield=1,1028,094,255,255,255,SS
MySpellshdPct=1,1045,094,255,255,255,${Me.SpellShieldBonus}% 
 MyStunresist=1,1070,094,255,255,255,SR
 MyStunresPct=1,1085,094,255,255,255,${Me.StunResistBonus}% 
   Myaccuracy=1,1110,094,255,255,255,ACC
MyAccuracyPct=1,1135,094,255,255,255,${Me.AccuracyBonus}% 
  Myshielding=1,1155,094,255,255,255,SLD
  MyshieldPct=1,1177,094,255,255,255,${Me.ShieldingBonus}% 
and finally a songwindow, found that lacking in the drumstix example.

Code: Select all

  SongInfo=1,800,5,255,234,8,Song Information: 
     Mysong1=1,800,020,255,255,255, ${If[${Me.Song[1].Name.NotEqual["NULL"]},1    ${Me.Song[1]},]} 
  SongTimer1=1,800,020,000,255,000, ${If[${Me.Song[1].Name.NotEqual["NULL"]},1    ${Me.Song[1]},]}  ${If[${Me.Song[1].Duration.TimeHMS.NotEqual["NULL"]},[${Me.Song[1].Duration.TimeHMS}],]} 
     MySong2=1,800,035,255,255,255, ${If[${Me.Song[2].Name.NotEqual["NULL"]},2    ${Me.Song[2]},]} 
  SongTimer2=1,800,035,000,255,000, ${If[${Me.Song[2].Name.NotEqual["NULL"]},2    ${Me.Song[2]},]}  ${If[${Me.Song[2].Duration.TimeHMS.NotEqual["NULL"]},[${Me.Song[2].Duration.TimeHMS}],]} 
     Mysong3=1,800,050,255,255,255, ${If[${Me.Song[3].Name.NotEqual["NULL"]},3    ${Me.Song[3]},]} 
  SongTimer3=1,800,050,000,255,000, ${If[${Me.Song[3].Name.NotEqual["NULL"]},3    ${Me.Song[3]},]}  ${If[${Me.Song[3].Duration.TimeHMS.NotEqual["NULL"]},[${Me.Song[3].Duration.TimeHMS}],]} 
     Mysong4=1,800,065,255,255,255, ${If[${Me.Song[4].Name.NotEqual["NULL"]},4    ${Me.Song[4]},]} 
  songTimer4=1,800,065,000,255,000, ${If[${Me.Song[4].Name.NotEqual["NULL"]},4    ${Me.Song[4]},]}  ${If[${Me.Song[4].Duration.TimeHMS.NotEqual["NULL"]},[${Me.Song[4].Duration.TimeHMS}],]} 
     Mysong5=1,800,080,255,255,255, ${If[${Me.Song[5].Name.NotEqual["NULL"]},5    ${Me.Song[5]},]} 
  songTimer5=1,800,080,000,255,000, ${If[${Me.Song[5].Name.NotEqual["NULL"]},5    ${Me.Song[5]},]}  ${If[${Me.Song[5].Duration.TimeHMS.NotEqual["NULL"]},[${Me.Song[5].Duration.TimeHMS}],]} 
     Mysong6=1,800,095,255,255,255, ${If[${Me.Song[6].Name.NotEqual["NULL"]},6    ${Me.Song[6]},]} 
  songTimer6=1,800,095,000,255,000, ${If[${Me.Song[6].Name.NotEqual["NULL"]},6    ${Me.Song[6]},]}  ${If[${Me.Song[6].Duration.TimeHMS.NotEqual["NULL"]},[${Me.Song[6].Duration.TimeHMS}],]} 

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Mon Aug 30, 2004 8:24 pm

I get a NULL when the Target does not have a Target

Code: Select all

${If[${Target.ID},${Me.TargetOfTarget.PctHPs}%,]}
Any help on syntax is appreciated.

Bob
Last edited by bob_the_builder on Tue Aug 31, 2004 8:58 am, edited 1 time in total.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Mon Aug 30, 2004 9:06 pm

Try this:

Code: Select all

   TargetoftargetInfo=1,620,110,255,234,8,Target of target Information:
        Hott=1,620,125,255,255,255,${If[${Target.ID},${If[${Me.TargetOfTarget.CleanName.NotEqual["NULL"]},${Me.TargetOfTarget.CleanName},],]}
       Hott2=1,620,140,255,255,255,${If[${Target.ID},${If[${Me.TargetOfTarget.NotEqual["NULL"]},${Me.TargetOfTarget},],]}

board_lurker_01
a lesser mummy
a lesser mummy
Posts: 59
Joined: Sun Jul 25, 2004 7:06 am

Post by board_lurker_01 » Tue Aug 31, 2004 1:02 pm

Theres something wrong in your code I think, didnt get it to work, so i rewrote it the way I though is ok. Feedback if its ineffecient to do it this way. It works, I tested it.

Code: Select all

   TargetoftargetInfo=1,620,110,255,234,8,Target of target Information: 
        Hott=1,620,125,255,255,255,${If[${Me.TargetOfTarget.CleanName.NotEqual["NULL"]},${Me.TargetOfTarget.CleanName},]} 
       Hott2=1,620,140,255,255,255,${If[${Me.TargetOfTarget.CleanName.NotEqual["NULL"]},${Me.TargetOfTarget},]}
            HottGuage=1,620,155,255,0,0,${String[====================].Left[${Int[${Math.Calc[${Int[${Me.TargetOfTarget.PctHPs}]}*.2]}]}]} 
        HottNormGuage=1,620,155,255,255,255,${If[${Me.TargetOfTarget.CleanName.NotEqual["NULL"]},====================  ${Me.TargetOfTarget.PctHPs}%,]}

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Tue Aug 31, 2004 1:12 pm

Just an FYI, using a lot of IF statements in your HUD will affect your framerate in EQ. Try making a HUD with 20 different IF statements, check your framerate, and then take them all out and just show the NULL where applicable and you'll see. The only time I didn't take a framerate hit was if I was staring at a wall. I'd rather live with seeing NULL than take that hit myself.

Of course, Cr4zyb4rd has come up with a plugin to make the hud refresh a lot less often in order to get around this, but I still try to avoid using IFs and just living with seeing NULL if I don't happen to be running a macro at this very moment, or if my target doesn't have a target.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Tue Aug 31, 2004 7:31 pm

Well, if you look at the UI by Drumstix42, you'll notice there is a lot of ifs. Most of it cannot be done with it. If you don't have a great system, you don't have to run it all. Easy as that. And if the plugin that was created to help FPS is useful, then use it.

Excalibur
orc pawn
orc pawn
Posts: 15
Joined: Thu Oct 14, 2004 4:35 pm

Post by Excalibur » Tue Oct 26, 2004 2:33 pm

http://macroquest2.com/phpBB2/viewtopic ... highlight=

Cr4zyb4rd claims that his plugin cuts down on HUD FPS loss

MeGoober
a lesser mummy
a lesser mummy
Posts: 36
Joined: Sat Oct 16, 2004 1:18 pm

Not there

Post by MeGoober » Fri Nov 05, 2004 10:46 am

Bad Link

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Fri Nov 05, 2004 12:00 pm

It was moved to VIP because the discussion was leaning towards some MQ2 internals that might have been just a bit on the "hacker-ish" side.

Then the discussion died utterly.

Then I posted a new version with further speedups, in hopes it would get some testing, but it doesn't seem to be getting much.

Then I read this thread, and started writing this stupid response to it.

Then I thought about it and decided I might as well repost it in the normal forums.

Then I remembered what a lazy bastard I am...I'll probably do it later today.

board_lurker_01
a lesser mummy
a lesser mummy
Posts: 59
Joined: Sun Jul 25, 2004 7:06 am

Post by board_lurker_01 » Fri Nov 05, 2004 12:31 pm

The HUD speedup code does work, it helps a LOT in terms of fps.

User avatar
fice
a hill giant
a hill giant
Posts: 187
Joined: Thu Jul 17, 2003 3:28 pm

Post by fice » Fri Nov 05, 2004 12:56 pm

the most important of crazy's plugin is the background check :P i'm in <3 with that since i often 2box and my hud has tons of little features and shit