Accessing item descriptions / eq time

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Gurash
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Jul 26, 2018 10:40 am

Accessing item descriptions / eq time

Post by Gurash » Wed Sep 12, 2018 5:08 pm

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!

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Accessing item descriptions / eq time

Post by dewey2461 » Wed Sep 12, 2018 6:33 pm

There is a way for game time but I don't remember it off hand.

Gurash
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Jul 26, 2018 10:40 am

Re: Accessing item descriptions / eq time

Post by Gurash » Wed Sep 12, 2018 7:16 pm

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.

exspes007
a hill giant
a hill giant
Posts: 193
Joined: Mon Oct 22, 2012 1:16 am

Re: Accessing item descriptions / eq time

Post by exspes007 » Thu Sep 13, 2018 10:32 am

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}]}"
-exspes007

Gurash
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Jul 26, 2018 10:40 am

Re: Accessing item descriptions / eq time

Post by Gurash » Thu Sep 13, 2018 12:55 pm

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.