HP and mana regen

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

Moderator: MacroQuest Developers

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

HP and mana regen

Post by Goofmester1 » Tue Jan 13, 2004 9:08 am

I have been trying to learn more about UI's and have editted mine to include HP and Mana regen on the stat window.

Having a slight problem with it though.. it sometimes or most time it seems shows some very off numbers.

The code I am using to add it is

<EQType>9999</EQType>
<TooltipReference>$char(hp,regen)</TooltipReference>

and

<EQType>9999</EQType>
<TooltipReference>$char(mana,regen)</TooltipReference>

Thanks in advance if you can help me.. would be really nice if I could get this to work with stable believable numbers.

User avatar
Elric
Cheese Whore
Cheese Whore
Posts: 466
Joined: Sun Nov 23, 2003 12:31 am
Location: Tampa, Fl
Contact:

Post by Elric » Tue Jan 13, 2004 5:31 pm

You've got it down. That's what I use in mine, and it shows consistent numbers.

What version of MQ are you using? What buffs do you have on?
-Elric

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

Post by bob_the_builder » Tue Jan 13, 2004 5:52 pm

it sometimes or most time it seems shows some very off numbers.
The numbers will change depending on what your doing and usually take a tick (3 seconds?) to refresh.

So if you stand then cast then sit its possible you will see two different numbers at different times... etc etc

Using the latest Dec31 MQ2 and the code you posted showseemingly correct regen numbers.

Bob

User avatar
Elric
Cheese Whore
Cheese Whore
Posts: 466
Joined: Sun Nov 23, 2003 12:31 am
Location: Tampa, Fl
Contact:

Post by Elric » Tue Jan 13, 2004 5:55 pm

A pulse, six seconds. A tick, six seconds. That's how it updates, via MQ2 pulses. So if you sit, it will take until the next pulse to update.

Are you meaning that it takes a few seconds to update?
-Elric

merkzu
a ghoul
a ghoul
Posts: 99
Joined: Wed May 14, 2003 2:08 pm

Post by merkzu » Tue Jan 13, 2004 6:26 pm

mq pulses many times per second. the regen seems to just check how much your hp/mana raised between ticks., i dont think it actually calculates what regen effects are on you.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Tue Jan 13, 2004 7:35 pm

Merkzu is correct if a necro feeds you, or a beastlord uses paragon etc. it adds that into what it considers "regen".

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Wed Jan 14, 2004 6:56 am

Well when I logged in the numbers were at like 1457 HP Regen and 24987 mana regen. Then after full raid buffing and getting ready they were still like that. About to get home from work so maybe I can just post the UI code for the entire window... Or maybe it was just bugged by EQ yesterday and will work ok (hopefully that it.)

Space-Boy
a hill giant
a hill giant
Posts: 242
Joined: Wed Dec 04, 2002 12:53 pm
Contact:

Post by Space-Boy » Fri Jan 16, 2004 1:08 pm

the insane high numbers are normal, when you log or zone you lose mana / hp then gain it on entry depending on your gear etc, the server takes everything off then puts it back on so to speak

when you cast a spell or take some damage etc and actually regen mana or hp, the number changes to what is more normal
You have gotten better at Carpal Tunnel! (247)

nbjeter3
a lesser mummy
a lesser mummy
Posts: 39
Joined: Wed Jan 21, 2004 12:18 am

not To Sound Like a total noob(but i am When it comes to XML

Post by nbjeter3 » Wed Jan 21, 2004 5:25 am

but where in Which file do i Place These Lines of code In order To get The Effect Ya'll Are referring To? as A necro These Would be real handy items To have...
Don't hate Me cuz I'm beautiful.. I Can give you MUCH better reasons Than That....

Noone Likes A necro... till Mid-battle And They're OOM..

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Tue Jul 13, 2004 5:46 pm

Ok, got 99% of my UI all fixed with the upcoming EQ changes, and added a few MQ Features, but out of all of them I can't seem to get HP/Mana regen to work. Here is what I'm using...

Code: Select all

	<Label item="ManaRegen"> 
      		<ScreenID>MQ_EXP</ScreenID> 
	        <EQType>9999</EQType> 
      		<Font>2</Font> 
		<TooltipReference>$char(mana,regen)</TooltipReference>
      		<RelativePosition>true</RelativePosition> 
      		<Location> 
         		<X>67</X> 
         		<Y>152</Y> 
      		</Location> 
      		<Size> 
         		<CX>29</CX> 
         		<CY>15</CY> 
      		</Size> 
      		<Text></Text> 
      		<TextColor> 
         		<R>255</R> 
         		<G>255</G> 
         		<B>255</B> 
      		</TextColor> 
      		<NoWrap>true</NoWrap> 
      		<AlignCenter>false</AlignCenter> 
      		<AlignRight>true</AlignRight> 
      		<AlignLeft>false</AlignLeft> 
   	</Label>
	<Label item="HPRegen"> 
      		<ScreenID>MQ_EXP</ScreenID> 
	        <EQType>9999</EQType> 
      		<Font>2</Font> 
		<TooltipReference>$char(hp,regen)</TooltipReference>
      		<RelativePosition>true</RelativePosition> 
      		<Location> 
         		<X>67</X> 
         		<Y>163</Y> 
      		</Location> 
      		<Size> 
         		<CX>29</CX> 
         		<CY>15</CY> 
      		</Size> 
      		<Text></Text> 
      		<TextColor> 
         		<R>255</R> 
         		<G>255</G> 
         		<B>255</B> 
      		</TextColor> 
      		<NoWrap>true</NoWrap> 
      		<AlignCenter>false</AlignCenter> 
      		<AlignRight>true</AlignRight> 
      		<AlignLeft>false</AlignLeft> 
   	</Label>
Both show

Code: Select all

$char(hp,regen)
and

Code: Select all

$char(mana,regen)
respectively.

Yes, MQ is compiled and running correctly (At least I think it is, everything else seems to work correctly)

If this is just a retard mistake on my part, please call the retard police and point me in the right direction. If not - heh why doesn't this work?
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

User avatar
signal0
a lesser mummy
a lesser mummy
Posts: 32
Joined: Thu Apr 01, 2004 10:07 pm
Contact:

Post by signal0 » Tue Jul 13, 2004 6:00 pm

${Me.ManaRegen}

and

${Me.HPRegen}
signal[b]0[/b]

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Tue Jul 13, 2004 6:01 pm

New data system: http://macroquest2.com/phpBB2/viewtopic.php?t=6022

$char(hp,regen) should be ${Me.HPRegen}

and

$char(mana,regen) should be ${Me.ManaRegen}

Rusty~
a hill giant
a hill giant
Posts: 244
Joined: Wed Apr 14, 2004 2:55 pm

Post by Rusty~ » Tue Jul 13, 2004 6:10 pm

i use this in my UI:

Code: Select all

${If[${Me.PctHPs}<100,${He.HPRegen},]}
${If[${Me.PctMana}<100,${He.ManaRegen},]}
regen values hold the last amount you regened for. if you were healed for 1000 and that put you at 100% hp then it would show your regen at 1000 till you lost some hp again... this way it wont show the values if you're full hp/mana

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Tue Jul 13, 2004 6:14 pm

Aww damnit, I had just found the answer too!

Thanks you 2 - much appreciated.

(BTW, I must say I'm no programmer, I'm no software engineer, and I damn sure don't have any certifications I can list off with an acronym, unless you consider my ARC FRI, CPR/PRI, FII and LGI part of those (heh American Red Cross First Responder, CPR for hte Professional Rescuer, First Aid, and Lifegurd Instructors) I will say that this MQ stuff is pretty easy - with all the posted UI mods and stuff, pretty much I'm learning between the Readme then looking at examples. Nice work developers and all who helped this project along. Maybe one day I'll be able to make a signifigant contribution)
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Tue Jul 13, 2004 6:19 pm

Ok Rusty, I think I like that better. First, let me use in plain english terms how I think that's supposed to work...

{IfThisConditionisTrue[DoThis,OtherwiseDoThis]}

So if that's true, I could change yours to

${If[${Me.PctHPs}<100,${He.HPRegen},0]}

Then when at 100% regen would show 0 because in fact if you are full you can't possibly regen any more.

Right?
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]