Explorar el Código

BETA: Default Freight slots are 200 in retail also forbidding players with effect hide to enter in observe mode

Rumen Nikiforov hace 14 años
padre
commit
d12c41063e

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/Config.java

@@ -1584,7 +1584,7 @@ public final class Config
 					WAREHOUSE_SLOTS_DWARF = Integer.parseInt(Character.getProperty("MaximumWarehouseSlotsForDwarf", "120"));
 					WAREHOUSE_SLOTS_NO_DWARF = Integer.parseInt(Character.getProperty("MaximumWarehouseSlotsForNoDwarf", "100"));
 					WAREHOUSE_SLOTS_CLAN = Integer.parseInt(Character.getProperty("MaximumWarehouseSlotsForClan", "150"));
-					ALT_FREIGHT_SLOTS = Integer.parseInt(Character.getProperty("MaximumFreightSlots", "20"));
+					ALT_FREIGHT_SLOTS = Integer.parseInt(Character.getProperty("MaximumFreightSlots", "200"));
 					ALT_FREIGHT_PRIECE = Integer.parseInt(Character.getProperty("FreightPriece", "1000"));
 					ENCHANT_CHANCE_WEAPON = Integer.parseInt(Character.getProperty("EnchantChanceWeapon", "66"));
 					ENCHANT_CHANCE_ARMOR = Integer.parseInt(Character.getProperty("EnchantChanceArmor", "66"));

+ 4 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -9923,6 +9923,8 @@ public final class L2PcInstance extends L2Playable
 		_lastY = getY();
 		_lastZ = getZ();
 		
+		stopEffects(L2EffectType.HIDE);
+		
 		_observerMode = true;
 		setTarget(null);
 		setIsParalyzed(true);
@@ -9948,6 +9950,8 @@ public final class L2PcInstance extends L2Playable
 		if (getPet() != null)
 			getPet().unSummon(this);
 		
+		stopEffects(L2EffectType.HIDE);
+		
 		if (!getCubics().isEmpty())
 		{
 			for (L2CubicInstance cubic : getCubics().values())

+ 2 - 2
L2J_Server_BETA/java/config/Character.properties

@@ -323,8 +323,8 @@ MaximumWarehouseSlotsForClan = 200
 
 # Freight
 # Maximum items that can be placed in Freight
-# Default: 20
-MaximumFreightSlots = 20
+# Default: 200
+MaximumFreightSlots = 200
 # The priece for each item that's deposited
 # Default: 1000
 FreightPriece = 1000