L2JMobius
Free Users => Work in Progress => Topic started by: oRiGiNaL on April 10, 2021, 04:20:32 AM
-
Hello folks, i want to change the Values from Double to Long. Why? Because i want to make a custom server with highest statuses. And i want to increase p atk/m atk up to ....lemme thing. 20 kkk? Or more. How i can do that? I ry my variant tested on LIVE server based on L2j-Sunrise pack. There work purfect. There i should change the values only on Player.java or something, i forgot. Anyway, i try same settings here and won't work.
I want to know in what packages here i should change from Double to Long. On client it's limitation for 2.147 xxx xxx. But i want to make it visible on Community Board more than 2.147 xxx xxx. Any help?
Greetings !
-
Double is bigger than long.
-
And how i can put on Config more than 2,147 xxx xxx? 20 000 000 000 L?
-
Try this.
Index: java/org/l2jmobius/Config.java
===================================================================
--- java/org/l2jmobius/Config.java (revision 8531)
+++ java/org/l2jmobius/Config.java (working copy)
@@ -201,8 +201,8 @@
public static double MAX_BONUS_EXP;
public static double MAX_BONUS_SP;
public static int MAX_RUN_SPEED;
- public static int MAX_PATK;
- public static int MAX_MATK;
+ public static double MAX_PATK;
+ public static double MAX_MATK;
public static int MAX_PCRIT_RATE;
public static int MAX_MCRIT_RATE;
public static int MAX_PATK_SPEED;
@@ -1791,8 +1791,8 @@
MAX_BONUS_EXP = Character.getDouble("MaxExpBonus", 3.5);
MAX_BONUS_SP = Character.getDouble("MaxSpBonus", 3.5);
MAX_RUN_SPEED = Character.getInt("MaxRunSpeed", 250);
- MAX_PATK = Character.getInt("MaxPAtk", 999999);
- MAX_MATK = Character.getInt("MaxMAtk", 999999);
+ MAX_PATK = Character.getDouble("MaxPAtk", 999999);
+ MAX_MATK = Character.getDouble("MaxMAtk", 999999);
MAX_PCRIT_RATE = Character.getInt("MaxPCritRate", 500);
MAX_MCRIT_RATE = Character.getInt("MaxMCritRate", 200);
MAX_PATK_SPEED = Character.getInt("MaxPAtkSpeed", 1500);
-
Yes, Thank you! About the line for Community Board can you give a bit help please?
returnHtml = returnHtml.replace("%pAtk%", String.valueOf(player.getPAtk(player)));
If i leave this, i don't get all numbers, i get max value i set on config. After 2,147 xxx xxx i don't get all numbers ! Thank you !