Zenya AI.
Contributed by Stayway.
This commit is contained in:
parent
d141c44647
commit
0cd0762502
5
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html
vendored
Normal file
5
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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!.<br>
|
||||||
|
One more thing. There are Succubus Disciples scattered around the Imperial Tomb. You have to be extra cautious around them.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-2.html">"Succubus Disciples?".</Button>
|
||||||
|
</body></html>
|
4
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html
vendored
Normal file
4
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Zenya 32140.html">Back</Button>
|
||||||
|
</body></html>
|
5
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html
vendored
Normal file
5
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
(You must be level 80 or above to start this quest.)<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_32140.html">Back.</Button>
|
||||||
|
</body></html>
|
5
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html
vendored
Normal file
5
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
If you want to know more about the four Sepulchers in detail, find the Nameless Spirit deep in the tomb.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Zenya 32140.html">Back.</Button>
|
||||||
|
</body></html>
|
8
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html
vendored
Normal file
8
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
Please remember this: Shilen will bring destruction upon us. Her evil plots must be stopped at all costs.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya teleport">"I want to go inside the imperial Tomb."</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-1.html">"Tell me about Succubus Monsters.".</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-4.html">"Any information about the Entrance Pass to the Sepulcher?"</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||||
|
</body></html>
|
78
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java
vendored
Normal file
78
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java
vendored
Normal file
@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
@ -1614,7 +1614,7 @@
|
|||||||
<height normal="25" />
|
<height normal="25" />
|
||||||
</collision>
|
</collision>
|
||||||
</npc>
|
</npc>
|
||||||
<npc id="32140" level="70" type="L2VillageMaster" name="Zenya" title="Vice Hierarch">
|
<npc id="32140" level="70" type="L2Npc" name="Zenya" title="Vice Hierarch">
|
||||||
<!-- Confirmed CT2.5 -->
|
<!-- Confirmed CT2.5 -->
|
||||||
<parameters>
|
<parameters>
|
||||||
<param name="MoveAroundSocial" value="0" />
|
<param name="MoveAroundSocial" value="0" />
|
||||||
|
5
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html
vendored
Normal file
5
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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!.<br>
|
||||||
|
One more thing. There are Succubus Disciples scattered around the Imperial Tomb. You have to be extra cautious around them.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-2.html">"Succubus Disciples?".</Button>
|
||||||
|
</body></html>
|
4
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html
vendored
Normal file
4
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Zenya 32140.html">Back</Button>
|
||||||
|
</body></html>
|
5
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html
vendored
Normal file
5
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
(You must be level 80 or above to start this quest.)<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_32140.html">Back.</Button>
|
||||||
|
</body></html>
|
5
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html
vendored
Normal file
5
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
If you want to know more about the four Sepulchers in detail, find the Nameless Spirit deep in the tomb.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Zenya 32140.html">Back.</Button>
|
||||||
|
</body></html>
|
8
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html
vendored
Normal file
8
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
Please remember this: Shilen will bring destruction upon us. Her evil plots must be stopped at all costs.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya teleport">"I want to go inside the imperial Tomb."</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-1.html">"Tell me about Succubus Monsters.".</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-4.html">"Any information about the Entrance Pass to the Sepulcher?"</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||||
|
</body></html>
|
78
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java
vendored
Normal file
78
L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java
vendored
Normal file
@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
@ -1614,7 +1614,7 @@
|
|||||||
<height normal="25" />
|
<height normal="25" />
|
||||||
</collision>
|
</collision>
|
||||||
</npc>
|
</npc>
|
||||||
<npc id="32140" level="70" type="L2VillageMaster" name="Zenya" title="Vice Hierarch">
|
<npc id="32140" level="70" type="L2Npc" name="Zenya" title="Vice Hierarch">
|
||||||
<!-- Confirmed CT2.5 -->
|
<!-- Confirmed CT2.5 -->
|
||||||
<parameters>
|
<parameters>
|
||||||
<param name="MoveAroundSocial" value="0" />
|
<param name="MoveAroundSocial" value="0" />
|
||||||
|
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html
vendored
Normal file
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-1.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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!.<br>
|
||||||
|
One more thing. There are Succubus Disciples scattered around the Imperial Tomb. You have to be extra cautious around them.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-2.html">"Succubus Disciples?".</Button>
|
||||||
|
</body></html>
|
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html
vendored
Normal file
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-2.html
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Zenya 32140.html">Back</Button>
|
||||||
|
</body></html>
|
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html
vendored
Normal file
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-3.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
(You must be level 80 or above to start this quest.)<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_32140.html">Back.</Button>
|
||||||
|
</body></html>
|
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html
vendored
Normal file
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140-4.html
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
If you want to know more about the four Sepulchers in detail, find the Nameless Spirit deep in the tomb.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Zenya 32140.html">Back.</Button>
|
||||||
|
</body></html>
|
8
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html
vendored
Normal file
8
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/32140.html
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
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.<br>
|
||||||
|
Please remember this: Shilen will bring destruction upon us. Her evil plots must be stopped at all costs.<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya teleport">"I want to go inside the imperial Tomb."</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-1.html">"Tell me about Succubus Monsters.".</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Zenya 32140-4.html">"Any information about the Entrance Pass to the Sepulcher?"</Button>
|
||||||
|
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||||
|
</body></html>
|
78
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java
vendored
Normal file
78
L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/Zenya/Zenya.java
vendored
Normal file
@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
@ -1614,7 +1614,7 @@
|
|||||||
<height normal="25" />
|
<height normal="25" />
|
||||||
</collision>
|
</collision>
|
||||||
</npc>
|
</npc>
|
||||||
<npc id="32140" level="70" type="L2VillageMaster" name="Zenya" title="Vice Hierarch">
|
<npc id="32140" level="70" type="L2Npc" name="Zenya" title="Vice Hierarch">
|
||||||
<!-- Confirmed CT2.5 -->
|
<!-- Confirmed CT2.5 -->
|
||||||
<parameters>
|
<parameters>
|
||||||
<param name="MoveAroundSocial" value="0" />
|
<param name="MoveAroundSocial" value="0" />
|
||||||
|
Loading…
Reference in New Issue
Block a user