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
@@ -0,0 +1,10 @@
<html><body>Misa:<br>
Do you have anything to say to me?<br>
What? Rafforty sent you?<br>
Well, he doesn't want to see me, I guarantee you that!<br>
....<br>
Would you give this <font color="LEVEL">letter</font> to Rafforty? I need him to read it immediately!<br>
But please, do not read it yourself!<br>
This is none of your business!<br>
Oh, Rafforty...
</body></html>
@@ -0,0 +1,3 @@
<html><body>Misa:<br>
You're still here? It's quite cold! You should go at once! Please give this letter to <font color="LEVEL">Rafforty</font>.
</body></html>
@@ -0,0 +1,4 @@
<html><body>Misa:<br>
Is there anything you want to say to me?<br>
Well, I don't have anything to say to you! I just want to enjoy this beautiful night view.
</body></html>
@@ -0,0 +1,4 @@
<html><body>Misa:<br>
Why are you here again? I don't have anything to say to you.<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32018-05.html">"This letter is from Rafforty."</a>
</body></html>
@@ -0,0 +1,6 @@
<html><body>Misa:<br>
Oh! You're going to work with us! Welcome aboard!<br>
I'll tell you what I just found out. We lost touch with a large party of our Guild members who had been dispatched to investigate the recent activities of the Ice Queen.<br>
We recently got lucky and found out where they might be...<br>
It seems that the Ice Queen put a curse on them and turned them into ice sculptures! I think we should find out if there are any remnants of their investigation. The ice sculptures can be found on the <font color="LEVEL">plains north of the entrance of the Ice Queen's castle</font>. Please, help us!
</body></html>
@@ -0,0 +1,3 @@
<html><body>Misa:<br>
We accidently found out where the lost Guild members might be! They were turned into ice sculptures! Do you think you could go and see if there are any remnants of their investigation? You can find the ice sculptures on the <font color="LEVEL">plains north of the entrance of the Ice Queen's castle</font>. Please, help us!
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
Have you recovered your strength? You certainly look a lot better. Would you like to go for a walk?<br>
Walk down the road to the lake, meet a person and come back.<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-02.html">"Who am I supposed to meet?"</a>
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
I want you to meet a woman!<br>
Why are you blushing? You know how it is... I just can't refuse her! So I want you to go there to refuse for me! That's it!<br>
It should be easy for you since you haven't met her before. Follow the road to the northwest until you get to <font color="LEVEL">Frost Lake</font> and meet a woman named <font color="LEVEL">Misa</font> there. <font color="LEVEL">I promised to meet her at night</font>, so go after dark. Thank you so much for doing this for me!
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
You definitely shouldn't wander around here in your condition. I don't want another corpse to deal with. (Characters must have achieved at least level 53 to undertake this quest.)
</body></html>
@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
What are you still doing here? Don't keep her waiting too long! Your task will be over once you've met her at <font color="LEVEL">Frost Lake</font> and come back.<br>
Be careful! Don't fool around and get yourself hurt!
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Where's my letter? I was a fool to trust you.
</body></html>
@@ -0,0 +1,6 @@
<html><body>Rafforty:<br>
Didn't she say to give me the letter? Then give it to me!<br>
Hmm.. Are you sure you didn't open it? The seal looks broken...<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-07.html">"Are you doubting me?"</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-08.html">"I'm sorry, my curiosity got the better of me."</a>
</body></html>
@@ -0,0 +1,8 @@
<html><body>Rafforty:<br>
Hey, don't be so touchy!<br>
I was just asking!<br>
I'm sorry if I hurt your feelings.<br>
It's hard to trust anyone these days, you know?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-09.html">"Why did you ask me to do this?"</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-10.html">"No big deal."</a>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
Hmmm.. It's just wrong to read someone else's mail! I didn't think you'd do such a thing... I'm really disappointed in you!<br>
I'm through talking to you! Get out as soon as you've recovered!
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
Well, I'll just come out with it then! What kind of relationship do you have with Queen Freya?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-11.html">"Who's Queen Freya?"</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-12.html">"Certainly you don't think I'm involved with her?"</a>
</body></html>
@@ -0,0 +1,9 @@
<html><body>Rafforty:<br>
Thank you for understanding.<br>
Oh, yes! Don't let my accent fool you!<br>
I'm Rafforty, from the Zinnia Guild!<br>I actually tested you a while back, and you're not involved with Queen Freya. I'd like to ask for a favor...
<br>Or would you like to hear about the current situation?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-13.html">"The Zinnia Guild...?"</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-14.html">"Who's Queen Freya?"</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-15.html">"What can I do for you?"</a>
</body></html>
@@ -0,0 +1,9 @@
<html><body>Rafforty:<br>
You don't know about Queen Freya? She rules this whole area!<br>
You must not be related to Freya if you don't even know who she is!<br>
I'm sorry I didn't trust you! The situation here has just gotten to the point...<br>
Well, I'll just come out with it... Would you like to join the Zinnia Guild? I can tell you more about us if you want...<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-13.html">"Tell me about the Zinnia Guild."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-14.html">"Tell me about Queen Freya."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-15.html">"What can I do for you?"</a>
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
Well, honestly, you're acting kind of shifty!<br>
We obviously don't trust each other, so let's just end it now.<br>
Please get out as soon as you're recovered.
</body></html>
@@ -0,0 +1,6 @@
<html><body>Rafforty:<br>
We of the Zinnia Guild maintain the Order of Canna Knights that guarded Queen Freya before she became the Ice Queen.<br>
We've long sought a way to restore her to her original self. But as the sacrifices of our guild members have increased, we must now look to the outside for help.<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-14.html">"Tell me about Queen Freya."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-15.html">"What can I do for you?"</a>
</body></html>
@@ -0,0 +1,6 @@
<html><body>Rafforty:<br>
The Ice Queen Freya rules this territory. She was not always like this... One day she just changed into a cruel, ice-cold person!<br>
You'd do well to avoid her!<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-13.html">"Tell me about the Zinnia Guild."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-15.html">"What can I do for you?"</a>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
Our guild's goal is to restore Queen Freya to her original self. Misa, who you met a while ago, is also a guild member. I'd like you to investigate the information we've collected so far.<br>
Hmmmm....? I have a meeting, would you please come back later?
</body></html>
@@ -0,0 +1,8 @@
<html><body>Rafforty:<br>
Hey, don't be so touchy!<br>
I was just asking!<br>
I'm sorry if I hurt your feelings.<br>
It's hard to trust anyone these days, you know?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-09.html">"Why do you doubt me?"</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-10.html">"No big deal."</a>
</body></html>
@@ -0,0 +1,7 @@
<html><body>Rafforty:<br>
You were thinking about something else... I'll say it again. Would you like to work with the Zinnia Guild? You have nothing to lose!<br>
If it is difficult for you to decide, perhaps you have some questions?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-13.html">"Tell me about the Zinnia Guild."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-14.html">"Tell me about Queen Freya."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-15.html">"What exactly am I going to do?"</a>
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
I've heard that Misa has some very good information! You've already met her, so you shouldn't have any trouble finding her again. Would you check and see if it's true?<br>
She never comes out during the day, you'll need to meet her at <font color="LEVEL">night</font> at <font color="LEVEL">Frost Lake</font>.<br>
Give this letter to her, she'll take it from there.
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
You haven't left yet? Go see Misa at <font color="LEVEL">Frost Lake</font> tonight and check the information. I'll rely on your judgment.
</body></html>
@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
Where is the letter? You just can't keep losing it! Help us keep the faith.<br>
Give the letter to <font color="LEVEL">Misa</font>.
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Misa tells me that you've been investigating. I'm anticipating good results.
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
Thank you! So, you've found the whereabouts of Kierre? What an accomplishment! My guild will be overjoyed! Your hard work has really paid off!<br>
Did you find anything useful when you found Kierre?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32020-23.html">"Here's a piece of the report."</a>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Rafforty:<br>
It appears to be one of our cryptograms... But it's very old! It will take some time to decrypt it...<br>
Would you mind coming back later?
</body></html>
@@ -0,0 +1,6 @@
<html><body>Rafforty:<br>
Good timing! We've decrypted the report, and it was very interesting!<br>It says that we still need some <font color="LEVEL">Tablet Fragments</font> to obtain the information.<br>
Did you happen to see any Tablet Fragments during your investigation?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth finish">"Here's the Tablet Fragment."</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth finish2">"No, but I'll look for it."</a>
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Ah.... Yes, this is it! I must start an investigation at once! Thank you for your help. Please accept this reward... It's not much, but it is a token of our appreciation for your hard work.
</body></html>
@@ -0,0 +1,5 @@
<html><body>Rafforty:<br>
What am I supposed to do when you show me empty hands like that?<br>
It seems you've seen something like a Tablet Fragment...<br>
Would you please look for it?
</body></html>
@@ -0,0 +1,7 @@
<html><body>Rafforty:<br>
Uh...<br>
What's that in your pocket? Can I see it?<br>
...<br>
I think this may be the right one! I must start an investigation at once!<br>
Thank you for all your help. Please accept this reward. It's not much, but it is a token of our appreciation for your hard work.
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
You look like you saw something. Please try to find the Tablet Fragment.
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Please try to find the <font color="LEVEL">Tablet Fragment</font>.
</body></html>
@@ -0,0 +1,3 @@
<html><body>Rafforty:<br>
Ah.... Yes, this is it. I must start an investigation at once! Thank you for your help. Please accept this reward. It's not much, but it is a token of our appreciation for your hard work.
</body></html>
@@ -0,0 +1,5 @@
<html><body>
I thought there was nothing there, but... I think there's something under the sculpture. What is it?<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32021-02.html">Pick it up.</a><br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32021-03.html">Ignore it.</a>
</body></html>
@@ -0,0 +1,3 @@
<html><body>
I don't know how to use this object, but I should take it with me; it might be a clue. There's nothing else worth searching here. I'll search the other sculptures now.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
Whatever it is, I doubt it's useful to me... I'll search some other sculptures now.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
I've already searched this area. I'll look somewhere else.
</body></html>
@@ -0,0 +1,4 @@
<html><body>
Is there something here? Yes, I think I see something written under the sculpture.<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32021-06.html">Check the ground.</a>
</body></html>
@@ -0,0 +1,5 @@
<html><body>
Finally I have the fragment! Unfortunately, the Ice Queen has discovered what I've been doing.<br>
Kierre's whereabouts have at last been discovered. It seems that Freya keeps him in her territory, but <font color="LEVEL">it's a place far away from the haunts of men, southwest of the Labyrinth...</font><br>
Finding him is our last hope.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
I checked out the sculpture and the surrounding area, and found nothing. I'll broaden my search.
</body></html>
@@ -0,0 +1,5 @@
<html><body>
Finally I have the fragment! Unfortunately, the Ice Queen has discovered what I've been doing.<br>
Kierre's whereabouts have at last been discovered. It seems that Freya keeps him in her territory, but <font color="LEVEL">it's a place far away from the haunts of men, southwest of the Labyrinth...</font><br>
Finding him is our last hope.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
This was the fragment that I passed up. Let's take it back to Rafforty.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
(There's nothing left to be done here. Let's take the fragment to Rafforty.)
</body></html>
@@ -0,0 +1,4 @@
<html><body>
I've found something on the ice sculpture: it seems to be holding a piece of paper in its hand.<br>
<a action="bypass -h Quest Q00115_TheOtherSideOfTruth 32022-02.html">Take the piece of paper and read it.</a>
</body></html>
@@ -0,0 +1,4 @@
<html><body>
( "%$&@#$, ~!@@#$%#@ @#@ @$^&*@! @#$..."<br>
This report is written in an unknown language. It must be a code of some kind... I should show it to Rafforty.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
I shall go back to Rafforty and report what I've found.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
There is a piece of paper near the sculpture. I should be careful not to lose it and take it with me.
</body></html>
@@ -0,0 +1,3 @@
<html><body>
I have not seen any tablet fragments around here. I'll search somewhere else.
</body></html>
@@ -0,0 +1,782 @@
/*
* 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.Q00115_TheOtherSideOfTruth;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* The Other Side of Truth (115)
* @author Adry_85
*/
public class Q00115_TheOtherSideOfTruth extends Quest
{
// NPCs
private static final int MISA = 32018;
private static final int RAFFORTY = 32020;
private static final int ICE_SCULPTURE1 = 32021;
private static final int KIER = 32022;
private static final int ICE_SCULPTURE2 = 32077;
private static final int ICE_SCULPTURE3 = 32078;
private static final int ICE_SCULPTURE4 = 32079;
// Items
private static final int MISAS_LETTER = 8079;
private static final int RAFFORTYS_LETTER = 8080;
private static final int PIECE_OF_TABLET = 8081;
private static final int REPORT_PIECE = 8082;
// Misc
private static final int MIN_LEVEL = 53;
public Q00115_TheOtherSideOfTruth()
{
super(115, Q00115_TheOtherSideOfTruth.class.getSimpleName(), "The Other Side of Truth");
addStartNpc(RAFFORTY);
addTalkId(RAFFORTY, MISA, KIER, ICE_SCULPTURE1, ICE_SCULPTURE2, ICE_SCULPTURE3, ICE_SCULPTURE4);
registerQuestItems(MISAS_LETTER, RAFFORTYS_LETTER, PIECE_OF_TABLET, REPORT_PIECE);
}
@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.html":
{
st.startQuest();
htmltext = event;
break;
}
case "32020-07.html":
{
if (st.isCond(2))
{
st.takeItems(MISAS_LETTER, -1);
st.setCond(3, true);
htmltext = event;
}
break;
}
case "32020-05.html":
{
if (st.isCond(2))
{
st.takeItems(MISAS_LETTER, -1);
st.exitQuest(true, true);
htmltext = event;
}
break;
}
case "32020-10.html":
{
if (st.isCond(3))
{
st.setCond(4, true);
htmltext = event;
}
break;
}
case "32020-11.html":
{
if (st.isCond(3))
{
st.setCond(4, true);
htmltext = event;
}
break;
}
case "32020-12.html":
{
if (st.isCond(3))
{
st.exitQuest(true, true);
htmltext = event;
}
break;
}
case "32020-08.html":
case "32020-09.html":
case "32020-13.html":
case "32020-14.html":
{
htmltext = event;
break;
}
case "32020-15.html":
{
if (st.isCond(4))
{
st.setCond(5, true);
st.playSound(QuestSound.AMBSOUND_WINGFLAP);
htmltext = event;
}
break;
}
case "32020-23.html":
{
if (st.isCond(9))
{
st.setCond(10, true);
htmltext = event;
}
break;
}
case "finish":
{
if (st.isCond(10))
{
if (st.hasQuestItems(PIECE_OF_TABLET))
{
st.giveAdena(115673, true);
st.addExpAndSp(493595, 40442);
st.exitQuest(false, true);
htmltext = "32020-25.html";
}
else
{
st.setCond(11, true);
htmltext = "32020-26.html";
st.playSound(QuestSound.AMBSOUND_THUNDER);
}
}
break;
}
case "finish2":
{
if (st.isCond(10))
{
if (st.hasQuestItems(PIECE_OF_TABLET))
{
st.giveAdena(115673, true);
st.addExpAndSp(493595, 40442);
st.exitQuest(false, true);
htmltext = "32020-27.html";
}
else
{
st.setCond(11, true);
htmltext = "32020-28.html";
st.playSound(QuestSound.AMBSOUND_THUNDER);
}
}
break;
}
case "32018-05.html":
{
if (st.isCond(6) && (st.hasQuestItems(RAFFORTYS_LETTER)))
{
st.takeItems(RAFFORTYS_LETTER, -1);
st.setCond(7, true);
htmltext = event;
}
break;
}
case "32022-02.html":
{
if (st.isCond(8))
{
st.giveItems(REPORT_PIECE, 1);
st.setCond(9, true);
htmltext = event;
}
break;
}
case "32021-02.html":
{
switch (npc.getId())
{
case ICE_SCULPTURE1:
{
if (st.isCond(7) && ((st.getInt("ex") % 2) <= 1))
{
int ex = st.getInt("ex");
if ((ex == 6) || (ex == 10) || (ex == 12))
{
ex++;
st.set("ex", ex);
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = event;
}
}
break;
}
case ICE_SCULPTURE2:
{
if (st.isCond(7) && ((st.getInt("ex") % 4) <= 1))
{
int ex = st.getInt("ex");
if ((ex == 5) || (ex == 9) || (ex == 12))
{
ex += 2;
st.set("ex", ex);
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = event;
}
}
break;
}
case ICE_SCULPTURE3:
{
if (st.isCond(7) && ((st.getInt("ex") % 8) <= 3))
{
int ex = st.getInt("ex");
if ((ex == 3) || (ex == 9) || (ex == 10))
{
ex += 4;
st.set("ex", ex);
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = event;
}
}
break;
}
case ICE_SCULPTURE4:
{
if (st.isCond(7) && (st.getInt("ex") <= 7))
{
int ex = st.getInt("ex");
if ((ex == 3) || (ex == 5) || (ex == 6))
{
ex += 8;
st.set("ex", ex);
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = event;
}
}
break;
}
}
break;
}
case "32021-03.html":
{
switch (npc.getId())
{
case ICE_SCULPTURE1:
{
if (st.isCond(7) && ((st.getInt("ex") % 2) <= 1))
{
int ex = st.getInt("ex");
if ((ex == 6) || (ex == 10) || (ex == 12))
{
ex++;
st.set("ex", ex);
htmltext = event;
}
}
break;
}
case ICE_SCULPTURE2:
{
if (st.isCond(7) && ((st.getInt("ex") % 4) <= 1))
{
int ex = st.getInt("ex");
if ((ex == 5) || (ex == 9) || (ex == 12))
{
ex += 2;
st.set("ex", ex);
htmltext = event;
}
}
break;
}
case ICE_SCULPTURE3:
{
if (st.isCond(7) && ((st.getInt("ex") % 8) <= 3))
{
int ex = st.getInt("ex");
if ((ex == 3) || (ex == 9) || (ex == 12))
{
ex += 4;
st.set("ex", ex);
htmltext = event;
}
}
break;
}
case ICE_SCULPTURE4:
{
if (st.isCond(7) && (st.getInt("ex") <= 7))
{
int ex = st.getInt("ex");
if ((ex == 3) || (ex == 5) || (ex == 6))
{
ex += 8;
st.set("ex", ex);
htmltext = event;
}
}
break;
}
}
break;
}
case "32021-06.html":
{
switch (npc.getId())
{
case ICE_SCULPTURE1:
{
if (st.isCond(7) && (st.getInt("ex") == 14))
{
st.setCond(8);
htmltext = event;
}
break;
}
case ICE_SCULPTURE2:
{
if (st.isCond(7) && (st.getInt("ex") == 13))
{
st.setCond(8);
htmltext = event;
}
break;
}
case ICE_SCULPTURE3:
{
if (st.isCond(7) && (st.getInt("ex") == 11))
{
st.setCond(8);
htmltext = event;
}
break;
}
case ICE_SCULPTURE4:
{
if (st.isCond(7) && (st.getInt("ex") == 7))
{
st.setCond(8);
htmltext = event;
}
break;
}
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.COMPLETED:
{
if (npc.getId() == RAFFORTY)
{
htmltext = getAlreadyCompletedMsg(player);
}
break;
}
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32020-01.htm" : "32020-03.html";
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case RAFFORTY:
{
switch (st.getCond())
{
case 1:
{
htmltext = "32020-04.html";
break;
}
case 2:
{
htmltext = (!st.hasQuestItems(MISAS_LETTER)) ? "32020-05.html" : "32020-06.html";
break;
}
case 3:
{
htmltext = "32020-16.html";
break;
}
case 4:
{
htmltext = "32020-17.html";
break;
}
case 5:
{
st.giveItems(RAFFORTYS_LETTER, 1);
st.setCond(6, true);
htmltext = "32020-18.html";
break;
}
case 6:
{
if (st.hasQuestItems(RAFFORTYS_LETTER))
{
htmltext = "32020-19.html";
}
else
{
st.giveItems(RAFFORTYS_LETTER, 1);
htmltext = "32020-20.html";
}
break;
}
case 7:
case 8:
{
htmltext = "32020-21.html";
break;
}
case 9:
{
if (st.hasQuestItems(REPORT_PIECE))
{
htmltext = "32020-22.html";
}
break;
}
case 10:
{
htmltext = "32020-24.html";
break;
}
case 11:
{
if (!st.hasQuestItems(PIECE_OF_TABLET))
{
htmltext = "32020-29.html";
}
else
{
st.giveAdena(115673, true);
st.addExpAndSp(493595, 40442);
st.exitQuest(false, true);
htmltext = "32020-30.html";
}
break;
}
}
break;
}
case MISA:
{
switch (st.getCond())
{
case 1:
{
st.giveItems(MISAS_LETTER, 1);
st.setCond(2, true);
htmltext = "32018-01.html";
break;
}
case 2:
{
htmltext = "32018-02.html";
break;
}
case 3:
case 4:
{
htmltext = "32018-03.html";
break;
}
case 5:
{
break;
}
case 6:
{
if (st.hasQuestItems(RAFFORTYS_LETTER))
{
htmltext = "32018-04.html";
}
break;
}
case 7:
{
htmltext = "32018-06.html";
break;
}
}
break;
}
case KIER:
{
switch (st.getCond())
{
case 8:
{
htmltext = "32022-01.html";
break;
}
case 9:
{
if (st.hasQuestItems(REPORT_PIECE))
{
htmltext = "32022-03.html";
}
else
{
st.giveItems(REPORT_PIECE, 1);
htmltext = "32022-04.html";
}
break;
}
case 11:
{
if (!st.hasQuestItems(REPORT_PIECE))
{
htmltext = "32022-05.html";
}
break;
}
}
break;
}
case ICE_SCULPTURE1:
{
switch (st.getCond())
{
case 7:
{
if ((st.getInt("ex") % 2) <= 1)
{
int ex = st.getInt("ex");
if ((ex == 6) || (ex == 10) || (ex == 12))
{
htmltext = "32021-01.html";
}
else if (ex == 14)
{
htmltext = "32021-05.html";
}
else
{
ex++;
st.set("ex", ex);
htmltext = "32021-07.html";
}
}
else
{
htmltext = "32021-04.html";
}
break;
}
case 8:
{
htmltext = "32021-08.html";
break;
}
case 11:
{
if (!st.hasQuestItems(PIECE_OF_TABLET))
{
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = "32021-09.html";
}
else
{
htmltext = "32021-10.html";
}
break;
}
}
break;
}
case ICE_SCULPTURE2:
{
switch (st.getCond())
{
case 7:
{
if ((st.getInt("ex") % 4) <= 1)
{
int ex = st.getInt("ex");
if ((ex == 5) || (ex == 9) || (ex == 12))
{
htmltext = "32021-01.html";
}
else if (ex == 13)
{
htmltext = "32021-05.html";
}
else
{
ex += 2;
st.set("ex", ex);
htmltext = "32021-07.html";
}
}
else
{
htmltext = "32021-04.html";
}
break;
}
case 8:
{
htmltext = "32021-08.html";
break;
}
case 11:
{
if (!st.hasQuestItems(PIECE_OF_TABLET))
{
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = "32021-09.html";
}
else
{
htmltext = "32021-10.html";
}
break;
}
}
break;
}
case ICE_SCULPTURE3:
{
switch (st.getCond())
{
case 7:
{
if ((st.getInt("ex") % 8) <= 3)
{
int ex = st.getInt("ex");
if ((ex == 3) || (ex == 9) || (ex == 10))
{
htmltext = "32021-01.html";
}
else if (ex == 11)
{
htmltext = "32021-05.html";
}
else
{
ex += 4;
st.set("ex", ex);
htmltext = "32021-07.html";
}
}
else
{
htmltext = "32021-04.html";
}
break;
}
case 8:
{
htmltext = "32021-08.html";
break;
}
case 11:
{
if (!st.hasQuestItems(PIECE_OF_TABLET))
{
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = "32021-09.html";
}
else
{
htmltext = "32021-10.html";
}
break;
}
}
break;
}
case ICE_SCULPTURE4:
{
switch (st.getCond())
{
case 7:
{
if (st.getInt("ex") <= 7)
{
int ex = st.getInt("ex");
if ((ex == 3) || (ex == 5) || (ex == 6))
{
htmltext = "32021-01.html";
}
else if (ex == 7)
{
htmltext = "32021-05.html";
}
else
{
ex += 8;
st.set("ex", ex);
htmltext = "32021-07.html";
}
}
else
{
htmltext = "32021-04.html";
}
break;
}
case 8:
{
htmltext = "32021-08.html";
break;
}
case 11:
{
if (!st.hasQuestItems(PIECE_OF_TABLET))
{
st.giveItems(PIECE_OF_TABLET, 1);
htmltext = "32021-09.html";
}
else
{
htmltext = "32021-10.html";
}
break;
}
}
break;
}
}
break;
}
}
return htmltext;
}
}