GameTime.Night event

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

midwest1234
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Aug 14, 2004 10:56 am

GameTime.Night event

Post by midwest1234 » Wed Aug 18, 2004 6:44 pm

I found this useful to me when casting Dance of the Fireflies with a macro. The time that is coded into MQ for what EQ considers night appears to be incorrect. I changed the following lines in the source files listed and recompiled, the problem looks like it has been fixed. Let me know what you think.

FileName
MQ2Utilities.cpp

Line Number: 810

Original Line:
if (Night) *Night = ((eqHour < 7) || (eqHour > 18));//?TRUE:FALSE; // already handled by operators

Modified Line:
if (Night) *Night = ((eqHour < 5) || (eqHour > 19));//?TRUE:FALSE; // already handled by operators

File Name: MQ2DataTypes.cpp
Line Number: 3689

Original Line:
Dest.DWord=((pTime->tm_hour<7) || (pTime->tm_hour>18));

Changed Line:
Dest.DWord=((pTime->tm_hour<5) || (pTime->tm_hour>19));

*edited to correct line position*

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Thu Aug 19, 2004 1:49 am

Any 3rd party verification on this?

midwest1234
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Aug 14, 2004 10:56 am

Post by midwest1234 » Thu Aug 19, 2004 11:31 am

You may have to search for the line in question. It appears that they can be moved down with each new release of MQ2.