Page 1 of 1

snippets - hott and songwindow ui bits

Posted: Sat Aug 14, 2004 1:18 pm
by board_lurker_01
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}],]} 

Posted: Mon Aug 30, 2004 8:24 pm
by bob_the_builder
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

Posted: Mon Aug 30, 2004 9:06 pm
by Night Hawk
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},],]}

Posted: Tue Aug 31, 2004 1:02 pm
by board_lurker_01
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}%,]}

Posted: Tue Aug 31, 2004 1:12 pm
by A_Druid_00
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.

Posted: Tue Aug 31, 2004 7:31 pm
by Night Hawk
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.

Posted: Tue Oct 26, 2004 2:33 pm
by Excalibur
http://macroquest2.com/phpBB2/viewtopic ... highlight=

Cr4zyb4rd claims that his plugin cuts down on HUD FPS loss

Not there

Posted: Fri Nov 05, 2004 10:46 am
by MeGoober
Bad Link

Posted: Fri Nov 05, 2004 12:00 pm
by Cr4zyb4rd
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.

Posted: Fri Nov 05, 2004 12:31 pm
by board_lurker_01
The HUD speedup code does work, it helps a LOT in terms of fps.

Posted: Fri Nov 05, 2004 12:56 pm
by fice
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