Jump to content

Max Level for Fun Server


Guest Tuxity

Recommended Posts

Hi,

for people who have this type of error at launch

2009-02-17 11:37:41 ERROR:MaxPlayerLevel (200) must be in range 1..100. Set to 100.

2009-02-17 11:37:41 ERROR:GM.StartLevel (150) must be in range 1..100. Set to 100.

It's because mangos restricted the level max, and it's very annoying for fun serveur who wrote a maxlevel > 100 in their .conf

Totomakers wrote a patch for this error (this is a little fix)

"4"

I repeat it's for fun server only !

thanks,

Flemzard

Edit:

If mangos reduce the maxlevel it's because there is a client instability

cf Vladimir's post under

Link to comment
Share on other sites

modifications that do not give me a problem with stats, of course it can be improved, but my knowledge does not come over.

diff -aur git_mangos_303/src/game/MiscHandler.cpp mangos_produccion/src/game/MiscHandler.cpp
--- git_mangos_303/src/game/MiscHandler.cpp    2009-02-22 15:04:21.000000000 +0100
+++ mangos_produccion/src/game/MiscHandler.cpp    2009-02-22 17:15:39.000000000 +0100
@@ -145,8 +145,8 @@

    // client send in case not set max level value 100 but mangos support 255 max level,
    // update it to show GMs with characters after 100 level
-    if(level_max >= MAX_LEVEL)
-        level_max = STRONG_MAX_LEVEL;
+     if(level_max >= 100)
+        level_max = 255;

    uint32 team = _player->GetTeam();
    uint32 security = GetSecurity();
S├│lo en mangos_produccion/src/game: MiscHandler.cpp~
diff -aur git_mangos_303/src/game/Player.cpp mangos_produccion/src/game/Player.cpp
--- git_mangos_303/src/game/Player.cpp    2009-02-22 15:04:21.000000000 +0100
+++ mangos_produccion/src/game/Player.cpp    2009-02-22 17:09:01.000000000 +0100
@@ -4446,7 +4446,7 @@
    uint32 level = getLevel();
    uint32 pclass = getClass();

-    if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+    if (level>70) level = 70;

    GtChanceToMeleeCritBaseEntry const *critBase  = sGtChanceToMeleeCritBaseStore.LookupEntry(pclass-1);
    GtChanceToMeleeCritEntry     const *critRatio = sGtChanceToMeleeCritStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4491,7 +4491,7 @@
    uint32 level = getLevel();
    uint32 pclass = getClass();

-    if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+    if (level>70) level = 70;

    // Dodge per agility for most classes equal crit per agility (but for some classes need apply some multiplier)
    GtChanceToMeleeCritEntry  const *dodgeRatio = sGtChanceToMeleeCritStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4507,7 +4507,7 @@
    uint32 level = getLevel();
    uint32 pclass = getClass();

-    if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+    if (level>70) level = 70;

    GtChanceToSpellCritBaseEntry const *critBase  = sGtChanceToSpellCritBaseStore.LookupEntry(pclass-1);
    GtChanceToSpellCritEntry     const *critRatio = sGtChanceToSpellCritStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4522,7 +4522,7 @@
{
    uint32 level = getLevel();

-    if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+    if (level>70) level = 70;

    GtCombatRatingsEntry const *Rating = sGtCombatRatingsStore.LookupEntry(cr*GT_MAX_LEVEL+level-1);
    if (Rating == NULL)
@@ -4587,7 +4587,7 @@
    uint32 level = getLevel();
    uint32 pclass = getClass();

-    if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+    if (level>70) level = 70;

    GtOCTRegenHPEntry     const *baseRatio = sGtOCTRegenHPStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
    GtRegenHPPerSptEntry  const *moreRatio = sGtRegenHPPerSptStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4608,7 +4608,7 @@
    uint32 level = getLevel();
    uint32 pclass = getClass();

-    if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+    if (level>70) level = 70;

//    GtOCTRegenMPEntry     const *baseRatio = sGtOCTRegenMPStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
    GtRegenMPPerSptEntry  const *moreRatio = sGtRegenMPPerSptStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
S├│lo en mangos_produccion/src/game: Player.cpp~
diff -aur git_mangos_303/src/shared/Database/DBCEnums.h mangos_produccion/src/shared/Database/DBCEnums.h
--- git_mangos_303/src/shared/Database/DBCEnums.h    2009-02-22 15:04:22.000000000 +0100
+++ mangos_produccion/src/shared/Database/DBCEnums.h    2009-02-22 17:10:32.000000000 +0100
@@ -21,7 +21,7 @@

// client supported max level for player/pets/etc. Avoid overflow or client stability affected.
// also see GT_MAX_LEVEL define
-#define MAX_LEVEL    100
+#define MAX_LEVEL    255

// Server side limitation. Base at used code requirements.
// also see MAX_LEVEL and GT_MAX_LEVEL define
S├│lo en mangos_produccion/src/shared/Database: DBCEnums.h~
diff -aur git_mangos_303/src/shared/Database/DBCStructure.h mangos_produccion/src/shared/Database/DBCStructure.h
--- git_mangos_303/src/shared/Database/DBCStructure.h    2009-02-22 15:04:22.000000000 +0100
+++ mangos_produccion/src/shared/Database/DBCStructure.h    2009-02-22 17:11:16.000000000 +0100
@@ -772,7 +772,7 @@
};

// All Gt* DBC store data for 100 levels, some by 100 per class/race
-#define GT_MAX_LEVEL    100
+#define GT_MAX_LEVEL    180

struct GtBarberShopCostBaseEntry
{
S├│lo en mangos_produccion/src/shared/Database: DBCStructure.h~ 

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use