From de94da094a2707b8f6a20fa5c9a48e144ae211f7 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 23 Apr 2021 12:49:18 +0000 Subject: [PATCH] Addition of Lionel Hunter AI. Contributed by Sero. --- .../dist/game/data/html/default/33907-4.htm | 8 + .../dist/game/data/html/default/33907-6.htm | 9 + .../dist/game/data/html/default/33907.htm | 2 + .../dist/game/data/multisell/3390704.xml | 546 ++++++++++++++++++ .../dist/game/data/multisell/3390705.xml | 546 ++++++++++++++++++ .../dist/game/data/multisell/3390706.xml | 58 ++ .../areas/Heine/LionelHunter/33907-book1.htm | 3 + .../areas/Heine/LionelHunter/33907-book2.htm | 3 + .../areas/Heine/LionelHunter/33907-book3.htm | 3 + .../areas/Heine/LionelHunter/33907-book4.htm | 3 + .../areas/Heine/LionelHunter/33907-book5.htm | 3 + .../areas/Heine/LionelHunter/33907-book6.htm | 3 + .../LionelHunter/33907-not-compeleted.html | 3 + .../Heine/LionelHunter/LionelHunter.java | 173 ++++++ .../dist/game/data/html/default/33907-4.htm | 8 + .../dist/game/data/html/default/33907-6.htm | 9 + .../dist/game/data/html/default/33907.htm | 2 + .../dist/game/data/multisell/3390704.xml | 546 ++++++++++++++++++ .../dist/game/data/multisell/3390705.xml | 546 ++++++++++++++++++ .../dist/game/data/multisell/3390706.xml | 58 ++ .../areas/Heine/LionelHunter/33907-book1.htm | 3 + .../areas/Heine/LionelHunter/33907-book2.htm | 3 + .../areas/Heine/LionelHunter/33907-book3.htm | 3 + .../areas/Heine/LionelHunter/33907-book4.htm | 3 + .../areas/Heine/LionelHunter/33907-book5.htm | 3 + .../areas/Heine/LionelHunter/33907-book6.htm | 3 + .../LionelHunter/33907-not-compeleted.html | 3 + .../Heine/LionelHunter/LionelHunter.java | 173 ++++++ 28 files changed, 2726 insertions(+) create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-4.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-6.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390704.xml create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390705.xml create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390706.xml create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html create mode 100644 L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-4.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-6.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390704.xml create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390705.xml create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390706.xml create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html create mode 100644 L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-4.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-4.htm new file mode 100644 index 0000000000..246a3a2b2f --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-4.htm @@ -0,0 +1,8 @@ +Eva's Knight Lionel Hunter:
+You want to change the type of an Exalted equipment? Select the equipment you want.
+In order to change the type of an armor, you need to bring the
+helmet/top/bottom/gloves/boots/shield or sigil
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-6.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-6.htm new file mode 100644 index 0000000000..88822ca81b --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907-6.htm @@ -0,0 +1,9 @@ +Eva's Knight Lionel Hunter:
+May the Goddess of Water protect you.
+ + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907.htm index 5c1caebe2c..d9fb7aed2c 100644 --- a/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907.htm +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/html/default/33907.htm @@ -4,5 +4,7 @@ A tribe of the strongest monsters of the past, Krofin + + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390704.xml b/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390704.xml new file mode 100644 index 0000000000..50e44b8279 --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390704.xml @@ -0,0 +1,546 @@ + + + + 33907 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390705.xml b/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390705.xml new file mode 100644 index 0000000000..3548b227e5 --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390705.xml @@ -0,0 +1,546 @@ + + + + 33907 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390706.xml b/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390706.xml new file mode 100644 index 0000000000..bac95feb19 --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/multisell/3390706.xml @@ -0,0 +1,58 @@ + + + + 33907 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm new file mode 100644 index 0000000000..fe070e2a5d --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted One Who Faces The Limit). + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm new file mode 100644 index 0000000000..1abfa5493a --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted One Who Overcomes The Limit). + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm new file mode 100644 index 0000000000..2f6cad8e99 --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted One Who Shatters The Limit). + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm new file mode 100644 index 0000000000..03569fe68b --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted Reaching Another Level). + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm new file mode 100644 index 0000000000..ff266c3de0 --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted Guide To Power). + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm new file mode 100644 index 0000000000..a500c3a60c --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Obtaining New Power). + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html new file mode 100644 index 0000000000..dbe138ae1a --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You haven't complete the quest. + \ No newline at end of file diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java new file mode 100644 index 0000000000..4e9966e40a --- /dev/null +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java @@ -0,0 +1,173 @@ +/* + * 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 ai.areas.Heine.LionelHunter; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.quest.QuestState; + +import ai.AbstractNpcAI; +import quests.Q10507_ObtainingNewPower.Q10507_ObtainingNewPower; +import quests.Q10811_ExaltedOneWhoFacesTheLimit.Q10811_ExaltedOneWhoFacesTheLimit; +import quests.Q10817_ExaltedOneWhoOvercomesTheLimit.Q10817_ExaltedOneWhoOvercomesTheLimit; +import quests.Q10823_ExaltedOneWhoShattersTheLimit.Q10823_ExaltedOneWhoShattersTheLimit; +import quests.Q10873_ExaltedReachingAnotherLevel.Q10873_ExaltedReachingAnotherLevel; +import quests.Q10879_ExaltedGuideToPower.Q10879_ExaltedGuideToPower; + +/** + * Lionel Hunter Exchange AI. + * @Note TODO: Merge with default htmls. + * @author Sero + */ +public class LionelHunter extends AbstractNpcAI +{ + // NPC + private static final int LIONEL_HUNTER = 33907; + // Items + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED = 45922; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV2 = 45923; + private static final int SPELLBOOK_BELIEF_OF_THE_EXALTED = 45925; + private static final int SPELLBOOK_FAVOR_OF_THE_EXALTED = 45928; + private static final int OBTAIN_EXALTED_STATUS = 45638; + private static final int EXALTED_TIARA = 45644; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV3 = 45924; + private static final int BLESSING_OF_THE_EXALTED = 45926; + private static final int SUMMON_BATTLE_POTION = 45927; + private static final int FATE_OF_THE_EXALTED = 46036; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV4 = 47852; + private static final int VITALITY_OF_THE_EXALTED = 47854; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV5 = 47853; + private static final int VITALITY_OF_THE_EXALTED_LV2 = 47855; + private static final int DIGNITY_OF_THE_EXALTED_LV6 = 80970; + private static final int FAVOR_OF_THE_EXLATED = 45870; + + private LionelHunter() + { + addStartNpc(LIONEL_HUNTER); + addTalkId(LIONEL_HUNTER); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "33907-book1.htm": + { + final QuestState qs = player.getQuestState(Q10811_ExaltedOneWhoFacesTheLimit.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book2.htm": + { + final QuestState qs = player.getQuestState(Q10817_ExaltedOneWhoOvercomesTheLimit.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV2, 1); + giveItems(player, SPELLBOOK_BELIEF_OF_THE_EXALTED, 1); + giveItems(player, SPELLBOOK_FAVOR_OF_THE_EXALTED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book3.htm": + { + final QuestState qs = player.getQuestState(Q10823_ExaltedOneWhoShattersTheLimit.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, OBTAIN_EXALTED_STATUS, 1); + giveItems(player, EXALTED_TIARA, 1); + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV3, 1); + giveItems(player, BLESSING_OF_THE_EXALTED, 1); + giveItems(player, SUMMON_BATTLE_POTION, 1); + giveItems(player, FATE_OF_THE_EXALTED, 1); + giveItems(player, FAVOR_OF_THE_EXLATED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book4.htm": + { + final QuestState qs = player.getQuestState(Q10873_ExaltedReachingAnotherLevel.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV4, 1); + giveItems(player, VITALITY_OF_THE_EXALTED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book5.htm": + { + final QuestState qs = player.getQuestState(Q10879_ExaltedGuideToPower.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV5, 1); + giveItems(player, VITALITY_OF_THE_EXALTED_LV2, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book6.htm": + { + final QuestState qs = player.getQuestState(Q10507_ObtainingNewPower.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, DIGNITY_OF_THE_EXALTED_LV6, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + + } + } + return htmltext; + } + + public static void main(String[] args) + { + new LionelHunter(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-4.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-4.htm new file mode 100644 index 0000000000..246a3a2b2f --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-4.htm @@ -0,0 +1,8 @@ +Eva's Knight Lionel Hunter:
+You want to change the type of an Exalted equipment? Select the equipment you want.
+In order to change the type of an armor, you need to bring the
+helmet/top/bottom/gloves/boots/shield or sigil
+ + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-6.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-6.htm new file mode 100644 index 0000000000..88822ca81b --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907-6.htm @@ -0,0 +1,9 @@ +Eva's Knight Lionel Hunter:
+May the Goddess of Water protect you.
+ + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907.htm index 5c1caebe2c..d9fb7aed2c 100644 --- a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907.htm +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/html/default/33907.htm @@ -4,5 +4,7 @@ A tribe of the strongest monsters of the past, Krofin + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390704.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390704.xml new file mode 100644 index 0000000000..50e44b8279 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390704.xml @@ -0,0 +1,546 @@ + + + + 33907 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390705.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390705.xml new file mode 100644 index 0000000000..3548b227e5 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390705.xml @@ -0,0 +1,546 @@ + + + + 33907 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390706.xml b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390706.xml new file mode 100644 index 0000000000..bac95feb19 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/multisell/3390706.xml @@ -0,0 +1,58 @@ + + + + 33907 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm new file mode 100644 index 0000000000..fe070e2a5d --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book1.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted One Who Faces The Limit). + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm new file mode 100644 index 0000000000..1abfa5493a --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book2.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted One Who Overcomes The Limit). + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm new file mode 100644 index 0000000000..2f6cad8e99 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book3.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted One Who Shatters The Limit). + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm new file mode 100644 index 0000000000..03569fe68b --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book4.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted Reaching Another Level). + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm new file mode 100644 index 0000000000..ff266c3de0 --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book5.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Exalted Guide To Power). + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm new file mode 100644 index 0000000000..a500c3a60c --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-book6.htm @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You have received the missing books for the quest (Obtaining New Power). + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html new file mode 100644 index 0000000000..dbe138ae1a --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/33907-not-compeleted.html @@ -0,0 +1,3 @@ +Eva's Knight Lionel Hunter:
+You haven't complete the quest. + \ No newline at end of file diff --git a/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java new file mode 100644 index 0000000000..4e9966e40a --- /dev/null +++ b/L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Heine/LionelHunter/LionelHunter.java @@ -0,0 +1,173 @@ +/* + * 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 ai.areas.Heine.LionelHunter; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.model.quest.QuestState; + +import ai.AbstractNpcAI; +import quests.Q10507_ObtainingNewPower.Q10507_ObtainingNewPower; +import quests.Q10811_ExaltedOneWhoFacesTheLimit.Q10811_ExaltedOneWhoFacesTheLimit; +import quests.Q10817_ExaltedOneWhoOvercomesTheLimit.Q10817_ExaltedOneWhoOvercomesTheLimit; +import quests.Q10823_ExaltedOneWhoShattersTheLimit.Q10823_ExaltedOneWhoShattersTheLimit; +import quests.Q10873_ExaltedReachingAnotherLevel.Q10873_ExaltedReachingAnotherLevel; +import quests.Q10879_ExaltedGuideToPower.Q10879_ExaltedGuideToPower; + +/** + * Lionel Hunter Exchange AI. + * @Note TODO: Merge with default htmls. + * @author Sero + */ +public class LionelHunter extends AbstractNpcAI +{ + // NPC + private static final int LIONEL_HUNTER = 33907; + // Items + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED = 45922; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV2 = 45923; + private static final int SPELLBOOK_BELIEF_OF_THE_EXALTED = 45925; + private static final int SPELLBOOK_FAVOR_OF_THE_EXALTED = 45928; + private static final int OBTAIN_EXALTED_STATUS = 45638; + private static final int EXALTED_TIARA = 45644; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV3 = 45924; + private static final int BLESSING_OF_THE_EXALTED = 45926; + private static final int SUMMON_BATTLE_POTION = 45927; + private static final int FATE_OF_THE_EXALTED = 46036; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV4 = 47852; + private static final int VITALITY_OF_THE_EXALTED = 47854; + private static final int SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV5 = 47853; + private static final int VITALITY_OF_THE_EXALTED_LV2 = 47855; + private static final int DIGNITY_OF_THE_EXALTED_LV6 = 80970; + private static final int FAVOR_OF_THE_EXLATED = 45870; + + private LionelHunter() + { + addStartNpc(LIONEL_HUNTER); + addTalkId(LIONEL_HUNTER); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + String htmltext = null; + switch (event) + { + case "33907-book1.htm": + { + final QuestState qs = player.getQuestState(Q10811_ExaltedOneWhoFacesTheLimit.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book2.htm": + { + final QuestState qs = player.getQuestState(Q10817_ExaltedOneWhoOvercomesTheLimit.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV2, 1); + giveItems(player, SPELLBOOK_BELIEF_OF_THE_EXALTED, 1); + giveItems(player, SPELLBOOK_FAVOR_OF_THE_EXALTED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book3.htm": + { + final QuestState qs = player.getQuestState(Q10823_ExaltedOneWhoShattersTheLimit.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, OBTAIN_EXALTED_STATUS, 1); + giveItems(player, EXALTED_TIARA, 1); + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV3, 1); + giveItems(player, BLESSING_OF_THE_EXALTED, 1); + giveItems(player, SUMMON_BATTLE_POTION, 1); + giveItems(player, FATE_OF_THE_EXALTED, 1); + giveItems(player, FAVOR_OF_THE_EXLATED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book4.htm": + { + final QuestState qs = player.getQuestState(Q10873_ExaltedReachingAnotherLevel.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV4, 1); + giveItems(player, VITALITY_OF_THE_EXALTED, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book5.htm": + { + final QuestState qs = player.getQuestState(Q10879_ExaltedGuideToPower.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, SPELLBOOK_DIGNITY_OF_THE_EXALTED_LV5, 1); + giveItems(player, VITALITY_OF_THE_EXALTED_LV2, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + } + case "33907-book6.htm": + { + final QuestState qs = player.getQuestState(Q10507_ObtainingNewPower.class.getSimpleName()); + if ((qs != null) && qs.isCompleted()) + { + giveItems(player, DIGNITY_OF_THE_EXALTED_LV6, 1); + htmltext = event; + } + else + { + htmltext = "33907-not-compeleted.html"; + } + break; + + } + } + return htmltext; + } + + public static void main(String[] args) + { + new LionelHunter(); + } +} \ No newline at end of file