Updated Atelia Refinery teleporter and Leona.
Contributed by CostyKiller.
This commit is contained in:
15
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html
vendored
Normal file
15
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html
vendored
Normal file
@@ -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>
|
@@ -7,7 +7,6 @@ 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>
|
||||
|
@@ -19,8 +19,10 @@ package ai.areas.AteliaRefinery;
|
||||
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;
|
||||
import quests.Q10890_SaviorsPathHallOfEtina.Q10890_SaviorsPathHallOfEtina;
|
||||
|
||||
/**
|
||||
* @author NviX
|
||||
@@ -32,6 +34,7 @@ public class AteliaRefinery extends AbstractNpcAI
|
||||
// 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 +79,36 @@ public class AteliaRefinery extends AbstractNpcAI
|
||||
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 +132,22 @@ public class AteliaRefinery extends AbstractNpcAI
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = player.getQuestState(Q10890_SaviorsPathHallOfEtina.class.getSimpleName());
|
||||
if (((qs != null) && qs.isCompleted()))
|
||||
{
|
||||
htmltext = "34441-00.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34441.html";
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new AteliaRefinery();
|
||||
|
@@ -1,7 +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 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>
|
||||
<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>
|
@@ -1,4 +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.
|
||||
<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>
|
@@ -1,4 +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.
|
||||
<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>
|
@@ -1,4 +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.)
|
||||
<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>
|
@@ -1,3 +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.)
|
||||
<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>
|
@@ -1,3 +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.)
|
||||
<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>
|
5
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426.html
vendored
Normal file
5
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/areas/AteliaRefinery/Leona/34426.html
vendored
Normal file
@@ -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>
|
@@ -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>
|
@@ -24,9 +24,11 @@ import org.l2jmobius.gameserver.model.Location;
|
||||
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;
|
||||
import quests.Q10890_SaviorsPathHallOfEtina.Q10890_SaviorsPathHallOfEtina;
|
||||
|
||||
/**
|
||||
* @author Liamxroy
|
||||
@@ -34,7 +36,7 @@ import ai.AbstractNpcAI;
|
||||
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 +63,15 @@ public class Leona extends AbstractNpcAI
|
||||
{
|
||||
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 +79,12 @@ public class Leona extends AbstractNpcAI
|
||||
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 +95,7 @@ public class Leona extends AbstractNpcAI
|
||||
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 +121,17 @@ public class Leona extends AbstractNpcAI
|
||||
@Override
|
||||
public String onFirstTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
return "34504.html";
|
||||
final QuestState qs = player.getQuestState(Q10890_SaviorsPathHallOfEtina.class.getSimpleName());
|
||||
String htmltext = null;
|
||||
if (((qs != null) && qs.isCompleted()))
|
||||
{
|
||||
htmltext = "34426-0.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34426.html";
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
|
@@ -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 -->
|
||||
|
15
L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html
vendored
Normal file
15
L2J_Mobius_9.0_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/AteliaRefinery/34441-00.html
vendored
Normal file
@@ -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>
|
@@ -7,7 +7,6 @@ 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>
|
||||
|
@@ -19,8 +19,10 @@ package ai.areas.AteliaRefinery;
|
||||
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;
|
||||
import quests.Q10890_SaviorsPathHallOfEtina.Q10890_SaviorsPathHallOfEtina;
|
||||
|
||||
/**
|
||||
* @author NviX
|
||||
@@ -32,6 +34,7 @@ public class AteliaRefinery extends AbstractNpcAI
|
||||
// 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 +79,36 @@ public class AteliaRefinery extends AbstractNpcAI
|
||||
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 +132,22 @@ public class AteliaRefinery extends AbstractNpcAI
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = player.getQuestState(Q10890_SaviorsPathHallOfEtina.class.getSimpleName());
|
||||
if (((qs != null) && qs.isCompleted()))
|
||||
{
|
||||
htmltext = "34441-00.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34441.html";
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new AteliaRefinery();
|
||||
|
@@ -1,7 +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 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>
|
||||
<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>
|
@@ -1,4 +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.
|
||||
<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>
|
@@ -1,4 +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.
|
||||
<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>
|
@@ -1,4 +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.)
|
||||
<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>
|
@@ -1,3 +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.)
|
||||
<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>
|
@@ -1,3 +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.)
|
||||
<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>
|
@@ -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>
|
@@ -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>
|
@@ -24,9 +24,11 @@ import org.l2jmobius.gameserver.model.Location;
|
||||
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;
|
||||
import quests.Q10890_SaviorsPathHallOfEtina.Q10890_SaviorsPathHallOfEtina;
|
||||
|
||||
/**
|
||||
* @author Liamxroy
|
||||
@@ -34,7 +36,7 @@ import ai.AbstractNpcAI;
|
||||
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 +63,15 @@ public class Leona extends AbstractNpcAI
|
||||
{
|
||||
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 +79,12 @@ public class Leona extends AbstractNpcAI
|
||||
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 +95,7 @@ public class Leona extends AbstractNpcAI
|
||||
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 +121,17 @@ public class Leona extends AbstractNpcAI
|
||||
@Override
|
||||
public String onFirstTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
return "34504.html";
|
||||
final QuestState qs = player.getQuestState(Q10890_SaviorsPathHallOfEtina.class.getSimpleName());
|
||||
String htmltext = null;
|
||||
if (((qs != null) && qs.isCompleted()))
|
||||
{
|
||||
htmltext = "34426-0.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34426.html";
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
|
@@ -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 -->
|
||||
|
Reference in New Issue
Block a user