Page 1 of 1

Accessing item descriptions / eq time

Posted: Wed Sep 12, 2018 5:08 pm
by Gurash
I'm sorry if this has been asked before, but I didn't see it.

Is there a way to access the descriptions of items? For example:

EQ tells us about Rabbit Meat that "This item can be used in tradeskills." It also tells us "This is a meal." I see lots of properties we can read, but I don't see that one. I would like to make a macro that auto-destroys foraged things that aren't food/drink based on that description - without the use of an ignore list. I've already got that part.

Also, is there a way to access the in-game time via MQ2? I know about /echo ${Time} already, but that's for real-world time. I'm actually wanting to put that as part of my HUD in MQ2HUD.ini

Thank you for any help!

Re: Accessing item descriptions / eq time

Posted: Wed Sep 12, 2018 6:33 pm
by dewey2461
There is a way for game time but I don't remember it off hand.

Re: Accessing item descriptions / eq time

Posted: Wed Sep 12, 2018 7:16 pm
by Gurash
Well, I feel slightly unsmart. I finally found the time bit here on the MQ2 Wiki of all places! Lol.

Here's the line in my HUD file I used it for:

Code: Select all

GTime=3,2,118,172,0,204,255, ${If[${GameTime.Hour} > 11,${Int[${Math.Calc[${GameTime.Hour}-12]}]},${GameTime.Hour}]}:${If[${GameTime.Minute} < 10,0${GameTime.Minute},${GameTime.Minute}]} ${If[${GameTime.Hour} > 11,PM,AM]}
All it does is display just the game time hours and minutes since seconds always show as 00, which is silly. Also, had to add that extra code for minutes because it doesn't automatically place a 0 in front of them if they are less than 10. The same applies to hours, but that's okay.

Re: Accessing item descriptions / eq time

Posted: Thu Sep 13, 2018 10:32 am
by exspes007
Gurash wrote:
Wed Sep 12, 2018 7:16 pm

Code: Select all

GTime=3,2,118,172,0,204,255, ${If[${GameTime.Hour} > 11,${Int[${Math.Calc[${GameTime.Hour}-12]}]},${GameTime.Hour}]}:${If[${GameTime.Minute} < 10,0${GameTime.Minute},${GameTime.Minute}]} ${If[${GameTime.Hour} > 11,PM,AM]}
All it does is display just the game time hours and minutes since seconds always show as 00, which is silly. Also, had to add that extra code for minutes because it doesn't automatically place a 0 in front of them if they are less than 10. The same applies to hours, but that's okay.
This is what I use. its associated with a command in the macro that lets people switch the hud time display between game and RL time.

Code: Select all

/noparse /ini HUDPATH "time1" "19,360,132,146,149,180,${If[${HUDTime} || !${coreBuild},${Time.Time24},${GameTime}]}"

Re: Accessing item descriptions / eq time

Posted: Thu Sep 13, 2018 12:55 pm
by Gurash
Thank you for the reply.

Have you got any ideas about how to "read" an item to see if it's a drink or food? Or if it's a tradeskill item? Thank you again.

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:24 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:25 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:26 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:29 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:30 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:31 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:32 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:33 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:34 pm
by xyilla

Re: Accessing item descriptions / eq time

Posted: Sun Jan 18, 2026 1:37 pm
by xyilla