Jump to content
  • 0

pos n t peraso & problima stn srv


Question

Posted

Index: java/config/other.properties

===================================================================

--- java/config/other.properties (revision 1)

+++ java/config/other.properties (revision 10)

@@ -32,4 +32,8 @@

MaximumSlotsForDwarf = 100

MaximumSlotsForGMPlayer = 250

+

+# Configurable weight limit, 0 for disabled.

+# 200000 will add 200,000 weight limit to everyone, configure to your liking

+AddWeightLimit = 0

 

# Warehouse space limits

Index: java/net/sf/l2j/Config.java

===================================================================

--- java/net/sf/l2j/Config.java (revision 8)

+++ java/net/sf/l2j/Config.java (revision 10)

@@ -599,4 +599,7 @@

    public static int INVENTORY_MAXIMUM_GM;

   

+    /** Weight limit */

+    public static int ADD_MAX_LOAD;

+   

    /** Warehouse slots limits */

    public static int WAREHOUSE_SLOTS_NO_DWARF;

@@ -1115,4 +1118,7 @@

                INVENTORY_MAXIMUM_DWARF  = Integer.parseInt(otherSettings.getProperty("MaximumSlotsForDwarf", "100"));

            INVENTORY_MAXIMUM_GM    = Integer.parseInt(otherSettings.getProperty("MaximumSlotsForGMPlayer", "250"));

+            

+             /* Config weight limit */

+             ADD_MAX_LOAD = Integer.parseInt(otherSettings.getProperty("AddWeightLimit", "0"));

               

                /* Inventory slots limits */

Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 1)

+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 10)

@@ -1597,8 +1597,9 @@

/**

* Return the max weight that the L2PcInstance can load.<BR><BR>

+ * Added Config.ADD_MAX_LOAD ~AresXP

*/

public int getMaxLoad()

{

-        return (int)calcStat(Stats.MAX_LOAD, _baseLoad, this, null);

+        return (int)calcStat(Stats.MAX_LOAD, _baseLoad, this, null)+Config.ADD_MAX_LOAD;

}

as poume exo tn parapano kodika pos tha ton peraso k apo pou(eckipse fantazomai)

 

k ekana checkout to L2_Gameserver_It to estisa kanonika alla otan grafo entoles opos //event h //tvt

dn m anoigei t menu opos prin gt

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...