From 20b3ccd9f4eebe4f7f10b1fc71583d3e76509b87 Mon Sep 17 00:00:00 2001
From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Sun, 17 May 2015 14:39:16 +0000
Subject: [PATCH] R Grade Lifestones support. Contributed by GMeXiD.
---
.../game/data/stats/items/16100-16199.xml | 15 ++++---
.../game/data/stats/items/18500-18599.xml | 45 +++++++++++++++++++
.../game/data/stats/items/22600-22699.xml | 40 +++++++++++++++++
.../clientpackets/AbstractRefinePacket.java | 44 +++++++++++++++---
4 files changed, 133 insertions(+), 11 deletions(-)
diff --git a/trunk/dist/game/data/stats/items/16100-16199.xml b/trunk/dist/game/data/stats/items/16100-16199.xml
index 3afb0779fe..4e76459021 100644
--- a/trunk/dist/game/data/stats/items/16100-16199.xml
+++ b/trunk/dist/game/data/stats/items/16100-16199.xml
@@ -1184,6 +1184,7 @@
+
@@ -1195,6 +1196,7 @@
+
@@ -1218,6 +1220,7 @@
+
@@ -1231,7 +1234,7 @@
-
+
-
@@ -1243,7 +1246,7 @@
-
+
-
@@ -1255,7 +1258,7 @@
-
+
-
@@ -1266,7 +1269,7 @@
-
+
-
@@ -1450,6 +1453,7 @@
+
@@ -1461,8 +1465,9 @@
+
-
+
-
diff --git a/trunk/dist/game/data/stats/items/18500-18599.xml b/trunk/dist/game/data/stats/items/18500-18599.xml
index 1c11a1e007..bdd905e912 100644
--- a/trunk/dist/game/data/stats/items/18500-18599.xml
+++ b/trunk/dist/game/data/stats/items/18500-18599.xml
@@ -383,6 +383,9 @@
+
+
+
-
@@ -391,6 +394,9 @@
+
+
+
-
@@ -399,6 +405,9 @@
+
+
+
-
@@ -407,6 +416,9 @@
+
+
+
-
@@ -414,6 +426,9 @@
+
+
+
-
@@ -422,6 +437,9 @@
+
+
+
-
@@ -430,6 +448,9 @@
+
+
+
-
@@ -438,6 +459,9 @@
+
+
+
-
@@ -446,6 +470,9 @@
+
+
+
-
@@ -453,6 +480,9 @@
+
+
+
-
@@ -461,6 +491,9 @@
+
+
+
-
@@ -469,6 +502,9 @@
+
+
+
-
@@ -477,6 +513,9 @@
+
+
+
-
@@ -485,6 +524,9 @@
+
+
+
-
@@ -492,6 +534,9 @@
+
+
+
-
diff --git a/trunk/dist/game/data/stats/items/22600-22699.xml b/trunk/dist/game/data/stats/items/22600-22699.xml
index 7dfdca7b74..f87e78eca2 100644
--- a/trunk/dist/game/data/stats/items/22600-22699.xml
+++ b/trunk/dist/game/data/stats/items/22600-22699.xml
@@ -168,32 +168,72 @@
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
diff --git a/trunk/java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java b/trunk/java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java
index 47fc29e9fe..ff560e6c45 100644
--- a/trunk/java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java
+++ b/trunk/java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java
@@ -46,6 +46,7 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
protected static final int GEMSTONE_D = 2130;
protected static final int GEMSTONE_C = 2131;
protected static final int GEMSTONE_B = 2132;
+ protected static final int GEMSTONE_A = 2133;
private static final Map _lifeStones = new HashMap<>();
@@ -67,7 +68,10 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
80,
82,
84,
- 85
+ 85,
+ 86,
+ 95,
+ 99
};
private final int _grade;
private final int _level;
@@ -191,11 +195,23 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
_lifeStones.put(16163, new LifeStone(GRADE_TOP, 13));
_lifeStones.put(16177, new LifeStone(GRADE_ACC, 13));
- _lifeStones.put(16164, new LifeStone(GRADE_NONE, 13));
- _lifeStones.put(16165, new LifeStone(GRADE_MID, 13));
- _lifeStones.put(16166, new LifeStone(GRADE_HIGH, 13));
- _lifeStones.put(16167, new LifeStone(GRADE_TOP, 13));
- _lifeStones.put(16178, new LifeStone(GRADE_ACC, 13));
+ _lifeStones.put(16164, new LifeStone(GRADE_NONE, 14));
+ _lifeStones.put(16165, new LifeStone(GRADE_MID, 14));
+ _lifeStones.put(16166, new LifeStone(GRADE_HIGH, 14));
+ _lifeStones.put(16167, new LifeStone(GRADE_TOP, 14));
+ _lifeStones.put(16178, new LifeStone(GRADE_ACC, 14));
+
+ _lifeStones.put(18564, new LifeStone(GRADE_MID, 15));
+ _lifeStones.put(18565, new LifeStone(GRADE_HIGH, 15));
+ _lifeStones.put(18566, new LifeStone(GRADE_TOP, 15));
+
+ _lifeStones.put(22629, new LifeStone(GRADE_MID, 16));
+ _lifeStones.put(22630, new LifeStone(GRADE_HIGH, 16));
+ _lifeStones.put(22631, new LifeStone(GRADE_TOP, 16));
+
+ _lifeStones.put(22632, new LifeStone(GRADE_MID, 17));
+ _lifeStones.put(22633, new LifeStone(GRADE_HIGH, 17));
+ _lifeStones.put(22634, new LifeStone(GRADE_TOP, 17));
}
protected static final LifeStone getLifeStone(int itemId)
@@ -460,6 +476,10 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
case S80:
case S84:
return GEMSTONE_B;
+ case R:
+ case R95:
+ case R99:
+ return GEMSTONE_A;
default:
return 0;
}
@@ -490,6 +510,12 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
return 360;
case S84:
return 480;
+ case R:
+ return 540;
+ case R95:
+ return 620;
+ case R99:
+ return 700;
default:
return 0;
}
@@ -507,6 +533,12 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
case S80:
case S84:
return 36;
+ case R:
+ return 55;
+ case R95:
+ return 70;
+ case R99:
+ return 95;
default:
return 0;
}