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>Grand Master Tobias:<br>
What brought you here?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Say you're here to give him this book.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Master Tobias:<br>
Hm... I lost this book a LONG time ago! Thank you, brother!<br>
Funny... This is a kid's book, I remember taking it so seriously! Ah, to be young. Anyhow, thank you for this unexpected gift. I thank you again.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priestess of the Earth Chichirin:<br>
What can I do for you?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Say that you came to give her this book</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Earth Priestess Chichirin:<br>
Oh, this book is...?! ...Where did you find this? I thought I lost it a long time ago. How did you find this book? Wow, you have an amazing talent.<br>
This book reminds me of the days in my youth. Thank you so much!! May blessing of Earth Goddess be upon you!! Karna Mapra!!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Cardinal Seresin:<br>
What can I do for you?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Say that you came to give him this book</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Cardinal Seresin:<br>
Huh? I've seen this book...?! ...Where did you find this? I thought I lost it... Thank you so much.<br>
I remember spending countless hours with my nose in this book, studying religion and daydreaming when I was young. Now.. I'm too busy for such things. Anyway, this book is sentimental. I appreciate you bringing it to me.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Holly:<br>
What is it?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Say you're here to deliver this book.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Holly:<br>
Thank you SO much!!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Gatekeeper Flauen:<br>
Greetings, traveler. Can I help you...?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Say that you came to give her this book</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Gatekeeper Flauen:<br>
Hey, I know this book...?! ...Where did you find this?? Incredible! Man... this thing brings back some memories eh? Well, like most things I guess you had to have been there. This was very nice of you.<br>
Dear Sophia... I wonder what she's up to anymore. Probably looks more like her mom now... Where does the time go?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Dominic:<br>
What would possess YOU to speak to me?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Is this book yours?</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Priest Dominic:<br>
You aren't afraid to look me in the eye. That shows your inner bravery. Tell me, brave one, where did you find this book?<br>
Interesting. If you were one of my family, I would share a story with you about this book.<br>
If there is nothing else...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Saint of Light Agnes:<br>
Do you require the services of a saint? Weddings are down the hall...<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Say you came here to return this book.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Saint of Light Agnes:<br>
I discovered my dream of sainthood with this book. I here I thought I lost it... or gave it away? I don't remember.. And now you brought it to me! Thank you!<br>
Because of you I am inspired to pray!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Blacksmith Buryun:<br>
Hey, how did you know I collect books? It is for me, right?<br>
<a action="bypass -h Quest Q00464_Oath end_quest">Nod your head</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Blacksmith Buryun:<br>
Oh, this book is...?! ...Where did you find this? I thought I lost it a long time ago, now you've found it for me... Thank you very much.<br>
This book reminds me of old days. Oh, I can see it's changed during all these years. I guess it needs some repair. Anyway, thank you so much!!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
Is there something I can help you with? You have that look... Whatever it is I will help if I can...<br>
<a action="bypass -h Quest Q00464_Oath 32596-02.html">Ask about this book</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Library of Sages Director Sophia:<br>
This book is an antique. But I don't think it belongs to this library...<br>
Why do you think it is one of ours...?<br>
<a action="bypass -h Quest Q00464_Oath 32596-03.html">Tell her how you found this book and that the name Sophia is written in it</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Library of Sages Director Sophia:<br>
Really? May I take a look? Hmm... It is familiar... I remember something...<br>
I'm thinking... thinking... thinking... AHA!! I just remembered!<br>
<a action="bypass -h Quest Q00464_Oath 32596-04.html">"Whose book is this??"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
This book was a gift from <font color="LEVEL">Seresin</font> who is now a Cardinal. He gave it to me but I lost it during a fit of spring cleaning. How strange that you have it now... are these pages bunny eared?!<br>
...Listen. You probably didn't know this, but I don't believe in coincidence. You found this book for a reason. Maybe that reason was to return it to <font color="LEVEL">Cardinal Seresin in Oren Town</font>?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
This book? Well <font color="LEVEL">Holly</font>, who is now a grocer in Aden Castle, gave this book to me. And I lost it... for a library director I sure lose a lot of books.. Anyway let me tell you a secret... ready? I don't believe in coincidence.<br>
...That being said, perhaps fate wants you to take this book back to <font color="LEVEL">Holly, the grocer in Aden Castle</font>?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
This book is actually quite familiar to me. Hmm... smell those pages! Decades ago I gave this book to <font color="LEVEL">Flauen</font> who is now the Gatekeeper in Heine. She and I were close friends growing up. But our paths separated and I've lost touch with her. I wonder what she's up to these days...?<br>
...Let me say this; I don't believe in coincidences. Perhaps you could do something for me... would you take this book to <font color="LEVEL">Flauen the Gatekeeper in Heine</font>? And tell my old friend that I said hello? If you do, I can take care of any late fees at the library for you...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
Ahh yes. I remember this book, <font color="LEVEL">Dominic</font> who is now a priest in Rune Town lost this book to me in a staring contest. But then I misplaced it and I haven't seen it since...<br>
...It sounds like coincidence, but it isn't. This book wants to go home. You found it, you should be the one to take it to <font color="LEVEL">Priest Dominic in Rune Town Temple</font> dont you think?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
I remember this book. The <font color="LEVEL">Priest of the Earth, Chichirin</font> who is now in Dwarven Village gave this book to me after putting gum in my hair. And though it is unlike me, I lost it and my hairbrush one sunny afternoon....<br>
...Hey, do you believe in coincidence? Cause' I don't! I think you should return this book to <font color="LEVEL">Priest of the Earth, Chichirin in Dwarven Village</font> for me.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
This book hasn't aged a day... It was long ago and just after lunch. We were playing outside when <font color="LEVEL">Grand Master Tobias</font> who is now in Gludio Town used this book to squash a bee. We were both so terrified that the bee wasn't dead that we left it there. I meant to pick it up in a day or so, but somehow we both forgot. But now it is here, as if some cosmic fate is trying to tell us something. Listen..., hear that? I think it's saying 'hey, why not take me back to' <font color="LEVEL">Grand Master Tobias of Dark Elves Guild in Gludio Town</font>?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
This book is... hey I remember this book! You see, many winters ago <font color="LEVEL">Buryun</font> who is now a blacksmith in Schuttgart Town was using this book to sled down a snowy hill. I thought it looked fun and asked if I could try. I was going too fast though, and the book slipped out from under me as I went over a bank of snow. We never did find it...,<br>
...This is not just a coincidence. I think this book wants to return home, and I think because you found it that you should be the one to do it. Can you take it to the <font color="LEVEL">Blacksmith Buryun in Schuttgart Town</font>?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Library of Sages Director Sophia:<br>
I never thought I'd see this book again. No seriously, a long time ago <font color="LEVEL">Agnes</font>, who is now called Saint of Light, and myself went camping. We realized we forgot the kindling needed to start the campfire, but she did have this book. Look, I'm a librarian, I can't really say what happened next... anyway... somehow it is back as if fate had its own plans for the book.<br>
...I think you should take it back to <font color="LEVEL">Agnes, Saint of Light in Goddard Town</font>.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
You should return the book to <font color="LEVEL">Cardinal Seresin in Oren Town</font> before he dies of old age.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
Still here? You should get that book back to <font color="LEVEL">Merchant Holly in Aden Town</font>. I know she'll really appreciate it.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
What are you waiting for? Find <font color="LEVEL">Flauen the Gatekeeper in Heine</font>. I know he'll love seeing that book again.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
No time like the present! Return the book to <font color="LEVEL">Priest Dominic in Rune</font>. He'll really get a kick out of seeing it again.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
Need a bathroom break first? Get this book to <font color="LEVEL">Priest of the Earth, Chichirin in Dwarven Village</font>. That way it can complete its destiny.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
I'm not sure what you are waiting for. But <font color="LEVEL">Grand Master Tobias in Gludio Town</font> would love to get that book back after all these years. Chop chop!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
Still here? Once again the owner of the book is <font color="LEVEL">Blacksmith Buryun in Schuttgart</font>. He'll really enjoy seeing that book again.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Library of Sages Director Sophia:<br>
Tic toc, we aren't getting any younger. Find <font color="LEVEL">Agnes, the Saint of Light in Goddard</font> and give her that book. Then tell her I said hi, and she still has some late fees at the library.
</body></html>

