Index: java/config/altsettings.properties =================================================================== --- java/config/altsettings.properties (revision 1240) +++ java/config/altsettings.properties (working copy) @@ -20,6 +20,10 @@ # AutoLearnSkills... True to enable, False to disable AutoLearnSkills = False +# (default 1600) +AltPartyRange = 1600 +# (default 1400) +AltPartyRange2 = 1400 # If XP loss (and deleveling) is enabled, default is 'true' Delevel = True Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 1240) +++ java/net/sf/l2j/Config.java (working copy) @@ -143,7 +143,8 @@ /** Alternative game - use tiredness, instead of CP */ public static boolean ALT_GAME_TIREDNESS; - + public static int ALT_PARTY_RANGE; + public static int ALT_PARTY_RANGE2; /** Alternative shield defence */ public static boolean ALT_GAME_SHIELD_BLOCKS; @@ -1151,6 +1152,7 @@ /** Alt Settings for devs */ public static boolean ALT_DEV_NO_QUESTS; public static boolean ALT_DEV_NO_SPAWNS; + /** * This class initializes all global variables for configuration.
@@ -1632,6 +1634,8 @@ ALLOW_CLASS_MASTERS = Boolean.valueOf(altSettings.getProperty("AllowClassMasters", "False")); ALT_GAME_FREIGHTS = Boolean.parseBoolean(altSettings.getProperty("AltGameFreights", "false")); ALT_GAME_FREIGHT_PRICE = Integer.parseInt(altSettings.getProperty("AltGameFreightPrice", "1000")); + ALT_PARTY_RANGE = Integer.parseInt(altSettings.getProperty("AltPartyRange", "1600")); + ALT_PARTY_RANGE2 = Integer.parseInt(altSettings.getProperty("AltPartyRange2", "1400")); ALT_GAME_SKILL_HIT_RATE = Float.parseFloat(altSettings.getProperty("AltGameSkillHitRate", "1.")); IS_CRAFTING_ENABLED = Boolean.parseBoolean(altSettings.getProperty("CraftingEnabled", "true")); LIFE_CRYSTAL_NEEDED = Boolean.parseBoolean(altSettings.getProperty("LifeCrystalNeeded", "true")); @@ -2310,7 +2314,8 @@ else if (pName.equalsIgnoreCase("AllowClassMasters")) ALLOW_CLASS_MASTERS = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("AltGameFreights")) ALT_GAME_FREIGHTS = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("AltGameFreightPrice")) ALT_GAME_FREIGHT_PRICE = Integer.parseInt(pValue); - + else if (pName.equalsIgnoreCase("AltPartyRange")) ALT_PARTY_RANGE = Integer.parseInt(pValue); + else if (pName.equalsIgnoreCase("AltPartyRange2")) ALT_PARTY_RANGE2 = Integer.parseInt(pValue); else if (pName.equalsIgnoreCase("AltGameSkillHitRate")) ALT_GAME_SKILL_HIT_RATE = Float.parseFloat(pValue); else if (pName.equalsIgnoreCase("CraftingEnabled")) IS_CRAFTING_ENABLED = Boolean.valueOf(pValue); Index: java/net/sf/l2j/gameserver/model/L2Attackable.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2Attackable.java (revision 1243) +++ java/net/sf/l2j/gameserver/model/L2Attackable.java (working copy) @@ -522,7 +522,7 @@ ddealer = info._attacker; // Check if ddealer isn't too far from this (killed monster) - if (!Util.checkIfInRange(1600, this, ddealer, true)) continue; + if (!Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, ddealer, true)) continue; // Calculate real damages (Summoners should get own damage plus summon's damage) reward = rewards.get(ddealer); @@ -647,7 +647,7 @@ // If the L2PcInstance is in the L2Attackable rewards add its damages to party damages if (reward2 != null) { - if (Util.checkIfInRange(1600, this, pl, true)) + if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, pl, true)) { partyDmg += reward2._dmg; // Add L2PcInstance damages to party damages rewardedMembers.add(pl); @@ -659,7 +659,7 @@ { // Add L2PcInstance of the party (that have attacked or not) to members that can be rewarded // and in range of the monster. - if (Util.checkIfInRange(1600, this, pl, true)) + if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, pl, true)) { rewardedMembers.add(pl); if (pl.getLevel() > partyLvl) partyLvl = pl.getLevel(); @@ -671,7 +671,7 @@ reward2 = rewards.get(summon); if (reward2 != null) // Pets are only added if they have done damage { - if (Util.checkIfInRange(1600, this, summon, true)) + if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, summon, true)) { partyDmg += reward2._dmg; // Add summon damages to party damages rewardedMembers.add(summon); Index: java/net/sf/l2j/gameserver/model/L2Party.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2Party.java (revision 1240) +++ java/net/sf/l2j/gameserver/model/L2Party.java (working copy) @@ -123,7 +123,7 @@ for (L2PcInstance member : getPartyMembers()) { if (member.getInventory().validateCapacityByItemId(ItemId) && - Util.checkIfInRange(1400, target, member, true)) availableMembers.add(member); + Util.checkIfInRange(Config.ALT_PARTY_RANGE2, target, member, true)) availableMembers.add(member); } if (availableMembers.size() > 0) return availableMembers.get(Rnd.get(availableMembers.size())); else return null; @@ -151,7 +151,7 @@ { member = getPartyMembers().get(_itemLastLoot); if (member.getInventory().validateCapacityByItemId(ItemId) && - Util.checkIfInRange(1400, target, member, true)) return member; + Util.checkIfInRange(Config.ALT_PARTY_RANGE2, target, member, true)) return member; } catch (Exception e) { @@ -530,7 +530,7 @@ List ToReward = new FastList(); for(L2PcInstance member : membersList) { - if (!Util.checkIfInRange(1400, target, member, true)) continue; + if (!Util.checkIfInRange(Config.ALT_PARTY_RANGE2, target, member, true)) continue; ToReward.add(member); }