Cripp
06-09-2006, 08:27 AM
Not sure if this is already implamented at all in any way but it didnt look like it to me so i added it to my server.. heres what i did
first in client.h..
around line 770 after
Timer shield_timer;
Timer fishing_timer;
add
Timer save_timer;
so it looks like..
Timer shield_timer;
Timer fishing_timer;
Timer save_timer;
#ifdef REVERSE_AGGRO
Timer scanarea_timer;
#endif
NEXT..
in client.cpp, around line 145
after..
shield_timer(500),
fishing_timer(8000),
add
save_timer(90000),
so it looks like
shield_timer(500),
fishing_timer(8000),
save_timer(90000),
#ifdef REVERSE_AGGRO
scanarea_timer(AIClientScanarea_delay),
#endif
Also,
in client.cpp, around line 212
after..
pQueuedSaveWorkID = 0;
position_timer_counter = 0;
add
save_timer.Enable();
so it looks like
pQueuedSaveWorkID = 0;
position_timer_counter = 0;
save_timer.Enable();
fishing_timer.Disable();
shield_timer.Disable();
Last,
in client_process.cpp, around line 148
after..
if (fishing_timer.Check()) {
GoFish();
}
add..
if (save_timer.Check()) {
Save(2);
Message(0, "%s successfully saved.", GetName());
save_timer.Start(90000);
}
so it looks like..
if (fishing_timer.Check()) {
GoFish();
}
if (save_timer.Check()) {
Save(2);
Message(0, "%s successfully saved.", GetName());
save_timer.Start(90000);
}
if (bardsong_timer.Check() && bardsong != 0) {
If anyone can tweak it any better than it is, please do so.
Hope this helps, and hope its readable :D
edit: i would make a .diff file but i duno how :(
edit2: could also put an #ifdef ASAVE_TIMER #endif around all the additions and add #define ASAVE_TIMER in features.h to make it optional
first in client.h..
around line 770 after
Timer shield_timer;
Timer fishing_timer;
add
Timer save_timer;
so it looks like..
Timer shield_timer;
Timer fishing_timer;
Timer save_timer;
#ifdef REVERSE_AGGRO
Timer scanarea_timer;
#endif
NEXT..
in client.cpp, around line 145
after..
shield_timer(500),
fishing_timer(8000),
add
save_timer(90000),
so it looks like
shield_timer(500),
fishing_timer(8000),
save_timer(90000),
#ifdef REVERSE_AGGRO
scanarea_timer(AIClientScanarea_delay),
#endif
Also,
in client.cpp, around line 212
after..
pQueuedSaveWorkID = 0;
position_timer_counter = 0;
add
save_timer.Enable();
so it looks like
pQueuedSaveWorkID = 0;
position_timer_counter = 0;
save_timer.Enable();
fishing_timer.Disable();
shield_timer.Disable();
Last,
in client_process.cpp, around line 148
after..
if (fishing_timer.Check()) {
GoFish();
}
add..
if (save_timer.Check()) {
Save(2);
Message(0, "%s successfully saved.", GetName());
save_timer.Start(90000);
}
so it looks like..
if (fishing_timer.Check()) {
GoFish();
}
if (save_timer.Check()) {
Save(2);
Message(0, "%s successfully saved.", GetName());
save_timer.Start(90000);
}
if (bardsong_timer.Check() && bardsong != 0) {
If anyone can tweak it any better than it is, please do so.
Hope this helps, and hope its readable :D
edit: i would make a .diff file but i duno how :(
edit2: could also put an #ifdef ASAVE_TIMER #endif around all the additions and add #define ASAVE_TIMER in features.h to make it optional