From 84210307f1bef2d23d1890e3050e9f7a9ab962fb Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 1 Jul 2021 23:30:03 +0000 Subject: [PATCH] Addition of Dragon Slayer event. Contributed by CostyKiller. --- .../dist/game/data/EnchantItemData.xml | 12 +- .../dist/game/data/multisell/344190001.xml | 14 ++ .../scripts/events/DragonSlayer/34419-1.htm | 7 + .../scripts/events/DragonSlayer/34419-2.htm | 24 +++ .../DragonSlayer/34419-rewardnosword.htm | 6 + .../events/DragonSlayer/34419-rewardok.htm | 4 + .../scripts/events/DragonSlayer/34419.htm | 9 + .../events/DragonSlayer/DragonSlayer.java | 185 ++++++++++++++++++ .../scripts/events/DragonSlayer/config.xml | 23 +++ .../game/data/stats/items/48400-48499.xml | 5 +- .../game/data/stats/items/48500-48599.xml | 52 ++++- .../game/data/stats/items/81700-81799.xml | 8 + .../game/data/stats/skills/39700-39799.xml | 59 +++++- .../dist/game/data/EnchantItemData.xml | 12 +- .../dist/game/data/multisell/344190001.xml | 14 ++ .../scripts/events/DragonSlayer/34419-1.htm | 7 + .../scripts/events/DragonSlayer/34419-2.htm | 24 +++ .../DragonSlayer/34419-rewardnosword.htm | 6 + .../events/DragonSlayer/34419-rewardok.htm | 4 + .../scripts/events/DragonSlayer/34419.htm | 9 + .../events/DragonSlayer/DragonSlayer.java | 185 ++++++++++++++++++ .../scripts/events/DragonSlayer/config.xml | 23 +++ .../game/data/stats/items/48400-48499.xml | 5 +- .../game/data/stats/items/48500-48599.xml | 52 ++++- .../game/data/stats/items/81700-81799.xml | 8 + .../game/data/stats/skills/39700-39799.xml | 59 +++++- 26 files changed, 804 insertions(+), 12 deletions(-) create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/344190001.xml create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-1.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-2.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/config.xml create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/multisell/344190001.xml create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-1.htm create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-2.htm create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419.htm create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java create mode 100644 L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/config.xml diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/EnchantItemData.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/EnchantItemData.xml index e7288fa109..6527481f7f 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/EnchantItemData.xml +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/EnchantItemData.xml @@ -4,7 +4,17 @@ - + + + + + + + + + + + diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/344190001.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/344190001.xml new file mode 100644 index 0000000000..8025c83eee --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/344190001.xml @@ -0,0 +1,14 @@ + + + + 34419 + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-1.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-1.htm new file mode 100644 index 0000000000..250351ff98 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-1.htm @@ -0,0 +1,7 @@ +Dragon Slayer Luna:
+Mysterious Dragon Slayer is a very special weapon. It is imbued with energy that was first discovered in the Dragon Valley. This energy is lethal for monsters that live there.
+The weapon can be enchanted with Scroll:Enchant Mysterious Weapon created from dragon relics. This is the only way to reach the weapon's true potential.
+Don't you want to have this power of ancient dragons? As I've said, you won't be able to get it without luck. Give it a try! And if you are successful, I'll give you a nice reward.
+Don't forget, the weapon can only be enchanted with Scroll:Enchant Mysterious Weapon. No other item will do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-2.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-2.htm new file mode 100644 index 0000000000..60a850689d --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-2.htm @@ -0,0 +1,24 @@ +Dragon Slayer Luna:
+You'd like to know what reward you will get for the enchanted Mysterious Dragon Slayer, wouldn't you? Nothing's easier! See for yourself, and if you notice something you like, don't waste time.
++7 - Woundrous Shard (2 pcs.) ++8 - Elcyum ++9 - Shillien's Soul Crystal Box ++10 - Artifact Crystal (2 pcs.) ++11 - Royal Black Save Ticket + ++12 - Shiny Jewel Energy ++13 - Scroll: Enchant Ancient Cloak ++14 - Greater Zodiac Agathion's Book of Growth ++15 - Shining Energy of Protection ++16 - Dragon Weapon Augmenting Stone ++17 - Stable Scroll: Enchant Legendary Cloak ++18 - Greater Zodiac Agathion Cube + ++19 - Sayha's Talisman Pack Lv. 10 ++20 - Ultimate Luxurious Jewelry Pack Lv. 5 ++21 - Mid-grade Dragon Weapon Pack ++22 - High-grade Dragon Weapon Pack ++23 - Top-grade Dragon Weapon Pack + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm new file mode 100644 index 0000000000..c752545edb --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm @@ -0,0 +1,6 @@ +Dragon Slayer Luna:
+I can't find any mysterious Dragon Slayers here!
+If you want to receive the reward, equip the mysterious Dragon Slayer enchanted to +7 or above and show me.
+If you have a Dragon Slayer enchanted to +7 or above, hold it in your hands and talk to me again.
+ + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm new file mode 100644 index 0000000000..8945bb7d98 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm @@ -0,0 +1,4 @@ +Dragon Slayer Luna:
+Congratulations on beginning your enchants.
+It looks like luck is beginning to favor you. Don't be afraid to challenge yourself, my child. Well done! + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419.htm new file mode 100644 index 0000000000..e5427626b3 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/34419.htm @@ -0,0 +1,9 @@ +Dragon Slayer Luna:
+Well, are you ready to test your luck?
+I'm talking about enchanting Mysterious Dragon Slayer. You won't be able to do it without a bit of luck, that's for sure. So you have a great opportunity to see if you are lucky or not!
+If you manage to enchant Mysterious Dragon Slayer for +7 or higher, I will give you something rare.
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java new file mode 100644 index 0000000000..53164fd548 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java @@ -0,0 +1,185 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package events.DragonSlayer; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.holders.ItemHolder; +import org.l2jmobius.gameserver.model.itemcontainer.Inventory; +import org.l2jmobius.gameserver.model.quest.LongTimeEvent; + +/** + * Dragon Slayer event AI. + * @author CostyKiller + */ +public class DragonSlayer extends LongTimeEvent +{ + // NPC + private static final int LUNA = 34419; + // Items + private static final int MYSTERIOUS_DRAGON_SLAYER = 48494; + private static final ItemHolder REWARD_7_ID_AND_QTY = new ItemHolder(29759, 2); // Wondrous Shard + private static final ItemHolder REWARD_8_ID_AND_QTY = new ItemHolder(36515, 1); // Elcyum + private static final ItemHolder REWARD_9_ID_AND_QTY = new ItemHolder(48910, 1); // Shillien's Soul Crystal Box + private static final ItemHolder REWARD_10_ID_AND_QTY = new ItemHolder(80636, 2); // Artifact Crystal + private static final ItemHolder REWARD_11_ID_AND_QTY = new ItemHolder(80449, 1); // Royal Black Save Ticket + private static final ItemHolder REWARD_12_ID_AND_QTY = new ItemHolder(29469, 1); // Shiny Jewel Energy + private static final ItemHolder REWARD_13_ID_AND_QTY = new ItemHolder(28595, 1); // Scroll: Enchant Ancient Cloak + private static final ItemHolder REWARD_14_ID_AND_QTY = new ItemHolder(80932, 1); // Greater Zodiac Agathion's Book of Growth + private static final ItemHolder REWARD_15_ID_AND_QTY = new ItemHolder(81770, 1); // Shining Energy of Protection + private static final ItemHolder REWARD_16_ID_AND_QTY = new ItemHolder(81135, 1); // Dragon Weapon Augmenting Stone + private static final ItemHolder REWARD_17_ID_AND_QTY = new ItemHolder(28766, 1); // Stable Scroll: Enchant Legendary Cloak + private static final ItemHolder REWARD_18_ID_AND_QTY = new ItemHolder(80931, 1); // Greater Zodiac Agathion Cube + private static final ItemHolder REWARD_19_ID_AND_QTY = new ItemHolder(47821, 1); // Sayha's Talisman Pack Lv. 10 + private static final ItemHolder REWARD_20_ID_AND_QTY = new ItemHolder(48839, 1); // Ultimate Luxurious Jewelry Box Lv. 5 + private static final ItemHolder REWARD_21_ID_AND_QTY = new ItemHolder(48667, 1); // Mid-grade Dragon Weapon Pack + private static final ItemHolder REWARD_22_ID_AND_QTY = new ItemHolder(80663, 1); // High-grade Dragon Weapon Pack + private static final ItemHolder REWARD_23_ID_AND_QTY = new ItemHolder(29907, 1); // Top-grade Dragon Weapon Pack + + private DragonSlayer() + { + addStartNpc(LUNA); + addFirstTalkId(LUNA); + addTalkId(LUNA); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = event; + if (event.equals("receive_reward")) + { + if ((getItemEquipped(player, Inventory.PAPERDOLL_RHAND) == MYSTERIOUS_DRAGON_SLAYER) && (getEnchantLevel(player, MYSTERIOUS_DRAGON_SLAYER) > 6)) + { + takeItems(player, MYSTERIOUS_DRAGON_SLAYER, 1); + switch (getEnchantLevel(player, MYSTERIOUS_DRAGON_SLAYER)) + { + case 7: + { + giveItems(player, REWARD_7_ID_AND_QTY); + break; + } + case 8: + { + giveItems(player, REWARD_8_ID_AND_QTY); + break; + } + case 9: + { + giveItems(player, REWARD_9_ID_AND_QTY); + break; + } + case 10: + { + giveItems(player, REWARD_10_ID_AND_QTY); + break; + } + case 11: + { + giveItems(player, REWARD_11_ID_AND_QTY); + break; + } + case 12: + { + giveItems(player, REWARD_12_ID_AND_QTY); + break; + } + case 13: + { + giveItems(player, REWARD_13_ID_AND_QTY); + break; + } + case 14: + { + giveItems(player, REWARD_14_ID_AND_QTY); + break; + } + case 15: + { + giveItems(player, REWARD_15_ID_AND_QTY); + break; + } + case 16: + { + giveItems(player, REWARD_16_ID_AND_QTY); + break; + } + case 17: + { + giveItems(player, REWARD_17_ID_AND_QTY); + break; + } + case 18: + { + giveItems(player, REWARD_18_ID_AND_QTY); + break; + } + case 19: + { + giveItems(player, REWARD_19_ID_AND_QTY); + break; + } + case 20: + { + giveItems(player, REWARD_20_ID_AND_QTY); + break; + } + case 21: + { + giveItems(player, REWARD_21_ID_AND_QTY); + break; + } + case 22: + { + giveItems(player, REWARD_22_ID_AND_QTY); + break; + } + case 23: + { + giveItems(player, REWARD_23_ID_AND_QTY); + break; + } + default: + { + if (getEnchantLevel(player, MYSTERIOUS_DRAGON_SLAYER) > 23) + { + giveItems(player, REWARD_23_ID_AND_QTY); + } + break; + } + } + htmltext = "34419-rewardok.htm"; + } + else + { + htmltext = "34419-rewardnosword.htm"; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + return npc.getId() + ".htm"; + } + + public static void main(String[] args) + { + new DragonSlayer(); + } +} diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/config.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/config.xml new file mode 100644 index 0000000000..f6625d04d2 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/events/DragonSlayer/config.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48400-48499.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48400-48499.xml index 06bd5f9841..16ad82b9bc 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48400-48499.xml +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48400-48499.xml @@ -1335,7 +1335,7 @@
- + @@ -1345,7 +1345,8 @@ - + + 282 114 diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48500-48599.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48500-48599.xml index ea6402a199..e60efc0c37 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48500-48599.xml +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/48500-48599.xml @@ -3,10 +3,48 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -20,19 +58,31 @@ + + + + + + + + + + + + diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81700-81799.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81700-81799.xml index c03aad2dea..ec42c028b0 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81700-81799.xml +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/items/81700-81799.xml @@ -571,8 +571,16 @@ + + + + + + + + diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/skills/39700-39799.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/skills/39700-39799.xml index 41b118fb45..868c088874 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/skills/39700-39799.xml +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/stats/skills/39700-39799.xml @@ -39,8 +39,63 @@ - icon.skill0000 - A1 + icon.bm_royal_black_beer + A2 + 2 + 300000 + 500 + HONEY_BEER + 1 + 1800 + true + true + SELF + SINGLE + + + 3 + STR + + + 3 + CON + + + 3 + DEX + + + 3 + INT + + + 3 + WIT + + + 3 + MEN + + + 3 + LUC + + + 3 + CHA + + + 50 + + + 15 + PER + + + 15 + PER + + diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/EnchantItemData.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/EnchantItemData.xml index e7288fa109..6527481f7f 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/EnchantItemData.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/EnchantItemData.xml @@ -4,7 +4,17 @@ - + + + + + + + + + + + diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/multisell/344190001.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/multisell/344190001.xml new file mode 100644 index 0000000000..8025c83eee --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/multisell/344190001.xml @@ -0,0 +1,14 @@ + + + + 34419 + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-1.htm b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-1.htm new file mode 100644 index 0000000000..250351ff98 --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-1.htm @@ -0,0 +1,7 @@ +Dragon Slayer Luna:
+Mysterious Dragon Slayer is a very special weapon. It is imbued with energy that was first discovered in the Dragon Valley. This energy is lethal for monsters that live there.
+The weapon can be enchanted with Scroll:Enchant Mysterious Weapon created from dragon relics. This is the only way to reach the weapon's true potential.
+Don't you want to have this power of ancient dragons? As I've said, you won't be able to get it without luck. Give it a try! And if you are successful, I'll give you a nice reward.
+Don't forget, the weapon can only be enchanted with Scroll:Enchant Mysterious Weapon. No other item will do.
+ + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-2.htm b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-2.htm new file mode 100644 index 0000000000..60a850689d --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-2.htm @@ -0,0 +1,24 @@ +Dragon Slayer Luna:
+You'd like to know what reward you will get for the enchanted Mysterious Dragon Slayer, wouldn't you? Nothing's easier! See for yourself, and if you notice something you like, don't waste time.
++7 - Woundrous Shard (2 pcs.) ++8 - Elcyum ++9 - Shillien's Soul Crystal Box ++10 - Artifact Crystal (2 pcs.) ++11 - Royal Black Save Ticket + ++12 - Shiny Jewel Energy ++13 - Scroll: Enchant Ancient Cloak ++14 - Greater Zodiac Agathion's Book of Growth ++15 - Shining Energy of Protection ++16 - Dragon Weapon Augmenting Stone ++17 - Stable Scroll: Enchant Legendary Cloak ++18 - Greater Zodiac Agathion Cube + ++19 - Sayha's Talisman Pack Lv. 10 ++20 - Ultimate Luxurious Jewelry Pack Lv. 5 ++21 - Mid-grade Dragon Weapon Pack ++22 - High-grade Dragon Weapon Pack ++23 - Top-grade Dragon Weapon Pack + + + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm new file mode 100644 index 0000000000..c752545edb --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardnosword.htm @@ -0,0 +1,6 @@ +Dragon Slayer Luna:
+I can't find any mysterious Dragon Slayers here!
+If you want to receive the reward, equip the mysterious Dragon Slayer enchanted to +7 or above and show me.
+If you have a Dragon Slayer enchanted to +7 or above, hold it in your hands and talk to me again.
+ + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm new file mode 100644 index 0000000000..8945bb7d98 --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419-rewardok.htm @@ -0,0 +1,4 @@ +Dragon Slayer Luna:
+Congratulations on beginning your enchants.
+It looks like luck is beginning to favor you. Don't be afraid to challenge yourself, my child. Well done! + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419.htm b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419.htm new file mode 100644 index 0000000000..e5427626b3 --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/34419.htm @@ -0,0 +1,9 @@ +Dragon Slayer Luna:
+Well, are you ready to test your luck?
+I'm talking about enchanting Mysterious Dragon Slayer. You won't be able to do it without a bit of luck, that's for sure. So you have a great opportunity to see if you are lucky or not!
+If you manage to enchant Mysterious Dragon Slayer for +7 or higher, I will give you something rare.
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java new file mode 100644 index 0000000000..53164fd548 --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/DragonSlayer.java @@ -0,0 +1,185 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package events.DragonSlayer; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.holders.ItemHolder; +import org.l2jmobius.gameserver.model.itemcontainer.Inventory; +import org.l2jmobius.gameserver.model.quest.LongTimeEvent; + +/** + * Dragon Slayer event AI. + * @author CostyKiller + */ +public class DragonSlayer extends LongTimeEvent +{ + // NPC + private static final int LUNA = 34419; + // Items + private static final int MYSTERIOUS_DRAGON_SLAYER = 48494; + private static final ItemHolder REWARD_7_ID_AND_QTY = new ItemHolder(29759, 2); // Wondrous Shard + private static final ItemHolder REWARD_8_ID_AND_QTY = new ItemHolder(36515, 1); // Elcyum + private static final ItemHolder REWARD_9_ID_AND_QTY = new ItemHolder(48910, 1); // Shillien's Soul Crystal Box + private static final ItemHolder REWARD_10_ID_AND_QTY = new ItemHolder(80636, 2); // Artifact Crystal + private static final ItemHolder REWARD_11_ID_AND_QTY = new ItemHolder(80449, 1); // Royal Black Save Ticket + private static final ItemHolder REWARD_12_ID_AND_QTY = new ItemHolder(29469, 1); // Shiny Jewel Energy + private static final ItemHolder REWARD_13_ID_AND_QTY = new ItemHolder(28595, 1); // Scroll: Enchant Ancient Cloak + private static final ItemHolder REWARD_14_ID_AND_QTY = new ItemHolder(80932, 1); // Greater Zodiac Agathion's Book of Growth + private static final ItemHolder REWARD_15_ID_AND_QTY = new ItemHolder(81770, 1); // Shining Energy of Protection + private static final ItemHolder REWARD_16_ID_AND_QTY = new ItemHolder(81135, 1); // Dragon Weapon Augmenting Stone + private static final ItemHolder REWARD_17_ID_AND_QTY = new ItemHolder(28766, 1); // Stable Scroll: Enchant Legendary Cloak + private static final ItemHolder REWARD_18_ID_AND_QTY = new ItemHolder(80931, 1); // Greater Zodiac Agathion Cube + private static final ItemHolder REWARD_19_ID_AND_QTY = new ItemHolder(47821, 1); // Sayha's Talisman Pack Lv. 10 + private static final ItemHolder REWARD_20_ID_AND_QTY = new ItemHolder(48839, 1); // Ultimate Luxurious Jewelry Box Lv. 5 + private static final ItemHolder REWARD_21_ID_AND_QTY = new ItemHolder(48667, 1); // Mid-grade Dragon Weapon Pack + private static final ItemHolder REWARD_22_ID_AND_QTY = new ItemHolder(80663, 1); // High-grade Dragon Weapon Pack + private static final ItemHolder REWARD_23_ID_AND_QTY = new ItemHolder(29907, 1); // Top-grade Dragon Weapon Pack + + private DragonSlayer() + { + addStartNpc(LUNA); + addFirstTalkId(LUNA); + addTalkId(LUNA); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = event; + if (event.equals("receive_reward")) + { + if ((getItemEquipped(player, Inventory.PAPERDOLL_RHAND) == MYSTERIOUS_DRAGON_SLAYER) && (getEnchantLevel(player, MYSTERIOUS_DRAGON_SLAYER) > 6)) + { + takeItems(player, MYSTERIOUS_DRAGON_SLAYER, 1); + switch (getEnchantLevel(player, MYSTERIOUS_DRAGON_SLAYER)) + { + case 7: + { + giveItems(player, REWARD_7_ID_AND_QTY); + break; + } + case 8: + { + giveItems(player, REWARD_8_ID_AND_QTY); + break; + } + case 9: + { + giveItems(player, REWARD_9_ID_AND_QTY); + break; + } + case 10: + { + giveItems(player, REWARD_10_ID_AND_QTY); + break; + } + case 11: + { + giveItems(player, REWARD_11_ID_AND_QTY); + break; + } + case 12: + { + giveItems(player, REWARD_12_ID_AND_QTY); + break; + } + case 13: + { + giveItems(player, REWARD_13_ID_AND_QTY); + break; + } + case 14: + { + giveItems(player, REWARD_14_ID_AND_QTY); + break; + } + case 15: + { + giveItems(player, REWARD_15_ID_AND_QTY); + break; + } + case 16: + { + giveItems(player, REWARD_16_ID_AND_QTY); + break; + } + case 17: + { + giveItems(player, REWARD_17_ID_AND_QTY); + break; + } + case 18: + { + giveItems(player, REWARD_18_ID_AND_QTY); + break; + } + case 19: + { + giveItems(player, REWARD_19_ID_AND_QTY); + break; + } + case 20: + { + giveItems(player, REWARD_20_ID_AND_QTY); + break; + } + case 21: + { + giveItems(player, REWARD_21_ID_AND_QTY); + break; + } + case 22: + { + giveItems(player, REWARD_22_ID_AND_QTY); + break; + } + case 23: + { + giveItems(player, REWARD_23_ID_AND_QTY); + break; + } + default: + { + if (getEnchantLevel(player, MYSTERIOUS_DRAGON_SLAYER) > 23) + { + giveItems(player, REWARD_23_ID_AND_QTY); + } + break; + } + } + htmltext = "34419-rewardok.htm"; + } + else + { + htmltext = "34419-rewardnosword.htm"; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + return npc.getId() + ".htm"; + } + + public static void main(String[] args) + { + new DragonSlayer(); + } +} diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/config.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/config.xml new file mode 100644 index 0000000000..f6625d04d2 --- /dev/null +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/scripts/events/DragonSlayer/config.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48400-48499.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48400-48499.xml index 06bd5f9841..16ad82b9bc 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48400-48499.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48400-48499.xml @@ -1335,7 +1335,7 @@
- + @@ -1345,7 +1345,8 @@ - + + 282 114 diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48500-48599.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48500-48599.xml index ea6402a199..e60efc0c37 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48500-48599.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/48500-48599.xml @@ -3,10 +3,48 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -20,19 +58,31 @@ + + + + + + + + + + + + diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/81700-81799.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/81700-81799.xml index c03aad2dea..ec42c028b0 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/81700-81799.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/items/81700-81799.xml @@ -571,8 +571,16 @@ + + + + + + + + diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/39700-39799.xml b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/39700-39799.xml index 41b118fb45..868c088874 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/39700-39799.xml +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt_Ch2/dist/game/data/stats/skills/39700-39799.xml @@ -39,8 +39,63 @@ - icon.skill0000 - A1 + icon.bm_royal_black_beer + A2 + 2 + 300000 + 500 + HONEY_BEER + 1 + 1800 + true + true + SELF + SINGLE + + + 3 + STR + + + 3 + CON + + + 3 + DEX + + + 3 + INT + + + 3 + WIT + + + 3 + MEN + + + 3 + LUC + + + 3 + CHA + + + 50 + + + 15 + PER + + + 15 + PER + +