From e94f763da3009e2a44e770da4a8f6e786cbb1a21 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 25 Nov 2019 18:58:50 +0000 Subject: [PATCH] Addition of Joachim AI. Contributed by NightBR. --- .../ai/areas/Aden/Joachim/34513-01.html | 5 ++ .../ai/areas/Aden/Joachim/34513-02.html | 4 ++ .../scripts/ai/areas/Aden/Joachim/34513.html | 6 ++ .../ai/areas/Aden/Joachim/Joachim.java | 69 +++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-01.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-02.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513.html create mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/Joachim.java diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-01.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-01.html new file mode 100644 index 0000000000..39287127aa --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-01.html @@ -0,0 +1,5 @@ +Herphah:
+A dual class lets you select another class besides your main class and to raise them to the same level.
+There are restrictions to what types of classes you can select, through. Do you want to see if you meet the conditions?.
+ + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-02.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-02.html new file mode 100644 index 0000000000..553d2ada36 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513-02.html @@ -0,0 +1,4 @@ +Herphah:
+You do not meet the conditions to add a dual class. Come back when you´re ready, or ask for something else.
+(you must complete the following quest to add a dual class: Reawekened Fate.)
+ \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513.html b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513.html new file mode 100644 index 0000000000..312e6620db --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/34513.html @@ -0,0 +1,6 @@ +Dual Class Master Joachim:
+Hello, I´m helping Herphah help adventures. My name is Joachim.
+Do you want to do something with dual classes? I can help you to a certain extend, but if you want to request something I can´t do, please talk to Dual Class Master Rama in Talking Island Village.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/Joachim.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/Joachim.java new file mode 100644 index 0000000000..9e2e403e04 --- /dev/null +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Aden/Joachim/Joachim.java @@ -0,0 +1,69 @@ +/* + * 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.Aden.Joachim; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; + +import ai.AbstractNpcAI; + +/** + * Aden Faction Npc AI + * @author NightBR + * @date 2019-11-25 + */ +public class Joachim extends AbstractNpcAI +{ + // NPC + private static final int Joachim = 34513; + + private Joachim() + { + addStartNpc(Joachim); + addTalkId(Joachim); + addFirstTalkId(Joachim); + } + + @Override + public String onAdvEvent(String event, Npc npc, PlayerInstance player) + { + switch (event) + { + case "34513-01.html": + case "34513-02.html": + case "34513-03.html": + { + return event; + } + default: + { + return null; + } + } + } + + @Override + public String onFirstTalk(Npc npc, PlayerInstance player) + { + return "34513.html"; + } + + public static void main(String[] args) + { + new Joachim(); + } +}