Page 1 of 1

GameTime.Night event

Posted: Wed Aug 18, 2004 6:44 pm
by midwest1234
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*

Posted: Thu Aug 19, 2004 1:49 am
by Amadeus
Any 3rd party verification on this?

Posted: Thu Aug 19, 2004 11:31 am
by midwest1234
You may have to search for the line in question. It appears that they can be moved down with each new release of MQ2.