From 0cd0762502392bd067db2229ac181ab157158daf Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 7 Sep 2017 12:08:07 +0000 Subject: [PATCH] Zenya AI. Contributed by Stayway. --- .../ai/areas/ImperialTomb/Zenya/32140-1.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140-2.html | 4 + .../ai/areas/ImperialTomb/Zenya/32140-3.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140-4.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140.html | 8 ++ .../ai/areas/ImperialTomb/Zenya/Zenya.java | 78 +++++++++++++++++++ .../dist/game/data/stats/npcs/32100-32199.xml | 2 +- .../ai/areas/ImperialTomb/Zenya/32140-1.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140-2.html | 4 + .../ai/areas/ImperialTomb/Zenya/32140-3.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140-4.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140.html | 8 ++ .../ai/areas/ImperialTomb/Zenya/Zenya.java | 78 +++++++++++++++++++ .../dist/game/data/stats/npcs/32100-32199.xml | 2 +- .../ai/areas/ImperialTomb/Zenya/32140-1.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140-2.html | 4 + .../ai/areas/ImperialTomb/Zenya/32140-3.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140-4.html | 5 ++ .../ai/areas/ImperialTomb/Zenya/32140.html | 8 ++ .../ai/areas/ImperialTomb/Zenya/Zenya.java | 78 +++++++++++++++++++ .../dist/game/data/stats/npcs/32100-32199.xml | 2 +- 21 files changed, 318 insertions(+), 3 deletions(-) create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html create mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html create mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html create mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html new file mode 100644 index 0000000000..07c469baf5 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+Shilen created these monsters. They belong not to this world but the world of delusion. Shilen sent them to search for power for her ressurrection. They are stronger and more dangerous than regular monsters, but they are focused on their search, and won't attack you first. However, if they or their friends nearby are attacked, they will attack you in return. Beware!.
+One more thing. There are Succubus Disciples scattered around the Imperial Tomb. You have to be extra cautious around them.
+ + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html new file mode 100644 index 0000000000..3edc686eee --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+Succubus Disciples are in charge of the other monsters. They also give the other monsters power to keep their from in the world, and keep the power that other monsters collect from the relics. When you kill the Succubus Disciples you can sometimes obtain the power they have collected.
+ + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html new file mode 100644 index 0000000000..e54867d6c4 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+I'm sorry, but don't seem competent enough to fight the monsters in the inner parts of the Imperial Tomb. Come back when you are stronger, and I will send you.
+(You must be level 80 or above to start this quest.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html new file mode 100644 index 0000000000..c45635240a --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+In the Imperial Tomb, there are four Sepulchers. I think you need an Entrance Pass to get inside the sepulchers. The monsters collected these Entrance Passes while collecting the relics. If you need a Entrance Pass tothe Sepulchers, get a mission to collect Relics of the Empire. As you kill monsters for their Relics, you will run across Entrance Passes.
+If you want to know more about the four Sepulchers in detail, find the Nameless Spirit deep in the tomb.
+ + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html new file mode 100644 index 0000000000..9ee0362e2e --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html @@ -0,0 +1,8 @@ +Vice Hierarch Zenya:
+I am Kamael Vice Hierarch Zenya. Once, I helped train young Kamael warriors and saw them off on their travels. However, after the Kamael homeland was destroyed by Shilen, I left the town and became a wanderer.
+Please remember this: Shilen will bring destruction upon us. Her evil plots must be stopped at all costs.
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java new file mode 100644 index 0000000000..c661959202 --- /dev/null +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java @@ -0,0 +1,78 @@ +/* + * 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.ImperialTomb.Zenya; + +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; + +import ai.AbstractNpcAI; + +/** + * Zenya AI. + * @author Stayway + */ +public final class Zenya extends AbstractNpcAI +{ + // NPC + private static final int ZENYA = 32140; + // Location + private static final Location IMPERIAL_TOMB = new Location(184775, -76988, -2732); + // Misc + private static final int MIN_LEVEL = 80; + + private Zenya() + { + addStartNpc(ZENYA); + addFirstTalkId(ZENYA); + addTalkId(ZENYA); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + String htmltext = null; + switch (event) + { + case "32140.html": + case "32140-1.html": + case "32140-2.html": + case "32140-4.html": + { + htmltext = event; + break; + } + case "teleport": + { + player.teleToLocation(IMPERIAL_TOMB); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + return player.getLevel() < MIN_LEVEL ? "32140-3.html" : "32140.html"; + } + + public static void main(String[] args) + { + new Zenya(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/npcs/32100-32199.xml b/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/npcs/32100-32199.xml index 315f153e55..319bc2ed70 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/npcs/32100-32199.xml +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/stats/npcs/32100-32199.xml @@ -1614,7 +1614,7 @@ - + diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html new file mode 100644 index 0000000000..07c469baf5 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+Shilen created these monsters. They belong not to this world but the world of delusion. Shilen sent them to search for power for her ressurrection. They are stronger and more dangerous than regular monsters, but they are focused on their search, and won't attack you first. However, if they or their friends nearby are attacked, they will attack you in return. Beware!.
+One more thing. There are Succubus Disciples scattered around the Imperial Tomb. You have to be extra cautious around them.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html new file mode 100644 index 0000000000..3edc686eee --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+Succubus Disciples are in charge of the other monsters. They also give the other monsters power to keep their from in the world, and keep the power that other monsters collect from the relics. When you kill the Succubus Disciples you can sometimes obtain the power they have collected.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html new file mode 100644 index 0000000000..e54867d6c4 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+I'm sorry, but don't seem competent enough to fight the monsters in the inner parts of the Imperial Tomb. Come back when you are stronger, and I will send you.
+(You must be level 80 or above to start this quest.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html new file mode 100644 index 0000000000..c45635240a --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+In the Imperial Tomb, there are four Sepulchers. I think you need an Entrance Pass to get inside the sepulchers. The monsters collected these Entrance Passes while collecting the relics. If you need a Entrance Pass tothe Sepulchers, get a mission to collect Relics of the Empire. As you kill monsters for their Relics, you will run across Entrance Passes.
+If you want to know more about the four Sepulchers in detail, find the Nameless Spirit deep in the tomb.
+ + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html new file mode 100644 index 0000000000..9ee0362e2e --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html @@ -0,0 +1,8 @@ +Vice Hierarch Zenya:
+I am Kamael Vice Hierarch Zenya. Once, I helped train young Kamael warriors and saw them off on their travels. However, after the Kamael homeland was destroyed by Shilen, I left the town and became a wanderer.
+Please remember this: Shilen will bring destruction upon us. Her evil plots must be stopped at all costs.
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java new file mode 100644 index 0000000000..c661959202 --- /dev/null +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java @@ -0,0 +1,78 @@ +/* + * 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.ImperialTomb.Zenya; + +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; + +import ai.AbstractNpcAI; + +/** + * Zenya AI. + * @author Stayway + */ +public final class Zenya extends AbstractNpcAI +{ + // NPC + private static final int ZENYA = 32140; + // Location + private static final Location IMPERIAL_TOMB = new Location(184775, -76988, -2732); + // Misc + private static final int MIN_LEVEL = 80; + + private Zenya() + { + addStartNpc(ZENYA); + addFirstTalkId(ZENYA); + addTalkId(ZENYA); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + String htmltext = null; + switch (event) + { + case "32140.html": + case "32140-1.html": + case "32140-2.html": + case "32140-4.html": + { + htmltext = event; + break; + } + case "teleport": + { + player.teleToLocation(IMPERIAL_TOMB); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + return player.getLevel() < MIN_LEVEL ? "32140-3.html" : "32140.html"; + } + + public static void main(String[] args) + { + new Zenya(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/stats/npcs/32100-32199.xml b/L2J_Mobius_2.5_Underground/dist/game/data/stats/npcs/32100-32199.xml index 1166feaa6a..23f2b02058 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/stats/npcs/32100-32199.xml +++ b/L2J_Mobius_2.5_Underground/dist/game/data/stats/npcs/32100-32199.xml @@ -1614,7 +1614,7 @@
- + diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html new file mode 100644 index 0000000000..07c469baf5 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+Shilen created these monsters. They belong not to this world but the world of delusion. Shilen sent them to search for power for her ressurrection. They are stronger and more dangerous than regular monsters, but they are focused on their search, and won't attack you first. However, if they or their friends nearby are attacked, they will attack you in return. Beware!.
+One more thing. There are Succubus Disciples scattered around the Imperial Tomb. You have to be extra cautious around them.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html new file mode 100644 index 0000000000..3edc686eee --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html @@ -0,0 +1,4 @@ +Vice Hierarch Zenya:
+Succubus Disciples are in charge of the other monsters. They also give the other monsters power to keep their from in the world, and keep the power that other monsters collect from the relics. When you kill the Succubus Disciples you can sometimes obtain the power they have collected.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html new file mode 100644 index 0000000000..e54867d6c4 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+I'm sorry, but don't seem competent enough to fight the monsters in the inner parts of the Imperial Tomb. Come back when you are stronger, and I will send you.
+(You must be level 80 or above to start this quest.)
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html new file mode 100644 index 0000000000..c45635240a --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html @@ -0,0 +1,5 @@ +Vice Hierarch Zenya:
+In the Imperial Tomb, there are four Sepulchers. I think you need an Entrance Pass to get inside the sepulchers. The monsters collected these Entrance Passes while collecting the relics. If you need a Entrance Pass tothe Sepulchers, get a mission to collect Relics of the Empire. As you kill monsters for their Relics, you will run across Entrance Passes.
+If you want to know more about the four Sepulchers in detail, find the Nameless Spirit deep in the tomb.
+ + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html new file mode 100644 index 0000000000..9ee0362e2e --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html @@ -0,0 +1,8 @@ +Vice Hierarch Zenya:
+I am Kamael Vice Hierarch Zenya. Once, I helped train young Kamael warriors and saw them off on their travels. However, after the Kamael homeland was destroyed by Shilen, I left the town and became a wanderer.
+Please remember this: Shilen will bring destruction upon us. Her evil plots must be stopped at all costs.
+ + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java new file mode 100644 index 0000000000..c661959202 --- /dev/null +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java @@ -0,0 +1,78 @@ +/* + * 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.ImperialTomb.Zenya; + +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; + +import ai.AbstractNpcAI; + +/** + * Zenya AI. + * @author Stayway + */ +public final class Zenya extends AbstractNpcAI +{ + // NPC + private static final int ZENYA = 32140; + // Location + private static final Location IMPERIAL_TOMB = new Location(184775, -76988, -2732); + // Misc + private static final int MIN_LEVEL = 80; + + private Zenya() + { + addStartNpc(ZENYA); + addFirstTalkId(ZENYA); + addTalkId(ZENYA); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + String htmltext = null; + switch (event) + { + case "32140.html": + case "32140-1.html": + case "32140-2.html": + case "32140-4.html": + { + htmltext = event; + break; + } + case "teleport": + { + player.teleToLocation(IMPERIAL_TOMB); + break; + } + } + return htmltext; + } + + @Override + public String onFirstTalk(L2Npc npc, L2PcInstance player) + { + return player.getLevel() < MIN_LEVEL ? "32140-3.html" : "32140.html"; + } + + public static void main(String[] args) + { + new Zenya(); + } +} \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/stats/npcs/32100-32199.xml b/L2J_Mobius_3.0_Helios/dist/game/data/stats/npcs/32100-32199.xml index 1166feaa6a..23f2b02058 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/stats/npcs/32100-32199.xml +++ b/L2J_Mobius_3.0_Helios/dist/game/data/stats/npcs/32100-32199.xml @@ -1614,7 +1614,7 @@
- +