View difference between Paste ID: qcFRV2yw and bjL0vJtd
SHOW: | | - or go back to the newest paste.
1
### Eclipse Workspace Patch 1.0
2
#P aCis_gameserver
3
Index: java/net/sf/l2j/Config.java
4
===================================================================
5
--- java/net/sf/l2j/Config.java	(revision 130)
6
+++ java/net/sf/l2j/Config.java	(working copy)
7
@@ -600,6 +600,7 @@
8
 	
9
 	/** Buffs */
10
 	public static boolean STORE_SKILL_COOLTIME;
11
+	public static boolean EXPERTISE_PENALTY;
12
 	public static int BUFFS_MAX_AMOUNT;
13
 	
14
 	// --------------------------------------------------
15
@@ -1426,6 +1427,7 @@
16
 			
17
 			BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
18
 			STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
19
+			EXPERTISE_PENALTY = players.getProperty("ExpertisePenality", true);
20
 			
21
 			// server
22
 			ExProperties server = load(SERVER_FILE);
23
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
24
===================================================================
25
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 130)
26
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
27
@@ -1650,6 +1650,9 @@
28
 	 */
29
 	public void refreshExpertisePenalty()
30
 	{
31
+		if (!Config.EXPERTISE_PENALTY)
32
+			return;
33
+		
34
 		int armorPenalty = 0;
35
 		boolean weaponPenalty = false;
36
 		
37
Index: config/players.properties
38
===================================================================
39
--- config/players.properties	(revision 130)
40
+++ config/players.properties	(working copy)
41
@@ -214,11 +214,11 @@
42
 
43
 # Name color for those matching the above MasterAccess AccessLevel.
44
 # Default: 00CCFF (golden color)
45
 MasterNameColor = 00CCFF
46
 
47
 # Title color for those matching the above MasterAccess AccessLevel.
48
 # Default: 00CCFF (golden color)
49
 MasterTitleColor = 00CCFF
50
 
51
 # Enable GMs to have the glowing aura of a Hero character.
52
 GMHeroAura = True
53
@@ -308,4 +308,9 @@
54
 MaxBuffsAmount = 40
55
 
56
 # Store buffs/debuffs on user logout?
57
-StoreSkillCooltime = True
58
\ No newline at end of file
59
+StoreSkillCooltime = True
60
+
61
+# ExpertisePenality, to disable grade penalty
62
+# False: Players can use equip S grade at level 1.
63
+# True: Players can't use equip S grade at level 1.
64
+ExpertisePenality= False