Idea - Help needed.

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

Moderator: MacroQuest Developers

Trexil
orc pawn
orc pawn
Posts: 11
Joined: Fri Aug 27, 2004 9:03 pm

Idea - Help needed.

Post by Trexil » Fri Aug 27, 2004 9:09 pm

I've got an idea for making a timer on my HUD for a Timer for Current Session Playtime...

e.g.
when you type /played, it shows total time playing this toon, and current session time. How would I assign this value to a variable i can use in my HUD?

I've searched the forums, havent found anything at all close to this. Anyone have any idea how to whip this up?

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

Post by Night Hawk » Fri Aug 27, 2004 9:20 pm

I wonder is there a way to subtract current time/date to the point of logging in.

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

Post by Rusty~ » Fri Aug 27, 2004 9:31 pm

if you have MQ running before you log onto EQ, then ${MacroQuest.Running} will hold the ammount of time in milli seconds that you've been on.

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

Post by Night Hawk » Fri Aug 27, 2004 9:32 pm

That works. :roll:

Trexil
orc pawn
orc pawn
Posts: 11
Joined: Fri Aug 27, 2004 9:03 pm

Post by Trexil » Sat Aug 28, 2004 12:42 am

It's one way to go about it. Displays up to the milisecond, but not in a common time format.

eg 1152987 = about 1,152 seconds ... roughly.

Converting that to minutes by div 60000?

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

Post by Rusty~ » Sat Aug 28, 2004 11:32 am

yep

Trexil
orc pawn
orc pawn
Posts: 11
Joined: Fri Aug 27, 2004 9:03 pm

Post by Trexil » Fri Sep 03, 2004 9:47 pm

Code: Select all

Played=3,5,422,255,234,8,Played Today  - - - - - -
Played2=3,120,422,25,255,0,${Int[${Math.Calc[${MacroQuest.Running}/60000]}]}m / ${Math.Calc[${MacroQuest.Running}/60000/60]}h
That's what i've got sofar, now all i need to figure out is how to tweak the number to give me the secconds, instead of a modified hour counter. Any ideas?