View File

@@ -0,0 +1,271 @@
/*
* 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.Q00464_Oath;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.enums.QuestType;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Oath (464)
* @author malyelfik
*/
public class Q00464_Oath extends Quest
{
// NPCs @formatter:off
private static final int[][] NPC =
{
// NPC id, EXP, SP, Adena
{32596, 0, 0, 0},
{30657, 15449, 17696, 42910},
{30839, 189377, 21692, 52599},
{30899, 249180, 28542, 69210},
{31350, 249180, 28542, 69210},
{30539, 19408, 47062, 169442},
{30297, 24146, 58551, 210806},
{31960, 15449, 17696, 42910},
{31588, 15449, 17696, 42910}
};
// @formatter:on
// Items
private static final int STRONGBOX = 15537;
private static final int BOOK = 15538;
private static final int BOOK2 = 15539;
// Misc
private static final int MIN_LEVEL = 82;
// Monsters
private static final Map<Integer, Integer> MOBS = new HashMap<>();
static
{
MOBS.put(22799, 9);
MOBS.put(22794, 6);
MOBS.put(22800, 10);
MOBS.put(22796, 9);
MOBS.put(22798, 9);
MOBS.put(22795, 8);
MOBS.put(22797, 7);
MOBS.put(22789, 5);
MOBS.put(22791, 4);
MOBS.put(22790, 5);
MOBS.put(22792, 4);
MOBS.put(22793, 5);
}
public Q00464_Oath()
{
super(464, Q00464_Oath.class.getSimpleName(), "Oath");
for (int[] npc : NPC)
{
addTalkId(npc[0]);
}
addKillId(MOBS.keySet());
addItemTalkId(STRONGBOX);
registerQuestItems(BOOK, BOOK2);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "32596-04.html":
if (!st.hasQuestItems(BOOK))
{
return getNoQuestMsg(player);
}
int cond = getRandom(2, 9);
st.set("npc", String.valueOf(NPC[cond - 1][0]));
st.setCond(cond, true);
st.takeItems(BOOK, 1);
st.giveItems(BOOK2, 1);
switch (cond)
{
case 2:
htmltext = "32596-04.html";
break;
case 3:
htmltext = "32596-04a.html";
break;
case 4:
htmltext = "32596-04b.html";
break;
case 5:
htmltext = "32596-04c.html";
break;
case 6:
htmltext = "32596-04d.html";
break;
case 7:
htmltext = "32596-04e.html";
break;
case 8:
htmltext = "32596-04f.html";
break;
case 9:
htmltext = "32596-04g.html";
break;
}
break;
case "end_quest":
if (!st.hasQuestItems(BOOK2))
{
return getNoQuestMsg(player);
}
int i = st.getCond() - 1;
st.addExpAndSp(NPC[i][1], NPC[i][2]);
st.giveAdena(NPC[i][3], true);
st.exitQuest(QuestType.DAILY, true);
htmltext = npc.getId() + "-02.html";
break;
case "32596-02.html":
case "32596-03.html":
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onItemTalk(L2ItemInstance item, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
boolean startQuest = false;
switch (st.getState())
{
case State.CREATED:
startQuest = true;
break;
case State.STARTED:
htmltext = "strongbox-02.html";
break;
case State.COMPLETED:
if (st.isNowAvailable())
{
st.setState(State.CREATED);
startQuest = true;
}
else
{
htmltext = "strongbox-03.html";
}
break;
}
if (startQuest)
{
if (player.getLevel() >= MIN_LEVEL)
{
st.startQuest();
st.takeItems(STRONGBOX, 1);
st.giveItems(BOOK, 1);
htmltext = "strongbox-01.htm";
}
else
{
htmltext = "strongbox-00.htm";
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
if (getRandom(1000) < MOBS.get(npc.getId()))
{
npc.dropItem(killer, STRONGBOX, 1);
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if ((st != null) && st.isStarted())
{
int npcId = npc.getId();
if (npcId == NPC[0][0])
{
switch (st.getCond())
{
case 1:
htmltext = "32596-01.html";
break;
case 2:
htmltext = "32596-05.html";
break;
case 3:
htmltext = "32596-05a.html";
break;
case 4:
htmltext = "32596-05b.html";
break;
case 5:
htmltext = "32596-05c.html";
break;
case 6:
htmltext = "32596-05d.html";
break;
case 7:
htmltext = "32596-05e.html";
break;
case 8:
htmltext = "32596-05f.html";
break;
case 9:
htmltext = "32596-05g.html";
break;
}
}
else if ((st.getCond() > 1) && (st.getInt("npc") == npcId))
{
htmltext = npcId + "-01.html";
}
}
return htmltext;
}
}

View File

@@ -0,0 +1,4 @@
<html><body>Strongbox of Promise:<br>
No matter how much you try to open it, the strongbox does not appear to budge.<br>
(Only characters level 82 and above can take this quest.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>
You find an old book inside.<br>
You open it and turn to the first page, and see a picture that obviously harkens back to ancient times. This book is old, that is for sure.<br>
You read a note scrawled in perfect penmanship: <font color="LEVEL">To Sophia of the Library of Sages</font>. Perhaps she will know what to do with the book.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
You already performing that quest.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
This quest can be completed only once a day. This quest resets everyday at 6:30 am.
</body></html>