From 55b95c0160a68d63f3bf53d97cb87a53bf5d83db Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 28 Oct 2021 05:21:41 +0000 Subject: [PATCH] Clan experience adjustments. Contributed by MacuK. --- .../dist/game/config/Feature.ini | 7 +++++-- .../village_master/ClanMaster/9000-01.htm | 2 +- .../java/org/l2jmobius/Config.java | 6 ++++-- .../model/actor/stat/PlayableStat.java | 8 ++++++-- .../l2jmobius/gameserver/model/clan/Clan.java | 18 +++++++++--------- .../RequestExPledgeDonationRequest.java | 6 +++--- 6 files changed, 28 insertions(+), 19 deletions(-) diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Feature.ini b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Feature.ini index 01a7fac22b..2b7452a088 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Feature.ini +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Feature.ini @@ -205,8 +205,11 @@ LevelUp71And75ReputationScore = 75 # Reputation score gained after level obtained (76-80) LevelUp76And80ReputationScore = 90 -# Reputation score gained after level obtained (81+) -LevelUp81PlusReputationScore = 120 +# Reputation score gained after level obtained (81-90) +LevelUp81And90ReputationScore = 120 + +# Reputation score gained after level obtained (91+) +LevelUp91PlusReputationScore = 150 # Reputation score gained after level obtained multiplier LevelObtainedReputationScoreMultiplier = 1.0 diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/village_master/ClanMaster/9000-01.htm b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/village_master/ClanMaster/9000-01.htm index e95e30bcb6..420af5a637 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/village_master/ClanMaster/9000-01.htm +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/village_master/ClanMaster/9000-01.htm @@ -1,6 +1,6 @@ What would you like to do?
- + diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java index 12169bdbbf..25017a3bd4 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java @@ -410,7 +410,8 @@ public class Config public static int LVL_UP_66_AND_70_REP_SCORE; public static int LVL_UP_71_AND_75_REP_SCORE; public static int LVL_UP_76_AND_80_REP_SCORE; - public static int LVL_UP_81_PLUS_REP_SCORE; + public static int LVL_UP_81_AND_90_REP_SCORE; + public static int LVL_UP_91_PLUS_REP_SCORE; public static double LVL_OBTAINED_REP_SCORE_MULTIPLIER; public static int CLAN_LEVEL_6_COST; public static int CLAN_LEVEL_7_COST; @@ -1572,7 +1573,8 @@ public class Config LVL_UP_66_AND_70_REP_SCORE = Feature.getInt("LevelUp66And70ReputationScore", 63); LVL_UP_71_AND_75_REP_SCORE = Feature.getInt("LevelUp71And75ReputationScore", 75); LVL_UP_76_AND_80_REP_SCORE = Feature.getInt("LevelUp76And80ReputationScore", 90); - LVL_UP_81_PLUS_REP_SCORE = Feature.getInt("LevelUp81PlusReputationScore", 120); + LVL_UP_81_AND_90_REP_SCORE = Feature.getInt("LevelUp81And90ReputationScore", 120); + LVL_UP_91_PLUS_REP_SCORE = Feature.getInt("LevelUp91PlusReputationScore", 150); LVL_OBTAINED_REP_SCORE_MULTIPLIER = Feature.getDouble("LevelObtainedReputationScoreMultiplier", 1.0d); CLAN_LEVEL_6_COST = Feature.getInt("ClanLevel6Cost", 15000); CLAN_LEVEL_7_COST = Feature.getInt("ClanLevel7Cost", 450000); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/stat/PlayableStat.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/stat/PlayableStat.java index f86fdf6fc4..6c9fde0c24 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/stat/PlayableStat.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/stat/PlayableStat.java @@ -336,9 +336,13 @@ public class PlayableStat extends CreatureStat { reputation += Config.LVL_UP_76_AND_80_REP_SCORE; } - else if ((level >= 81) && (level <= 120)) + else if ((level >= 81) && (level <= 90)) { - reputation += Config.LVL_UP_81_PLUS_REP_SCORE; + reputation += Config.LVL_UP_81_AND_90_REP_SCORE; + } + else if ((level >= 91) && (level <= 120)) + { + reputation += Config.LVL_UP_91_PLUS_REP_SCORE; } } diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java index c3f58b75bc..d3af899121 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -161,15 +161,15 @@ public class Clan implements IIdentifiable, INamable private static final int[] EXP_TABLE = { 100, - 100, - 500, - 10000, - 50000, - 150000, - 450000, - 1000000, - 2000000, - 4000000 + 1000, + 5000, + 100000, + 500000, + 1500000, + 4500000, + 7500000, + 11000000, + 14500000 }; private String _notice; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pledgedonation/RequestExPledgeDonationRequest.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pledgedonation/RequestExPledgeDonationRequest.java index d117db0c6f..96e9db62be 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pledgedonation/RequestExPledgeDonationRequest.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pledgedonation/RequestExPledgeDonationRequest.java @@ -65,7 +65,7 @@ public class RequestExPledgeDonationRequest implements IClientIncomingPacket { if (player.reduceAdena("pledge donation", 10000, null, true)) { - clan.addExp(player.getObjectId(), 3, true); + clan.addExp(player.getObjectId(), 9, true); } else { @@ -79,7 +79,7 @@ public class RequestExPledgeDonationRequest implements IClientIncomingPacket { if (player.getInventory().destroyItemByItemId("pledge donation", Inventory.LCOIN_ID, 100, player, null) != null) { - clan.addExp(player.getObjectId(), 10, true); + clan.addExp(player.getObjectId(), 100, true); player.setHonorCoins(player.getHonorCoins() + 100); } else @@ -99,7 +99,7 @@ public class RequestExPledgeDonationRequest implements IClientIncomingPacket { if (player.getInventory().destroyItemByItemId("pledge donation", Inventory.LCOIN_ID, 500, player, null) != null) { - clan.addExp(player.getObjectId(), 50, true); + clan.addExp(player.getObjectId(), 500, true); player.setHonorCoins(player.getHonorCoins() + 500); } else