qtbugfix.txt
snippets · 2.2 KB · 2010-03-30
Quest bug fix: a bug in update.c related to the QUEST snippet.
Download « Back to the snippets list
*********************************************
THIS BUG IS CONTAINED IN THE update.c FILE.
*********************************************
As you can see in the QUEST snippet, you must (And I think that you have done it)
stick this line in the file update.c:
quest_update ( );
Just right here:
if ( --pulse_area <= 0 )
{
pulse_area = PULSE_AREA;
/* number_range( PULSE_AREA / 2, 3 * PULSE_AREA / 2 ); */
area_update ( );
}
So this will look something like this:
if ( --pulse_area <= 0 )
{
pulse_area = PULSE_AREA;
/* number_range( PULSE_AREA / 2, 3 * PULSE_AREA / 2 ); */
area_update ( );
quest_update ( );
}
*********************************************************************************
Perfect... you got your Quest Updater running...
*********************************************************************************
NOOOOOOOOOOOOOOOOOOO!!!!!!!! THERE'S A BUG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
If you have done this surely the players in your MUD are complaining about the
time between quests... That's Obvious!!! the time of the Area_Update is bigger
than 1 minute! sometimes this takes over 5 minutes!... so if you player have
5 minutes for the next quest, really, he/she can have about over 10 minutes!.
Well I've cutted the line and paste it onto another place... You must do this too
take the line:
quest_update ( );
And paste this over there:
if ( --pulse_point <= 0 )
{
wiznet("TICK!",NULL,NULL,WIZ_TICKS,0,0);
pulse_point = PULSE_TICK;
/* number_range( PULSE_TICK / 2, 3 * PULSE_TICK / 2 ); */
weather_update ( );
char_update ( );
obj_update ( );
}
So this will look just like this:
if ( --pulse_point <= 0 )
{
wiznet("TICK!",NULL,NULL,WIZ_TICKS,0,0);
pulse_point = PULSE_TICK;
/* number_range( PULSE_TICK / 2, 3 * PULSE_TICK / 2 ); */
weather_update ( );
char_update ( );
obj_update ( );
quest_update ( );
}
And now the time will really be a minute for minute.
That's all...
->Jinwe<- from Nueva Thoria MUD.
*****************************************
* http://nuevathoria.wolfpaw.net *
* telnet://nuevathoria.wolfpaw.net:3600 *
*****************************************