diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulFees.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulFees.xml
index 67c94b9ac6..72e2896f13 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulFees.xml
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulFees.xml
@@ -1,51 +1,1348 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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oulOptions.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulOptions.xml
index 9fab220b84..75ee5f058d 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulOptions.xml
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulOptions.xml
@@ -673,6 +673,7 @@
+
@@ -693,6 +694,7 @@
+
@@ -713,4 +715,130 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulStones.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulStones.xml
index a9a2d7c856..f0ca5d2c4a 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulStones.xml
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/ensoul/ensoulStones.xml
@@ -1150,4 +1150,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/96900-96999.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/96900-96999.xml
index 4f3d81524b..0185dd14db 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/96900-96999.xml
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/items/96900-96999.xml
@@ -13,10 +13,12 @@
-
-
+
+
+
-
@@ -29,18 +31,22 @@
-
-
+
+
+
-
-
+
+
+
-
@@ -53,122 +59,152 @@
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
-
+
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
-
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/82200-82299.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/82200-82299.xml
index dd778d0821..6674188d9c 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/82200-82299.xml
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/82200-82299.xml
@@ -1,33 +1,311 @@
-
- icon.skill0000
- A1
+
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+
+ P
+
+
+
+ 10
+ 25
+ 40
+ 55
+ 70
+ 100
+ 120
+ 140
+ 160
+ 180
+ 210
+ 230
+ 250
+ 270
+ 290
+ 320
+ 340
+ 360
+ 380
+ 400
+
+ DIFF
+
+
+
+ 10
+ 25
+ 40
+ 55
+ 70
+ 100
+ 120
+ 140
+ 160
+ 180
+ 210
+ 230
+ 250
+ 270
+ 290
+ 320
+ 340
+ 360
+ 380
+ 400
+
+ DIFF
+
+
-
- icon.skill0000
- A1
-
-
-
- icon.skill0000
- A1
+
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+
+ P
+
+
+
+ 10
+ 25
+ 40
+ 55
+ 70
+ 100
+ 120
+ 140
+ 160
+ 180
+ 210
+ 230
+ 250
+ 270
+ 290
+ 320
+ 340
+ 360
+ 380
+ 400
+
+ DIFF
+
+
+
+ 10
+ 25
+ 40
+ 55
+ 70
+ 100
+ 120
+ 140
+ 160
+ 180
+ 210
+ 230
+ 250
+ 270
+ 290
+ 320
+ 340
+ 360
+ 380
+ 400
+
+ DIFF
+
+
-
- icon.skill0000
- A1
-
-
-
- icon.skill0000
- A1
+
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+
+ P
+
+
+
+ 10
+ 25
+ 40
+ 55
+ 70
+ 100
+ 120
+ 140
+ 160
+ 180
+ 210
+ 230
+ 250
+ 270
+ 290
+ 320
+ 340
+ 360
+ 380
+ 400
+
+ DIFF
+
+
+
+ 10
+ 25
+ 40
+ 55
+ 70
+ 100
+ 120
+ 140
+ 160
+ 180
+ 210
+ 230
+ 250
+ 270
+ 290
+ 320
+ 340
+ 360
+ 380
+ 400
+
+ DIFF
+
+
-
- icon.skill0000
- A1
+
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i01
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i02
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i03
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+ icon.aden_rune_am_i04
+
+ P
+
+
+
+ 18
+ 45
+ 72
+ 99
+ 126
+ 180
+ 216
+ 252
+ 288
+ 324
+ 378
+ 414
+ 450
+ 486
+ 522
+ 576
+ 612
+ 648
+ 684
+ 720
+
+ DIFF
+
+
+
+ 18
+ 45
+ 72
+ 99
+ 126
+ 180
+ 216
+ 252
+ 288
+ 324
+ 378
+ 414
+ 450
+ 486
+ 522
+ 576
+ 612
+ 648
+ 684
+ 720
+
+ DIFF
+
+
-
+
\ No newline at end of file
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/xsd/ensoulFees.xsd b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/xsd/ensoulFees.xsd
index 85f0c4caeb..15c8d0286a 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/xsd/ensoulFees.xsd
+++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/xsd/ensoulFees.xsd
@@ -6,22 +6,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -36,7 +20,7 @@
-
+
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/data/xml/EnsoulData.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/data/xml/EnsoulData.java
index 39125a9872..e991407326 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/data/xml/EnsoulData.java
+++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/data/xml/EnsoulData.java
@@ -32,7 +32,6 @@ import org.l2jmobius.gameserver.model.ensoul.EnsoulFee;
import org.l2jmobius.gameserver.model.ensoul.EnsoulOption;
import org.l2jmobius.gameserver.model.ensoul.EnsoulStone;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
-import org.l2jmobius.gameserver.model.item.type.CrystalType;
/**
* @author UnAfraid
@@ -40,7 +39,7 @@ import org.l2jmobius.gameserver.model.item.type.CrystalType;
public class EnsoulData implements IXmlReader
{
private static final Logger LOGGER = Logger.getLogger(EnsoulData.class.getName());
- private final Map _ensoulFees = new ConcurrentHashMap<>();
+ private final Map _ensoulFees = new ConcurrentHashMap<>();
private final Map _ensoulOptions = new ConcurrentHashMap<>();
private final Map _ensoulStones = new ConcurrentHashMap<>();
@@ -86,8 +85,8 @@ public class EnsoulData implements IXmlReader
private void parseFees(Node ensoulNode)
{
- final CrystalType type = parseEnum(ensoulNode.getAttributes(), CrystalType.class, "crystalType");
- final EnsoulFee fee = new EnsoulFee(type);
+ final Integer stoneId = parseInteger(ensoulNode.getAttributes(), "stoneId");
+ final EnsoulFee fee = new EnsoulFee(stoneId);
forEach(ensoulNode, IXmlReader::isNode, feeNode ->
{
switch (feeNode.getNodeName())
@@ -137,7 +136,7 @@ public class EnsoulData implements IXmlReader
final int id = parseInteger(attrs, "itemId");
final int count = parseInteger(attrs, "count");
fee.setEnsoul(index, new ItemHolder(id, count));
- _ensoulFees.put(fee.getCrystalType(), fee);
+ _ensoulFees.put(fee.getStoneId(), fee);
}
private void parseReFee(Node ensoulNode, EnsoulFee fee, int index)
@@ -178,21 +177,21 @@ public class EnsoulData implements IXmlReader
_ensoulStones.put(stone.getId(), stone);
}
- public ItemHolder getEnsoulFee(CrystalType type, int index)
+ public ItemHolder getEnsoulFee(int stoneId, int index)
{
- final EnsoulFee fee = _ensoulFees.get(type);
+ final EnsoulFee fee = _ensoulFees.get(stoneId);
return fee != null ? fee.getEnsoul(index) : null;
}
- public ItemHolder getResoulFee(CrystalType type, int index)
+ public ItemHolder getResoulFee(int stoneId, int index)
{
- final EnsoulFee fee = _ensoulFees.get(type);
+ final EnsoulFee fee = _ensoulFees.get(stoneId);
return fee != null ? fee.getResoul(index) : null;
}
- public Collection getRemovalFee(CrystalType type)
+ public Collection getRemovalFee(int stoneId)
{
- final EnsoulFee fee = _ensoulFees.get(type);
+ final EnsoulFee fee = _ensoulFees.get(stoneId);
return fee != null ? fee.getRemovalFee() : Collections.emptyList();
}
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/ensoul/EnsoulFee.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/ensoul/EnsoulFee.java
index f670bb4c34..834422d5f0 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/ensoul/EnsoulFee.java
+++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/ensoul/EnsoulFee.java
@@ -20,27 +20,26 @@ import java.util.ArrayList;
import java.util.List;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
-import org.l2jmobius.gameserver.model.item.type.CrystalType;
/**
* @author UnAfraid
*/
public class EnsoulFee
{
- private final CrystalType _type;
+ private final Integer _stoneId;
private final ItemHolder[] _ensoulFee = new ItemHolder[3];
private final ItemHolder[] _resoulFees = new ItemHolder[3];
private final List _removalFee = new ArrayList<>();
- public EnsoulFee(CrystalType type)
+ public EnsoulFee(Integer stoneId)
{
- _type = type;
+ _stoneId = stoneId;
}
- public CrystalType getCrystalType()
+ public Integer getStoneId()
{
- return _type;
+ return _stoneId;
}
public void setEnsoul(int index, ItemHolder item)
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestItemEnsoul.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestItemEnsoul.java
index ade73c1233..76bc5be745 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestItemEnsoul.java
+++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestItemEnsoul.java
@@ -181,19 +181,19 @@ public class RequestItemEnsoul implements IClientIncomingPacket
if (itemOption.getType() == 1)
{
// Normal Soul Crystal
- fee = EnsoulData.getInstance().getEnsoulFee(item.getTemplate().getCrystalType(), position);
+ fee = EnsoulData.getInstance().getEnsoulFee(stone.getId(), position);
if (((itemOption.getPosition() == 1) || (itemOption.getPosition() == 2)) && (item.getSpecialAbility(position) != null))
{
- fee = EnsoulData.getInstance().getResoulFee(item.getTemplate().getCrystalType(), position);
+ fee = EnsoulData.getInstance().getResoulFee(stone.getId(), position);
}
}
else if (itemOption.getType() == 2)
{
// Mystic Soul Crystal
- fee = EnsoulData.getInstance().getEnsoulFee(item.getTemplate().getCrystalType(), position + 2); // Client Special type position = 0
+ fee = EnsoulData.getInstance().getEnsoulFee(stone.getId(), position + 2); // Client Special type position = 0
if ((itemOption.getPosition() == 1) && (item.getAdditionalSpecialAbility(position) != null))
{
- fee = EnsoulData.getInstance().getResoulFee(item.getTemplate().getCrystalType(), position + 2); // Client Special type position = 0
+ fee = EnsoulData.getInstance().getResoulFee(stone.getId(), position + 2); // Client Special type position = 0
}
}
else
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestTryEnSoulExtraction.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestTryEnSoulExtraction.java
index e2576dd23d..fc3451d543 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestTryEnSoulExtraction.java
+++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/network/clientpackets/ensoul/RequestTryEnSoulExtraction.java
@@ -85,8 +85,8 @@ public class RequestTryEnSoulExtraction implements IClientIncomingPacket
{
return;
}
-
- final Collection removalFee = EnsoulData.getInstance().getRemovalFee(item.getTemplate().getCrystalType());
+ final int runeId = EnsoulData.getInstance().getStone(_type, option.getId());
+ final Collection removalFee = EnsoulData.getInstance().getRemovalFee(runeId);
if (removalFee.isEmpty())
{
return;
@@ -115,7 +115,6 @@ public class RequestTryEnSoulExtraction implements IClientIncomingPacket
iu.addModifiedItem(item);
// Add rune in player inventory.
- final int runeId = EnsoulData.getInstance().getStone(_type, option.getId());
if (runeId > 0)
{
iu.addItem(player.addItem("Rune Extract", runeId, 1, player, true));