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)');