Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2011, 12:29 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default COMMITTED: Session TimeOut Telnet Console Rule

Here are a few changes that allow flexibility to the amount of time the Telnet session takes to expire.

Code:
Index: EQEmuServer/common/ruletypes.h
===================================================================
--- EQEmuServer/common/ruletypes.h	(revision 1957)
+++ EQEmuServer/common/ruletypes.h	(working copy)
@@ -135,6 +135,7 @@
 RULE_INT ( World, PVPSettings, 0) // Sets the PVP settings for the server, 1 = Rallos Zek RuleSet, 2 = Tallon/Vallon Zek Ruleset, 4 = Sullon Zek Ruleset, 6 = Discord Ruleset, anything above 6 is the Discord Ruleset without the no-drop restrictions removed. TODO: Edit IsAttackAllowed in Zone to accomodate for these rules.
 RULE_BOOL (World, IsGMPetitionWindowEnabled, false)
 RULE_INT (World, FVNoDropFlag, 0) // Sets the Firiona Vie settings on the client. If set to 2, the flag will be set for GMs only, allowing trading of no-drop items.
+
 RULE_CATEGORY_END()
 
 RULE_CATEGORY( Zone )
@@ -427,6 +428,10 @@
 RULE_INT ( AA, ExpPerPoint, 23976503)	//Amount of exp per AA. Is the same as the amount of exp to go from level 51 to level 52.
 RULE_CATEGORY_END()
 
+RULE_CATEGORY( Console )
+RULE_INT ( Console, SessionTimeOut, 600000 )
+RULE_CATEGORY_END()
+
 #undef RULE_CATEGORY
 #undef RULE_INT
 #undef RULE_REAL
Index: EQEmuServer/world/console.h
===================================================================
--- EQEmuServer/world/console.h	(revision 1957)
+++ EQEmuServer/world/console.h	(working copy)
@@ -18,7 +18,9 @@
 #ifndef CONSOLE_H
 #define CONSOLE_H
 
-#define CONSOLE_TIMEOUT 600000
+
+
+
 enum {
 	consoleLoginStatus = 50,	//ability to log in, basic commands.
 	httpLoginStatus = 100,		//can log into the HTTP interface
@@ -42,7 +44,10 @@
 #include "../common/EmuTCPConnection.h"
 #include "WorldTCPConnection.h"
 #include "../common/Mutex.h"
+#include "../common/ruletypes.h"
 
+#define CONSOLE_TIMEOUT RuleI(Console, SessionTimeOut)
+
 struct ServerChannelMessage_Struct;
 
 class Console : public WorldTCPConnection {

SQL:
Code:
INSERT INTO `rule_values` VALUES (1, 'Console:SessionTimeOut', '600000', 'This sets the default timeout time for Telnet sessions (MS)');
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 06:06 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3