Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2006, 05:45 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

Here are patches for exactly what i have..
client.cpp..
Code:
--- client.cpp	2006/06/20 02:36:20	1.2
+++ client.cpp	2006/06/21 06:07:41	1.3
@@ -143,6 +143,9 @@
 	ooc_timer(1000),
 	shield_timer(500),
 	fishing_timer(8000),
+#ifdef CRIPP
+	save_timer(60000),
+#endif
 #ifdef REVERSE_AGGRO
 	scanarea_timer(AIClientScanarea_delay),
 #endif
@@ -207,6 +210,9 @@
 	npclevel = 0;
 	pQueuedSaveWorkID = 0;
 	position_timer_counter = 0;
+#ifdef CRIPP
+	save_timer.Enable();
+#endif
 	fishing_timer.Disable();
 	shield_timer.Disable();
 	dead_timer.Disable();
client.h..
Code:
--- client.h	2006/06/20 02:36:21	1.2
+++ client.h	2006/06/21 06:07:41	1.3
@@ -768,6 +770,9 @@
 	Timer	ooc_timer;
 	Timer	shield_timer;
 	Timer	fishing_timer;
+#ifdef CRIPP
+	Timer	save_timer;
+#endif
 #ifdef REVERSE_AGGRO
 	Timer	scanarea_timer;
 #endif
client_process.cpp..
Code:
--- client_process.cpp	2006/06/20 02:36:21	1.2
+++ client_process.cpp	2006/06/21 06:07:41	1.3
@@ -146,7 +146,15 @@
 		if (fishing_timer.Check()) {
 			GoFish();
 		}
-		
+
+#ifdef CRIPP
+		if (save_timer.Check()) {
+			Save(2);
+			Message(0, "%s successfully saved.", GetName());
+			save_timer.Start(300000);
+		}
+#endif
+
 		if (bardsong_timer.Check() && bardsong != 0) {
 			//NOTE: this is kinda a heavy-handed check to make sure the mob still exists before
 			//doing the next pulse on them...
hope this is a little more readable ;p
(I also changed the numbers a bit to make it less annoying)
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:04 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3