diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/handlers/itemhandlers/PaulinasSupportBox.java b/L2J_Mobius_Helios/dist/game/data/scripts/handlers/itemhandlers/PaulinasSupportBox.java index 6cad0b227f..b67ca1f63f 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/handlers/itemhandlers/PaulinasSupportBox.java +++ b/L2J_Mobius_Helios/dist/game/data/scripts/handlers/itemhandlers/PaulinasSupportBox.java @@ -37,6 +37,7 @@ public class PaulinasSupportBox implements IItemHandler private static final int BOX_C_GRADE = 46850; private static final int BOX_A_GRADE = 46851; private static final int BOX_S_GRADE = 46852; + private static final int BOX_R_GRADE = 46919; // Rewards private static final int BOX_D_HEAVY = 46837; private static final int BOX_D_LIGHT = 46838; @@ -50,6 +51,9 @@ public class PaulinasSupportBox implements IItemHandler private static final int BOX_S_HEAVY = 46846; private static final int BOX_S_LIGHT = 46847; private static final int BOX_S_ROBE = 46848; + private static final int BOX_R_HEAVY = 46924; + private static final int BOX_R_LIGHT = 46925; + private static final int BOX_R_ROBE = 46926; @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) @@ -284,6 +288,61 @@ public class PaulinasSupportBox implements IItemHandler } break; } + case BOX_R_GRADE: + { + switch (race) + { + case HUMAN: + case ELF: + case DARK_ELF: + case DWARF: + { + if (player.isMageClass()) + { + player.addItem(getClass().getSimpleName(), BOX_R_ROBE, 1, player, true); + } + else if (CategoryData.getInstance().isInCategory(CategoryType.OTHELL_GROUP, classId.getId()) || CategoryData.getInstance().isInCategory(CategoryType.YUL_GROUP, classId.getId())) + { + player.addItem(getClass().getSimpleName(), BOX_R_LIGHT, 1, player, true); + } + else + { + player.addItem(getClass().getSimpleName(), BOX_R_HEAVY, 1, player, true); + } + break; + } + case ORC: + { + if (player.isMageClass()) + { + player.addItem(getClass().getSimpleName(), BOX_R_LIGHT, 1, player, true); + } + else + { + player.addItem(getClass().getSimpleName(), BOX_R_HEAVY, 1, player, true); + } + break; + } + case KAMAEL: + { + player.addItem(getClass().getSimpleName(), BOX_R_LIGHT, 1, player, true); + break; + } + case ERTHEIA: + { + if (player.isMageClass()) + { + player.addItem(getClass().getSimpleName(), BOX_R_ROBE, 1, player, true); + } + else + { + player.addItem(getClass().getSimpleName(), BOX_R_LIGHT, 1, player, true); + } + break; + } + } + break; + } } return true; } diff --git a/L2J_Mobius_Helios/dist/game/data/stats/items/46800-46899.xml b/L2J_Mobius_Helios/dist/game/data/stats/items/46800-46899.xml index 57cb10160b..c09e8e737b 100644 --- a/L2J_Mobius_Helios/dist/game/data/stats/items/46800-46899.xml +++ b/L2J_Mobius_Helios/dist/game/data/stats/items/46800-46899.xml @@ -1261,7 +1261,9 @@ - + + + @@ -1276,7 +1278,9 @@ - + + + @@ -1291,7 +1295,9 @@ - + + + @@ -1305,6 +1311,9 @@ + + + diff --git a/L2J_Mobius_Helios/dist/game/data/stats/items/46900-46999.xml b/L2J_Mobius_Helios/dist/game/data/stats/items/46900-46999.xml index b7848aa264..e704bd88a2 100644 --- a/L2J_Mobius_Helios/dist/game/data/stats/items/46900-46999.xml +++ b/L2J_Mobius_Helios/dist/game/data/stats/items/46900-46999.xml @@ -345,14 +345,16 @@ - - + + + + - + @@ -432,32 +434,83 @@ - - + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + +