Page 1 of 2
HP and mana regen
Posted: Tue Jan 13, 2004 9:08 am
by Goofmester1
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.
Posted: Tue Jan 13, 2004 5:31 pm
by Elric
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?
Posted: Tue Jan 13, 2004 5:52 pm
by bob_the_builder
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
Posted: Tue Jan 13, 2004 5:55 pm
by Elric
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?
Posted: Tue Jan 13, 2004 6:26 pm
by merkzu
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.
Posted: Tue Jan 13, 2004 7:35 pm
by ml2517
Merkzu is correct if a necro feeds you, or a beastlord uses paragon etc. it adds that into what it considers "regen".
Posted: Wed Jan 14, 2004 6:56 am
by Goofmester1
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.)
Posted: Fri Jan 16, 2004 1:08 pm
by Space-Boy
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
not To Sound Like a total noob(but i am When it comes to XML
Posted: Wed Jan 21, 2004 5:25 am
by nbjeter3
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...
Posted: Tue Jul 13, 2004 5:46 pm
by TheNewGuy
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
and
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?
Posted: Tue Jul 13, 2004 6:00 pm
by signal0
${Me.ManaRegen}
and
${Me.HPRegen}
Posted: Tue Jul 13, 2004 6:01 pm
by ieatacid
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}
Posted: Tue Jul 13, 2004 6:10 pm
by Rusty~
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
Posted: Tue Jul 13, 2004 6:14 pm
by TheNewGuy
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)
Posted: Tue Jul 13, 2004 6:19 pm
by TheNewGuy
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?