This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
You were hit with Freya's Eternal Blizzard during the battle at the castle. We rescued you before the freeze fully set in. Any later and you'd be in no better shape than Kier.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32020-02.htm">"It's such a blur, I can't remember..."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
Honestly, if we'd lost you like we did Kier... I'm not exaggerating when I say there would be no hope.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32020-03.html">Continue listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
Sorry, I'm a little long winded at times. If I keep Jinia waiting any longer, I have a feeling Freya would no longer be my biggest worry.<br>
<a action="bypass -h npc_%objectId%_Quest JiniaGuildHideout3">Enter.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
It's not time for that yet.<br>
(Only character with level 82 or above and who has completed the quest of Reunion with Sirra can take on this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
We can reminisce once the future is in good hands, friend.<br>
(You have already completed this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
Jinia's ready to see you.<br>
<a action="bypass -h npc_%objectId%_Quest JiniaGuildHideout3">Enter.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Be sure to bring me some good news, and don't let anything happen to Jinia. Ahh, you swore it!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Best not to try right now. Private guild meeting going on. Come back later okay?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
Thank the gods you survived. Are you all right?<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32760-02.html">"I'm OK."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
I am sure we approached Freya the wrong way. Like I said before... we probably aren't strong enough to confront her directly. She's just too powerful.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32760-03.html">Continue listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
Victory is ours only when we have separated Freya's spirit from Felicia's body. We'll need a medium that can absorb Freya's essence instantly.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32760-04.html">Continue listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
I truly believe we have to give Freya's chamberlain, Sirra, a real chance. If it wasn't for her, I wouldn't know such a medium even existed, and it's the one thing that could make this plan work.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32760-05.html">"Alright..."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Jinia:<br>
Sirra's appeared in the nick of time. Decide after you speak with Sirra. See things our way...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
I know she's not quite... right in the head, but it was right to keep the peace. To defeat Freya and save Felicia, we had to join forces with Sirra.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32760-07.html">Continue listening.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
When you are finished preparing, we will engage in a battle that will determine the fate of the world. Meet at the Ice Queen's castle garden again. This time we'll be ready.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32760-08.html">Go outside of the hideout.</a>
</body></html>

View File

@@ -0,0 +1,2 @@
<html><body>Jinia:<br>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
Having fun? I have to say, you surprised even me. The fact that you ignored my advice and yet still live is proof that you might have what it takes to defeat Freya. So, wasn't the Queen just a delight?<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32762-02.html">"What do you want to say?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
I know not everyone operates on the same level of genius as I do, so I don't mind explaining it to you. But you better listen because I'm not going to bother explaining again, got it? We need each other. Accept my help, and you may defeat Freya. There. You're welcome.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32762-03.html">"How can I trust you?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
I told you already, but hey why not, let's just rehash a bit. Felicia broke Sayan's ice crystal into bits and tried to hide it from us. Then the power of the crystal leaked out and took control of everyone in the castle.<br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32762-04.html">"OK, but what do you want?"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Sirra:<br>
I have no hidden motive. You and I share a common goal. And THAT makes us partners. You are most honored by it... Have you figured out how to withstand her deadliest magic? As partners, I'll tell you. Use frozen core, and her eternal blizzard magic will feel like a slushy. Wait until Freya casts that magic, and then use the frozen core right away.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Sirra:<br>
Well, those frozen cores I mentioned can make that deadly magic feel like a soft winter snow. Next time you fight her, wait until she tries to cast the spell and immediately use the frozen core when you start to feel the cold. Ah, I wish I could see the look on her face when her power proves useless. And that's how the Great Sirra will bring about the end of Freya's reign!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
I finally thought we had accomplished our life-long dream... Sirra's betrayal surprised us all. She only wanted to defeat the Ice Queen so she could take her place...<br>
But, we won't overlook the courage you've shown. Allow us a chance to properly show our gratitude. Why don't we go to Jinia Guild and conclude this later.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Jinia:<br>
Alright, we'll depart now. Keep those nerves of steel!<br>
<a action="bypass -h npc_%objectId%_Quest IceQueensCastleEasy">Enter the Ice Queen's Castle.</a><br>
<a action="bypass -h Quest Q10286_ReunionWithSirra 32781-03.html">"Wait a moment, I'm not ready."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Jinia:<br>
Alright, understood. Preparations must be thorough. Just let me know when you're ready to go.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
I finally thought we had accomplished our life-long dream... Sirra's betrayal surprised us all. She only wanted to defeat the Ice Queen so she could take her place...<br>
But, we won't overlook the courage you've shown. Allow us a chance to properly show our gratitude. Why don't we go to Jinia Guild and conclude this later.
</body></html>

View File

@@ -0,0 +1,260 @@
/*
* Copyright (C) 2004-2014 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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 quests.Q10286_ReunionWithSirra;
import quests.Q10285_MeetingSirra.Q10285_MeetingSirra;
import com.l2jserver.gameserver.instancemanager.InstanceManager;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.clientpackets.Say2;
import com.l2jserver.gameserver.network.serverpackets.NpcSay;
/**
* Reunion with Sirra (10286)
* @author Adry_85
*/
public final class Q10286_ReunionWithSirra extends Quest
{
// NPCs
private static final int RAFFORTY = 32020;
private static final int JINIA = 32760;
private static final int SIRRA = 32762;
private static final int JINIA2 = 32781;
// Item
private static final int BLACK_FROZEN_CORE = 15470;
// Misc
private static final int MIN_LEVEL = 82;
// Location
private static final Location EXIT_LOC = new Location(113793, -109342, -845, 0);
public Q10286_ReunionWithSirra()
{
super(10286, Q10286_ReunionWithSirra.class.getSimpleName(), "Reunion with Sirra");
addStartNpc(RAFFORTY);
addTalkId(RAFFORTY, JINIA, SIRRA, JINIA2);
registerQuestItems(BLACK_FROZEN_CORE);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "32020-02.htm":
{
st.startQuest();
st.setMemoState(1);
htmltext = event;
break;
}
case "32020-03.html":
case "32760-02.html":
case "32760-03.html":
case "32760-04.html":
{
if (st.isMemoState(1))
{
htmltext = event;
}
break;
}
case "32760-05.html":
{
if (st.isMemoState(1))
{
final L2Npc sirra = addSpawn(SIRRA, -23905, -8790, -5384, 56238, false, 0, false, npc.getInstanceId());
sirra.broadcastPacket(new NpcSay(sirra.getObjectId(), Say2.NPC_ALL, sirra.getId(), NpcStringId.YOU_ADVANCED_BRAVELY_BUT_GOT_SUCH_A_TINY_RESULT_HOHOHO));
st.set("ex", 1);
st.setCond(3, true);
htmltext = event;
}
break;
}
case "32760-07.html":
{
if (st.isMemoState(1) && (st.getInt("ex") == 2))
{
st.unset("ex");
st.setMemoState(2);
final InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player);
world.removeAllowed(player.getObjectId());
player.setInstanceId(0);
htmltext = event;
}
break;
}
case "32760-08.html":
{
if (st.isMemoState(2))
{
st.setCond(5, true);
player.teleToLocation(EXIT_LOC, 0);
htmltext = event; // TODO: missing "jinia_npc_q10286_10.htm"
}
break;
}
case "32762-02.html":
case "32762-03.html":
{
if (st.isMemoState(1) && (st.getInt("ex") == 1))
{
htmltext = event;
}
break;
}
case "32762-04.html":
{
if (st.isMemoState(1) && (st.getInt("ex") == 1))
{
if (!st.hasQuestItems(BLACK_FROZEN_CORE))
{
st.giveItems(BLACK_FROZEN_CORE, 5);
}
st.set("ex", 2);
st.setCond(4, true);
htmltext = event;
}
break;
}
case "32781-02.html":
case "32781-03.html":
{
if (st.isMemoState(2))
{
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
case State.COMPLETED:
{
if (npc.getId() == RAFFORTY)
{
htmltext = "32020-05.html";
}
break;
}
case State.CREATED:
{
if (npc.getId() == RAFFORTY)
{
st = player.getQuestState(Q10285_MeetingSirra.class.getSimpleName());
htmltext = ((player.getLevel() >= MIN_LEVEL) && (st != null) && (st.isCompleted())) ? "32020-01.htm" : "32020-04.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case RAFFORTY:
{
if (st.isMemoState(1))
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32020-06.html" : "32020-08.html";
}
else if (st.isMemoState(2))
{
htmltext = "32020-07.html";
}
break;
}
case JINIA:
{
if (st.isMemoState(1))
{
final int state = st.getInt("ex");
switch (state)
{
case 0:
{
htmltext = "32760-01.html";
break;
}
case 1:
{
htmltext = "32760-05.html";
break;
}
case 2:
{
htmltext = "32760-06.html";
break;
}
}
}
break;
}
case SIRRA:
{
if (st.isMemoState(1))
{
final int state = st.getInt("ex");
if (state == 1)
{
htmltext = "32762-01.html";
}
else if (state == 2)
{
htmltext = "32762-05.html";
}
}
break;
}
case JINIA2:
{
if (st.isMemoState(10))
{
st.addExpAndSp(2152200, 181070);
st.exitQuest(false, true);
htmltext = "32781-01.html";
}
break;
}
}
break;
}
}
return htmltext;
}
}