Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html (working copy)
- @@ -0,0 +1,15 @@
- +<html><body>Atelia Refinery Teleport Device:<br>
- +A device for teleporting to Atelia Refinery settled by the Blackbird Clan.<br>
- +Choose your destination.<br><br>
- +<center>Places:<br>
- +Inward of Atelia Refinery,<br>
- +Atelia Outlet,<br>
- +the area controlled by Death Pondus,<br>
- +the area controlled by Devil Varos,<br>
- +the area controlled by Demonic Weiss.<br>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery entrance">Teleport to the Atelia Refinery</Button>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery outlet">Teleport to the Atelia Outlet</Button>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the area controlled by Demonic Pontus</Button>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the area controlled by Devil Varos</Button>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the area controlled by Demonic Weiss</Button>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/34441.html (working copy)
- @@ -7,7 +7,6 @@
- the area controlled by Devil Varos,<br>
- the area controlled by Demonic Weiss.<br>
- <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery entrance">Teleport to the Atelia Refinery</Button>
- -<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery outlet">Teleport to the Atelia Outlet</Button>
- <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery first_area">Teleport to the area controlled by Demonic Pontus</Button>
- <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery second_area">Teleport to the area controlled by Devil Varos</Button>
- <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest AteliaRefinery third_area">Teleport to the area controlled by Demonic Weiss</Button>
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/AteliaRefinery.java (working copy)
- @@ -19,6 +19,7 @@
- import org.l2jmobius.gameserver.model.Location;
- 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;
- @@ -32,6 +33,7 @@
- // Teleport Locations
- private static final Location[] TELE_LOCATIONS =
- {
- + new Location(-251728, 178576, -8928), // Atelia Outlet
- new Location(-59493, 52620, -8610), // Entrance
- new Location(-56096, 49688, -8729), // First Area
- new Location(-56160, 45406, -8847), // Second Area
- @@ -76,30 +78,36 @@
- String htmltext = null;
- switch (event)
- {
- - case "entrance":
- + case "outlet":
- {
- player.teleToLocation(TELE_LOCATIONS[0]);
- htmltext = "34441-01.html";
- break;
- }
- - case "first_area":
- + case "entrance":
- {
- player.teleToLocation(TELE_LOCATIONS[1]);
- htmltext = "34441-01.html";
- break;
- }
- - case "second_area":
- + case "first_area":
- {
- player.teleToLocation(TELE_LOCATIONS[2]);
- htmltext = "34441-01.html";
- break;
- }
- - case "third_area":
- + case "second_area":
- {
- player.teleToLocation(TELE_LOCATIONS[3]);
- htmltext = "34441-01.html";
- break;
- }
- + case "third_area":
- + {
- + player.teleToLocation(TELE_LOCATIONS[4]);
- + htmltext = "34441-01.html";
- + break;
- + }
- }
- return htmltext;
- }
- @@ -123,6 +131,22 @@
- return super.onKill(npc, killer, isSummon);
- }
- + @Override
- + public String onFirstTalk(Npc npc, PlayerInstance player)
- + {
- + final QuestState qs = player.getQuestState("Q10890_SaviorsPathHallOfEtina");
- + String htmltext = null;
- + if (((qs != null) && qs.isCompleted()))
- + {
- + htmltext = "34441-00.html";
- + }
- + else
- + {
- + htmltext = "34441.html";
- + }
- + return htmltext;
- + }
- +
- public static void main(String[] args)
- {
- new AteliaRefinery();
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-0.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-0.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-0.html (working copy)
- @@ -0,0 +1,7 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +Thank you. Without your help, we couldn't have won easily.<br>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Leona teleport"><font color="LEVEL">"I want to go to Etis Van Etina."</font></Button>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest EtisVanEtinaSolo enterInstance"><font color="LEVEL">"I want to go to Etis Van Etina."(Solo)</font></Button>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Leona tp_inner"><font color="LEVEL">"I want to go inside Atelia Refinery."</font></Button>
- +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-1.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-1.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-1.html (working copy)
- @@ -0,0 +1,4 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +On the Etis van Etina there is an attack!<br>
- +At this time it's impossible to enter the temple.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-2.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-2.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-2.html (working copy)
- @@ -0,0 +1,4 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +Etis van Etina? You're too late, friend.<br>
- +A group of warriors drove him off not long ago.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-3.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-3.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-3.html (working copy)
- @@ -0,0 +1,4 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +You are overcome by a voice, a voice so powerful you are helpless as it speaks:<br>
- +(The players who belong to an association can only enter through the Association Leader.)
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-4.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-4.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-4.html (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +(A command channel needs at least minimum: <font color="LEVEL">%min%</font> and maximum: <font color="LEVEL">%max%</font> members to challenge Etis van Etina.)
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-5.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-5.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426-5.html (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +(A command channel members level must be minimum: <font color="LEVEL">%minLevel% Lvl</font> or higher to challenge Etis van Etina.)
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426.html (nonexistent)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426.html (working copy)
- @@ -0,0 +1,5 @@
- +<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- +Thank you. Without your help, we couldn't have won easily.<br>
- +<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Leona tp_inner"><font color="LEVEL">"I want to go inside Atelia Refinery."</font></Button>
- +<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-1.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-1.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-1.html (nonexistent)
- @@ -1,4 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -On the Etis van Etina there is an attack!<br>
- -At this time it's impossible to enter the temple.
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-2.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-2.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-2.html (nonexistent)
- @@ -1,4 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -Etis van Etina? You're too late, friend.<br>
- -A group of warriors drove him off not long ago.
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-3.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-3.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-3.html (nonexistent)
- @@ -1,4 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -You are overcome by a voice, a voice so powerful you are helpless as it speaks:<br>
- -(The players who belong to an association can only enter through the Association Leader.)
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-4.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-4.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-4.html (nonexistent)
- @@ -1,3 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -(A command channel needs at least minimum: <font color="LEVEL">%min%</font> and maximum: <font color="LEVEL">%max%</font> members to challenge Etis van Etina.)
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-5.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-5.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-5.html (nonexistent)
- @@ -1,3 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -(A command channel members level must be minimum: <font color="LEVEL">%minLevel% Lvl</font> or higher to challenge Etis van Etina.)
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-6.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-6.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504-6.html (nonexistent)
- @@ -1,3 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -(You can't go on Etina's Instance solo right now.)
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504.html
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504.html (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34504.html (nonexistent)
- @@ -1,7 +0,0 @@
- -<html><body>Blackbird Clan Lord Leona Blackbird:<br>
- -Thank you. Without your help, we couldn't have won easily.<br>
- -<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Leona teleport"><font color="LEVEL">"I want to go to Etis Van Etina."</font></Button>
- -<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_Chat 6"><font color="LEVEL">"I want to go to Etis Van Etina."(Solo)</font></Button>
- -<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest Leona tp_inner"><font color="LEVEL">"I want to go inside Atelia Refinery."</font></Button>
- -<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
- -</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/Leona.java
- ===================================================================
- --- dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/Leona.java (revision 8538)
- +++ dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/Leona.java (working copy)
- @@ -24,6 +24,7 @@
- import org.l2jmobius.gameserver.model.Party;
- import org.l2jmobius.gameserver.model.actor.Npc;
- import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
- +import org.l2jmobius.gameserver.model.quest.QuestState;
- import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
- import ai.AbstractNpcAI;
- @@ -34,7 +35,7 @@
- public class Leona extends AbstractNpcAI
- {
- // NPCs
- - private static final int LEONA = 34504;
- + private static final int LEONA = 34426;
- private static final int ETINA_RAID = 29318;
- // Location
- private static final Location ENTER_LOC = new Location(-245778, 181088, 2860);
- @@ -61,15 +62,15 @@
- {
- if (status == 1)
- {
- - return "34504-1.html";
- + return "34426-1.html";
- }
- if (status == 2)
- {
- - return "34504-2.html";
- + return "34426-2.html";
- }
- if (!player.isInParty())
- {
- - return "34504-3.html";
- + return "34426-3.html";
- }
- final Party party = player.getParty();
- final boolean isInCC = party.isInCommandChannel();
- @@ -77,12 +78,12 @@
- final boolean isPartyLeader = (isInCC) ? party.getCommandChannel().isLeader(player) : party.isLeader(player);
- if (!isPartyLeader)
- {
- - return "34504-3.html";
- + return "34426-3.html";
- }
- if ((members.size() < Config.ETINA_MIN_PLAYERS) || (members.size() > Config.ETINA_MAX_PLAYERS))
- {
- final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
- - packet.setHtml(getHtm(player, "34504-4.html"));
- + packet.setHtml(getHtm(player, "34426-4.html"));
- packet.replace("%min%", Integer.toString(Config.ETINA_MIN_PLAYERS));
- packet.replace("%max%", Integer.toString(Config.ETINA_MAX_PLAYERS));
- player.sendPacket(packet);
- @@ -93,7 +94,7 @@
- if (member.getLevel() < Config.ETINA_MIN_PLAYER_LEVEL)
- {
- final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
- - packet.setHtml(getHtm(player, "34504-5.html"));
- + packet.setHtml(getHtm(player, "34426-5.html"));
- packet.replace("%minlvl%", Integer.toString(Config.ETINA_MIN_PLAYER_LEVEL));
- player.sendPacket(packet);
- return null;
- @@ -119,7 +120,17 @@
- @Override
- public String onFirstTalk(Npc npc, PlayerInstance player)
- {
- - return "34504.html";
- + final QuestState qs = player.getQuestState("Q10890_SaviorsPathHallOfEtina");
- + String htmltext = null;
- + if (((qs != null) && qs.isCompleted()))
- + {
- + htmltext = "34426-0.html";
- + }
- + else
- + {
- + htmltext = "34426.html";
- + }
- + return htmltext;
- }
- public static void main(String[] args)
- Index: dist/game/data/spawns/DarkElf/AteliaRefinery.xml
- ===================================================================
- --- dist/game/data/spawns/DarkElf/AteliaRefinery.xml (revision 8524)
- +++ dist/game/data/spawns/DarkElf/AteliaRefinery.xml (working copy)
- @@ -3,7 +3,7 @@
- <spawn name="AteliaRefinery">
- <group>
- <npc id="34473" x="-251896" y="178338" z="-8934" heading="527" respawnTime="60sec" /> <!-- Elikia -->
- - <npc id="34504" x="-251722" y="178250" z="-8939" heading="16383" respawnTime="60sec" /> <!-- Leona Blackbird -->
- + <npc id="34426" x="-251722" y="178250" z="-8939" heading="16383" respawnTime="60sec" /> <!-- Leona Blackbird -->
- <npc id="34472" x="-251557" y="178337" z="-8934" heading="32767" respawnTime="60sec" /> <!-- Devianne -->
- <npc id="34441" x="-51676" y="60086" z="-3358" heading="13828" respawnTime="60sec" /> <!-- Atelia Refinery Teleport Device -->
- <npc id="34441" x="-59891" y="52625" z="-8606" heading="63477" respawnTime="60sec" /> <!-- Atelia Refinery Teleport Device -->
- @@ -11,7 +11,7 @@
- <npc id="34425" x="-51803" y="60088" z="-3355" heading="15516" respawnTime="60sec" /> <!-- Leona Blackbird Blackbird Clan Lord -->
- <npc id="34472" x="-251889" y="178337" z="-3355" heading="0" respawnTime="60sec" /> <!-- Devianne Truth Seeker (Inside) -->
- <npc id="34473" x="-251557" y="178337" z="-3355" heading="32767" respawnTime="60sec" /> <!-- Elikia (Inside) -->
- - <npc id="34504" x="-25722" y="178209" z="-8939" heading="15162" respawnTime="60sec" /> <!-- Leona Blackbird Blackbird Clan Lord (Inside)-->
- + <npc id="34426" x="-25722" y="178209" z="-8939" heading="15162" respawnTime="60sec" /> <!-- Leona Blackbird Blackbird Clan Lord (Inside)-->
- <npc id="24159" x="-55976" y="51464" z="-8728" heading="16383" respawnTime="60sec" /> <!-- Atelia Yuyurina -->
- <npc id="24160" x="-56305" y="51139" z="-8728" heading="49412" respawnTime="60sec" /> <!-- Atelia Popobena -->
- <npc id="24160" x="-56344" y="50744" z="-8728" heading="46564" respawnTime="60sec" /> <!-- Atelia Popobena -->
Add Comment
Please, Sign In to add comment