$calc($char(hp,cur)+$char(DAR))

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

Moderator: MacroQuest Developers

srene8
orc pawn
orc pawn
Posts: 11
Joined: Thu Oct 02, 2003 7:35 pm

$calc($char(hp,cur)+$char(DAR))

Post by srene8 » Mon Nov 17, 2003 3:36 pm

Is there a way to include
<EQType>9999</EQType>
<TooltipReference>$calc($char(hp,cur)+$char(DAR))</TooltipReference>
in my UI? I try but I get spammed with can not parse and it shows my hp as negative 1. Any ideas, please let me know.

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

Post by Zxeses » Mon Nov 17, 2003 4:50 pm

Well first of all, can you do this on the command line?

type

/echo $calc(whatever)

does it return an error also?

next, check each sub componant to see your result

/echo $char(hp,cur)
/echo $char(DAR)

Are they both returning numbers? You cant "add" two things unless they are numbers.

gnome001
a ghoul
a ghoul
Posts: 109
Joined: Fri Jan 24, 2003 1:01 am

Post by gnome001 » Mon Nov 17, 2003 5:42 pm

what is /echo $char(DAR) supposed to show?

User avatar
pooz
a lesser mummy
a lesser mummy
Posts: 44
Joined: Fri Jun 27, 2003 1:01 pm

Post by pooz » Mon Nov 17, 2003 6:09 pm

Damage Absorption Remaining... Unfortunately it doesn't update until after you zone (its not real time)
trees do not need much money

srene8
orc pawn
orc pawn
Posts: 11
Joined: Thu Oct 02, 2003 7:35 pm

ty

Post by srene8 » Mon Nov 17, 2003 6:24 pm

thanks. Problem was that I had DAR capitalized, hehe. DAR stands for Damage Absorb Remaining. So if you have a 800 rune, and get hit for 200, it would report 600 remaining.

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 Nov 18, 2003 12:21 am

Is $char(dar) real time or not?

it is not real time.

Is there any way to make this real time or get a real time %char ??

Bob

Guest

Post by Guest » Tue Dec 02, 2003 2:21 pm

I have the same question as bob the bulder; is there a way to make this update without zoning?

FallenOne
orc pawn
orc pawn
Posts: 14
Joined: Sun Sep 14, 2003 6:37 am

Post by FallenOne » Fri Jan 23, 2004 10:14 pm

sorry to bump this, but has a solution been found to the non real timeness of $char(dar) ? :)

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Sat Jan 24, 2004 11:17 am

it seems to work in real time now... I have tested it out with a RuneII proc as well as removing that buff again.
/mcswanbeck

FallenOne
orc pawn
orc pawn
Posts: 14
Joined: Sun Sep 14, 2003 6:37 am

Post by FallenOne » Sat Jan 24, 2004 2:40 pm

did you test getting hit ? atm mine only shows that i got runes that amount to xxxx when full, but doesnt show whats actually left atm

mcswanbeck
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Jan 16, 2004 5:16 am

Post by mcswanbeck » Sun Jan 25, 2004 4:16 pm

FallenOne wrote:did you test getting hit ? atm mine only shows that i got runes that amount to xxxx when full, but doesnt show whats actually left atm
You might be right... I was using it with max hp and not with the current hp... My bad, sorry.
/mcswanbeck