Auto save timer...
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 Code:
Timer shield_timer;Code:
Timer save_timer;Code:
Timer shield_timer;in client.cpp, around line 145 after.. Code:
shield_timer(500),Code:
save_timer(90000),Code:
shield_timer(500),in client.cpp, around line 212 after.. Code:
pQueuedSaveWorkID = 0;Code:
save_timer.Enable();Code:
pQueuedSaveWorkID = 0;in client_process.cpp, around line 148 after.. Code:
if (fishing_timer.Check()) {Code:
if (save_timer.Check()) {Code:
if (fishing_timer.Check()) {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 |
This is a good idea, bump this thread in a week or two if it does not get into CVS by then.
info on how to diff, feel free to expand on it: http://www.eqemulator.net/wiki/wikka...akka=howtodiff |
Here are patches for exactly what i have..
client.cpp.. Code:
--- client.cpp 2006/06/20 02:36:20 1.2Code:
--- client.h 2006/06/20 02:36:21 1.2Code:
--- client_process.cpp 2006/06/20 02:36:21 1.2(I also changed the numbers a bit to make it less annoying) |
| All times are GMT -4. The time now is 07:01 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.