Some Talking Island quests rework.

Contributed by gyo.
This commit is contained in:
MobiusDev 2016-03-13 20:09:05 +00:00
parent 1b945f56e1
commit c40ff89ed3
80 changed files with 464 additions and 111 deletions

View File

@ -1,5 +1,6 @@
<html><body>Master Xonia:<br>
Welcome, Kamael.<br>I am Xonia. I wish to teach you about the classes available to our kind.<br>
Welcome, Kamael.<br1>
I am Xonia. I wish to teach you about the classes available to our kind.<br>
<font color="LEVEL">Kamael Soldiers</font> are powerful with both spell and sword, and attack with great speed. They use their opponents' souls to unleash their most powerful skills!<br>
As your strength grows, you'll notice a <font color="LEVEL">Skill Window automatically popping up</font> from time to time. You can also use the shortcut key <font color="LEVEL">ALT+K</font> to check out the list of skills you already know of.
</body></html>

View File

@ -1,3 +1,3 @@
<html><body>Master Xonia:<br>
I'm finished with my explanation. Now, you can return to Gallint and report.
I'm finished with my explanation. Now, you can return to Gallint and report.
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Master Xonia:<br>
Kamael strength to you, friend.<br>
(You have already completed this quest.)
(You have already completed this quest.)
</body></html>

View File

@ -1,6 +1,7 @@
<html><body>Master Cidnet:<br>
Welcome! I am Cidnet, skillmaster to the Elves!<br>
If you have a moment, I would like to tell you a little about some of the classes available to us Elves.<br><font color="LEVEL">Elven Fighters</font> have high Evasion Rate, Attack Accuracy, and are skilled with bows.<br>
Welcome! I am Cidnet, skillmaster to the Elves!<br1>
If you have a moment, I would like to tell you a little about some of the classes available to us Elves.<br>
<font color="LEVEL">Elven Fighters</font> have high Evasion Rate, Attack Accuracy, and are skilled with bows.<br>
<font color="LEVEL">Elven Mages</font> can cast ferociously quickly, and recover lost mana at quite a rate!<br>
If your powers improve and gain access to stronger skills, a <font color="LEVEL">Skill Window will automatically pop up</font>. Furthermore, you can use the shortcut key <font color="LEVEL">ALT+K</font>, to check out the list of skills you've learned.
</body></html>

View File

@ -1,3 +1,3 @@
<html><body>Master Cidnet:<br>
I'm finished with my explanation! You can return to Gallint and report.
<html><body>Master Cindet:<br>
I'm finished with my explanation! You can return to Gallint and report.
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Master Cidnet:<br>
Good, good! I have trained you well.<br>
(You have already completed this quest.)
(You have already completed this quest.)
</body></html>

View File

@ -1,7 +1,6 @@
<html><body>Master Talbot:<br>
Welcome!<br>
I am Talbot, human skillmaster, here to explain the benefits and drawbacks of the classes we can choose from.<br>
<font color="LEVEL">Human Fighters</font> mainly employ short-range melee attacks, and can handle most basic weapons and armor types.<br>
<font color="LEVEL">Human Mages</font> have an innate affinity for the power of the spoken word. They use Elemental Magic, White Magic, Supplemental Magic, Dark Magic and Summon Magic!<br>
As your strength grows, you'll notice a <font color="LEVEL">Skill Window automatically show up</font> from time to time. You can also use the shortcut key <font color="LEVEL">ALT+K</font> to check out the skills you already know.
Welcome! I am Talbot. I'm here to explain the benefits and drawbacks of the classes you can choose from.<br>
<font color="LEVEL">Human Fighters</font> focus on short-range melee attacks, and can handle basic weapons and armor types.<br>
<font color="LEVEL">Human Mages</font> have an innate affinity for the power of the spoken word. They use Elemental Magic, White Magic, Support Magic, Dark Magic and Summon Magic!<br>
When your abilities improve, the<font color="LEVEL">Skill Window</font> will appear showing any new skills you can learn. You can check your list of skills by using the shortcut key <font color="LEVEL">ALT+K</font>.
</body></html>

View File

@ -1,3 +1,3 @@
<html><body>Master Talbot:<br>
I'm finished with my explanation! Return to Gallint and report.
That's all I have to tell you. Return to Gallint for more instructions.
</body></html>

View File

@ -1,5 +1,5 @@
<html><body>Master Black:<br>
Welcome! My name is Black and I am a skillmaster to the Dark Elves.<br>
Welcome! My name is Black and I am a skillmaster to the Dark Elves.<br1>
I want to take a minute to tell you about the different classes I train.<br>
<font color="LEVEL">Dark Fighters</font> fight extremely quickly thanks to their high Atk and Evasion rates.<br>
<font color="LEVEL">Dark Mages</font> have powerful M. Atk. and high Healing abilities.<br>

View File

@ -1,3 +1,3 @@
<html><body>Gallint:<br>
<font color="LEVEL">%MASTER%!</font> Go and find them - they should be in front of the <font color="LEVEL">Administration Office</font>.
<font color="LEVEL">%MASTER%!</font> Go and find them... they should be in front of the <font color="LEVEL">Administration Office</font>.
</body></html>

View File

@ -35,13 +35,13 @@ public class Q10325_SearchingForNewPower extends Quest
// NPCs
private static final int GALLINT = 32980;
private static final int TALBOT = 32156;
private static final int CIDNET = 32148;
private static final int CINDET = 32148;
private static final int BLACK = 32161;
private static final int HERZ = 32151;
private static final int KINCAID = 32159;
private static final int XONIA = 32144;
private static final String Talbot = "Talbot";
private static final String Cidnet = "Cidnet";
private static final String Cindet = "Cindet";
private static final String Black = "Black";
private static final String Herz = "Herz";
private static final String Kincaid = "Kincaid";
@ -56,7 +56,7 @@ public class Q10325_SearchingForNewPower extends Quest
{
super(10325, Q10325_SearchingForNewPower.class.getSimpleName(), "Searching For New Power");
addStartNpc(GALLINT);
addTalkId(GALLINT, TALBOT, CIDNET, BLACK, HERZ, KINCAID, XONIA);
addTalkId(GALLINT, TALBOT, CINDET, BLACK, HERZ, KINCAID, XONIA);
addCondMaxLevel(MAX_LEVEL, "32980-07.htm");
addCondCompletedQuest(Q10324_FindingMagisterGallint.class.getSimpleName(), "32980-07.htm");
}
@ -87,7 +87,7 @@ public class Q10325_SearchingForNewPower extends Quest
}
case ELF:
{
htmltext = htmltext.replace("%MASTER%", Cidnet);
htmltext = htmltext.replace("%MASTER%", Cindet);
qs.setCond(3);
break;
}
@ -189,7 +189,7 @@ public class Q10325_SearchingForNewPower extends Quest
}
break;
}
case CIDNET:
case CINDET:
{
if (player.getRace() == Race.ELF)
{
@ -302,7 +302,7 @@ public class Q10325_SearchingForNewPower extends Quest
break;
}
case TALBOT:
case CIDNET:
case CINDET:
case BLACK:
case HERZ:
case KINCAID:

View File

@ -102,6 +102,7 @@ public class Q10363_RequestOfTheSeeker extends Quest
if (qs.getCond() == 6)
{
qs.setCond(7);
showOnScreenMsg(player, NpcStringId.USE_THE_YE_SAGIRA_TELEPORT_DEVICE_TO_GO_TO_EXPLORATION_AREA_3, ExShowScreenMessage.TOP_CENTER, 10000);
htmltext = event;
}
break;

View File

@ -1,6 +1,6 @@
<html><body>Celin:<br>
Those who work together soon understand each other and begin to form bonds, you know.<br>
You've heard of espirit de corps, right? That sense of camaraderie can only be made in times of extreme suffering.<br>
That's why boot camp is so draining - the do it to establish group mentality... the physical conditional is just a bonus.<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-02.htm">"I see."</button>
You've heard of esprit de corps, right? That sense of camaraderie can only be made in times of extreme suffering.<br>
That's why boot camp is so draining - they do it to establish group mentality... the physical conditional is just a bonus.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-02.htm">"I see."</Button>
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Celin:<br>
Well... good!<br>
So you must see how jarring it is when two commandos in the same unit don't see eye to eye! Sadly, I'm not jst spouting hypotheticals here - there are two soldiers in my unit who won't talk to each other. If they were to go into combat, they'd be one hell of a weak link...<br>
I want somone to get them talking again. Negotiate, bang their head together... Idon't care.<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-03.htm">"Who are they?"</button>
So you must see how jarring it is when two commandos in the same unit don't see eye to eye! Sadly, I'm not just spouting hypotheticals here - there are two soldiers in my unit who won't talk to each other. If they were to go into combat, they'd be one hell of a weak link...<br>
I want someone to get them talking again. Negotiate, bang their heads together... I don't care.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33451-03.htm">"Who are they?"</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Celin:<br>
There's Walter in Exploration Zone 3, and Dep in Exploration Zone4.<br>
There's Walter in Exploration Zone 3, and Dep in Exploration Zone 4.<br>
Go to <font color="LEVEL">Walter</font> first - he's closer, and persuade him to sort things out.
</body></html>

View File

@ -1,3 +1,3 @@
<html><body>Celin:<br>
Have you talked to Walter?
Have you talked to Walter?<br>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Celin:<br>
Good, I hope that you do! Trust your allies, friend. They make you stronger than you'll ever be alone.<br>
(Only those who have completed the "Request of Rangers" quest, and are between levels 14-25, may start this quest)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Celin:<br>
Good to see you friend! Things are much better here.<br>
(You have already completed this quest.)
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Walter:<br>
Did Dep send you? He did, din't he. Well, I have nothing more to say to him. Hrmph!<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-02.html">"No, Celin sent me."</button>
Did Dep send you? He did, didn't he. Well, I have nothing more to say to him. Hrmph!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-02.html">"No, Celin sent me."</Button>
</body></html>

View File

@ -1,5 +1,5 @@
<html><body>Walter:<br>
Celin just doesn't know when to give up!<br>
Sigh... I tell you, it's about Dep, you can go back and tell Celin it won't work! I simply refuse to get involved with someone who doesn't have a shred of common sense.<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-03.html">"What happened?"</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-03.html">"What happened?"</Button>
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Walter:<br>
That's the problem, I don't know what happened! We've been working together just fine, then suddenly he gets all bent out of shape and storms off. I tried to find out what the problem was, and smooth things over, but he wouldn't even talk to me.<br>
I don't know what he's all worked up about, and frankly, I don't care! Stubborn old... Grr!<br>
Well, I have some work related papers that I want to give to him, but I don't want to make waves. Could you take them to him for me?
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-04.html">"What do you need delivered?"</button>
Well, I have some work related papers that I want to give to him, but I don't want to make waves. Could you take them to him for me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33452-04.html">"What do you need delivered?"</Button>
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Walter:<br>
Ah, it's not so difficult. Old <font color="LEVEL">pieces of paper</font> have been appearing around here. I'm not sure what they're regarding, but Dep likes this kind of stuff.<br>
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL"> Exploration Area 4</font>.<br>
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Kraphers and Husk Avians</font>.<br>
And... say hi ti him for me, okay?
Ah, it's not so difficult. Old <font color="LEVEL">pieces of paper</font> have been appearing around here. I'm not sure what they're regarding, but Dep likes this kind of stuff.<br1>
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font> .<br>
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Kraphers and Husk Avians</font> .<br>
And... say hi to him for me, okay?
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Walter:<br>
One more time...<br>
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL"> Exploration Area 4</font>.<br>
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Kraphers and Husk Avians</font>.<br>
And... say hi ti him for me, okay?
I want you to gather 5 or so, then hand them to <font color="LEVEL">Dep</font> in <font color="LEVEL">Exploration Area 4</font> .<br1>
You'll find the pieces of paper by defeating the <font color="LEVEL">Husk Krapher and Husk Avians</font> .<br>
And... say hi to him for me, okay?
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Walter:<br>
The pieces of paper are quite hard to read.<br>
Take them to <font color="LEVEL">Dep</font> in <font color="LEVEL">the 4th Exploration Area</font>. He'll be interested in them.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Walter:<br>
Thanks to you, Dep and I have worked out our little misunderstanding. Thank you.<br>
(This quest has already been completed.)
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Dep:<br>
Sigh...<br>
Sigh...<br1>
When I'm feeling blue, I want go away, and be alone somewhere quiet. But, when you work as a ranger, you can't get away from busy place like these.<br>
Anyway, why are you here?<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-02.html">"I've gathered the dirty papers."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-02.html">"I've gathered the dirty papers."</Button>
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Dep:<br>
The papers from the Ruins of Ye Sagira?<br>
Ye Sagira was the home of the giants - papers discovered there will tell us more about the giants!<br>
Show them to me, and tell me... how did you find out about the papers?<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-03.html">"Walter told me."</button>
Show them to me, and tell me... how did you find out about the papers?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-03.html">"Walter told me."</Button>
</body></html>

View File

@ -1,7 +1,7 @@
<html><body>Dep:<br>
Walter? Hm...<br>
Actually, I've know about the paper pieces in Ye Sagira for quite some time now...<br>
Actually, I've known about the paper pieces in Ye Sagira for quite some time now...<br>
I just wasn't sure exactly where they were. I was looking for them a while back, wandering through Exploration Zone 3 with Walter, but he kept following me and talking to me and... well... I ended up losing my temper and shouting at him... we haven't spoken since.<br>
Did he say anything else?<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-04.html">"He said he wanted to talk and make up."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10364_ObligationsOfTheSeeker 33453-04.html">"He said he wanted to talk and make up."</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Dep:<br>
R... really?<br>
R... really?<br><br>
I should apologize to Walter...Well, let me take those pieces of paper. I hope there's information about the giants in them!
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Dep:<br>
Walter accepted my apologies!<br1>
Thank you so much!<br>
(You have already completed this quest)
</body></html>

View File

@ -22,13 +22,15 @@ import com.l2jmobius.gameserver.model.holders.ItemHolder;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.util.Util;
import quests.Q10363_RequestOfTheSeeker.Q10363_RequestOfTheSeeker;
/**
* Obligations of the Seeker (10364)
* @author spider
* @author spider, gyo
*/
public class Q10364_ObligationsOfTheSeeker extends Quest
{
@ -59,8 +61,8 @@ public class Q10364_ObligationsOfTheSeeker extends Quest
addTalkId(CELIN, WALTER, DEP);
addKillId(KRAPHER, AVIAN);
registerQuestItems(DIRTY_PIECE_OF_PAPER);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.htm");
addCondCompletedQuest(Q10363_RequestOfTheSeeker.class.getSimpleName(), "no_prequest.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33451-05.htm");
addCondCompletedQuest(Q10363_RequestOfTheSeeker.class.getSimpleName(), "33451-05.htm");
}
@Override
@ -97,7 +99,7 @@ public class Q10364_ObligationsOfTheSeeker extends Quest
if (qs.isCond(1))
{
htmltext = event;
qs.setCond(2);
qs.setCond(2, true);
}
break;
}
@ -138,7 +140,24 @@ public class Q10364_ObligationsOfTheSeeker extends Quest
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
switch (npc.getId())
{
case CELIN:
{
htmltext = "33451-06.html";
break;
}
case WALTER:
{
htmltext = "33452-07.html";
break;
}
case DEP:
{
htmltext = "33453-05.html";
break;
}
}
break;
}
case State.STARTED:
@ -147,7 +166,7 @@ public class Q10364_ObligationsOfTheSeeker extends Quest
{
case CELIN:
{
htmltext = "33451-04.htm";
htmltext = "33451-04.html";
break;
}
case WALTER:
@ -156,10 +175,14 @@ public class Q10364_ObligationsOfTheSeeker extends Quest
{
htmltext = "33452-01.html";
}
else
else if (qs.isCond(2))
{
htmltext = "33452-05.html";
}
else
{
htmltext = "33452-06.html";
}
break;
}
case DEP:
@ -188,13 +211,15 @@ public class Q10364_ObligationsOfTheSeeker extends Quest
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if ((qs != null) && qs.isCond(2) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
{
if (getQuestItemsCount(qs.getPlayer(), DIRTY_PIECE_OF_PAPER) < DPP_REQUIRED)
if (getQuestItemsCount(qs.getPlayer(), DIRTY_PIECE_OF_PAPER) < (DPP_REQUIRED - 1))
{
giveItems(qs.getPlayer(), DIRTY_PIECE_OF_PAPER, 1);
}
else
{
qs.setCond(3);
giveItems(qs.getPlayer(), DIRTY_PIECE_OF_PAPER, 1);
qs.setCond(3, true);
showOnScreenMsg(qs.getPlayer(), NpcStringId.USE_THE_YE_SAGIRA_TELEPORT_DEVICE_TO_GO_TO_EXPLORATION_AREA_4, ExShowScreenMessage.TOP_CENTER, 10000);
}
}
return super.onKill(npc, killer, isSummon);

View File

@ -1,3 +0,0 @@
<html><body>You don't meet level requirements<br>
(Quest available from level 14 to level 25)
</body></html>

View File

@ -1,2 +0,0 @@
<html><body>To begin this quest, you need to complete Request of the Seeker quest first.
</body></html>

View File

@ -1,4 +1,3 @@
<html><body>Sebion:<br>
I'm planning to take King back to town. He's fine, don't worry.<br>
(Quest already completed.)
Yes? You came to give me a dog? Where is it? Did you let it get away from you? Go back to the <font color="LEVEL">4th Exploration Zone</font>, and tell Dep about it.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sebion:<br>
I'm planning to take King back to town. He's fine, don't worry.<br>
(Quest already complete)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sebion:<br>
This place is dangerous. I think it's best if you go back to town.<br>
(Only level 16-25 characters who have completed the scout mission may complete this quest)
</body></html>

View File

@ -3,5 +3,5 @@ Yes. I want you to take King here to somewhere far away... to Sebion!<br>
Sebion will be able to take care of King much better than me. Right, King?<br1>
(King barks.)<br1>
Ha - see! He knows where to find Sebion, could you just follow him and make sure he gets there safe?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10365_SeekerEscort 33453-03.html">"Sure."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10365_SeekerEscort 33453-03.htm">"Sure."</Button>
</body></html>

View File

@ -1,5 +1,5 @@
<html><body>Dep:<br>
<html><head><body>Dep:<br>
Thank you!<br1>
<font color="LEVEL">Sebion</font> is in <font color="LEVEL">Exploration Zone 5</font>. You just need to follow King, and he'll guide you to Sebion.<br>
Listen, friend. King cannot come back here. You hear that King? You can't come back! It's not safe!
<font color="LEVEL">Sebion</font> is in <font color="LEVEL">Exploration Zone 5</font> . You just need to follow King, and he'll guide you to Sebion.<br>
Listen, friend. King cannot come back here. You hear that King? You can't come back! It's not safe!
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Dep:<br>
Don't take your eyes off King! If he loses you, he'll just come back to me! It's not safe here!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10365_SeekerEscort SPAWN_BLOODHOUND">"Okay. Got it"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10365_SeekerEscort SPAWN_BLOODHOUND">"Okay. Got it."</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Dep:<br>
I can't just give King to anybody!<br>
(Only characters between level 16 and 25 can take this quest.)
(Only characters between level 16 and 25 can take on this quest.)
</body></html>

View File

@ -94,8 +94,8 @@ public final class Q10365_SeekerEscort extends Quest
addTalkId(DEP, SEBION);
addSpawnId(BLOODHOUND);
addMoveFinishedId(BLOODHOUND);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.html");
addCondCompletedQuest(Q10364_ObligationsOfTheSeeker.class.getSimpleName(), "no_level.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33453-07.html");
addCondCompletedQuest(Q10364_ObligationsOfTheSeeker.class.getSimpleName(), "33453-07.html");
}
@Override
@ -115,7 +115,7 @@ public final class Q10365_SeekerEscort extends Quest
htmltext = event;
break;
}
case "33453-03.html":
case "33453-03.htm":
{
qs.startQuest();
qs.setMemoState(2);
@ -159,7 +159,7 @@ public final class Q10365_SeekerEscort extends Quest
{
if (loc_index == 16)
{
showOnScreenMsg(player, NpcStringId.YOU_MUST_MOVE_TO_EXPLORATION_AREA_5_IN_ORDER_TO_CONTINUE, ExShowScreenMessage.TOP_CENTER, 5000);
showOnScreenMsg(player, NpcStringId.YOU_MUST_MOVE_TO_EXPLORATION_AREA_5_IN_ORDER_TO_CONTINUE, ExShowScreenMessage.TOP_CENTER, 10000);
startQuestTimer("DELETE_NPC", 3000, npc, owner);
startQuestTimer("NEXT_AREA", 7000, npc, owner);
break;
@ -188,7 +188,7 @@ public final class Q10365_SeekerEscort extends Quest
if (failCount >= 30)
{
qs.setMemoState(1);
showOnScreenMsg(player, NpcStringId.KING_HAS_RETURNED_TO_DEF_RETURN_TO_DEF_AND_START_AGAIN, ExShowScreenMessage.TOP_CENTER, 5000);
showOnScreenMsg(player, NpcStringId.KING_HAS_RETURNED_TO_DEF_RETURN_TO_DEF_AND_START_AGAIN, ExShowScreenMessage.TOP_CENTER, 10000);
npc.deleteMe();
break;
}
@ -253,7 +253,7 @@ public final class Q10365_SeekerEscort extends Quest
if (owner != null)
{
showOnScreenMsg(owner, NpcStringId.CATCH_UP_TO_KING_HE_S_WAITING, ExShowScreenMessage.TOP_CENTER, 5000);
showOnScreenMsg(owner, NpcStringId.CATCH_UP_TO_KING_HE_S_WAITING, ExShowScreenMessage.TOP_CENTER, 1000);
npc.setHeading(Util.calculateHeadingFrom(npc, owner));
npc.broadcastPacket(new ExRotation(npc.getObjectId(), npc.getHeading()));
startQuestTimer("CHECK_PLAYER", 1000, npc, owner);
@ -270,11 +270,7 @@ public final class Q10365_SeekerEscort extends Quest
{
case State.CREATED:
{
if (npc.getId() == DEP)
{
htmltext = "33453-01.htm";
break;
}
htmltext = npc.getId() == DEP ? "33453-01.htm" : "32978-05.html";
break;
}
case State.STARTED:
@ -301,6 +297,10 @@ public final class Q10365_SeekerEscort extends Quest
{
htmltext = "32978-01.html";
}
else
{
htmltext = "32978-03.html";
}
break;
}
break;
@ -309,7 +309,7 @@ public final class Q10365_SeekerEscort extends Quest
{
if (npc.getId() == SEBION)
{
htmltext = "32978-03.html";
htmltext = "32978-04.html";
}
else
{

View File

@ -0,0 +1,4 @@
<html><body>Grand Master Valfar:<br>
I often hear of your outstanding performances, child, but did you complete the work I assigned you in the Ruins of Ye Sagira too?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32146-02.html">"Well..."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Grand Master Valfar:<br>
Good! This is wonderful news. Now, perhaps we'll start to see a return to normality, even if it takes a little while for those beasts to be killed off for good.<br1>
Is there anything else?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32146-03.html>"Yes. Sebion was hurt."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Grand Master Valfar:<br>
Sebion?! How?? He's not just a scholar, but a skilled Wizard too. I'm surprised he was hurt!<br1>
Hmm. I will make sure he returns for rest as soon as possible, and will send Bloodhoud out in his stead.<br>
Thank you, friend. May Rodenpicula watch over you!
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Grand Master Valfar:<br>
I educate Kamael, stranger. You are not one of my kind.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Master Valfar:<br>
We owe you more than you know, friend. Again, thank you.<br>
(You have already completed this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Master Rivian:<br>
Aha! You're back sooner than I expected. Did everything go well?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32147-02.html">"Well..."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Master Rivian:<br>
Ah, excellent! If the monsters have been cut down in number, then perhaps the rest will get the message and flee. At any rate, you've helped secure our home, and we owe you a great deal. Do you have anything else to report?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32147-03.html">"Yes...Sebion was hurt."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Master Rivian:<br>
What? Sebion was hurt? How? I assume from your tone that he's not been badly hurt, but still... he is an asset we can ill afford to lose. I will send a replacement soon. <br>
Thank you for your report, friend. You have helped save our home, and for that we are all extremely grateful. I will pray that the blessings of Einhasad will be with you always.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Grand Master Rivian:<br>
I'm in charge of educating the Elf race. I believe you came to the wrong person!
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Master Rivian:<br>
Thank you again, friend. You have guided us through a great storm.<br>
(You have already completed this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Prefect Took:<br>
Welcome. How goes the task in Ye Sagira? What's the latest news?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32150-02.html">"Let me tell you what has been going on in the Ruins of Ye Sagira."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Prefect Took:<br>
Wonderful, wonderful. The monster population is down, the situation is under control. Lovely. Good work! I was worried that I'd run out of scholars before we ran out of scholar eating monsters. Ha! Anything else to report?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32150-03.html">"Sebion was hurt."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Prefect Took:<br>
Sebion is injured? That's surprising... he has such strong magic, I wouldn't have thought.... That's strange. I'll have to send in additional support workers.<br>
We need to hire a Bloodhound for his return. King? Is that his name? Yes, we'll need King to protect Sebion's return journey. Thanks for your detailed report. May blessing of darkness enhance your future.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>High Prefect Took:<br>
I'm only in charge of Orcs. You don't look much like an Orc....
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Prefect Took:<br>
They're making great strides with their research at Ruins of Ye Sagira, thanks to you.<br>
(You have already completed this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Priest Franco:<br>
You returned from the Ruins of Ye Sagira! Are you well? What was going on there?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 33750-02.html">"Well..."</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>High Priest Franco:<br>
You were a great help! With the monsters cut down, perhaps we will start to see peace flow through this region again. But tell me, friend -- what happened to the scholars there? I doubt they were able to fend the monsters off?<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10366_RuinsStatusUpdate 33750-03.html"> "Sebion was hurt."</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 33750-03.html">"Sebion was hurt."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>High Priest Franco:<br>
Hmm. I train humans, not your kind. You should look elsewhere for your training.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>High Priest Franco:<br>
Thank you again, friend. You have done so much for us!<br>
(You have already completed this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Head Blacksmith Moka:<br>
Hmm? You're back from Ye Sagira already? I have a lot of questions for you! So, what's the situation in Ye Sagira? How are the seekers doing? Are they finding anything interesting?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32157-02.html">"Well..."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Head Blacksmith Moka:<br>
Marvelous! It's good to hear that the monster population is finally on the downturn. Such good news. I was worried, everyone over there has a great scholarly pedigree, but no one had any good fighting skills or common sense! You know that scientist type. Brainy, but not terribly practical. This is a great weight off of my shoulders. Do you have any other news?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32157-03.html">"Sebion was hurt."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Head Blacksmith Moka:<br>
Sebion is injured?! How? I know he was conducting research in the Labyrinth of Belis... which is not exactly a cake walk, but what happened? Hmm... He's going to need someone to help dig and carry. I'll send over some additional bodies to help out.<br>
And, we'll need a Bloodhound to protect him on his return. Bloodhounds are rather pricey right now, but we certainly can't afford any more severe injuries, or deaths! Thanks for your report. We be in touch, when we have need of your skills again.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Head Blacksmith Moka:<br>
I'm in charge of Dwarf training and I'm pretty sure you're not a Dwarf. You need to locate your own race's master.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Head Blacksmith Moka:<br>
The pace of research over at the Ruins of Ye Sagira has picked up greatly, thanks entirely to your good work. Nicely done!<br>
(You have already completed this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Magister Devon:<br>
Welcome, and well done! I've heard much about you, but... I'd like to hear a report directly from the horse's mouth... so to speak. Did you finish the work in the Ruins of Ye Sagira? How are search members doing?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32160-02.html">"Well..."</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Grand Magister Devon:<br>
Then you are due our thanks, friend. Perhaps over time, the area will regain its natural beauty, eh?<br1>
I don't know how long this peace will hold, but I do know that you've given me one less thing to worry about. Thank you.<br1>
Now, is there anything else we need to discuss?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32160-03.html">"Yes. Sebion was hurt..."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Magister Devon:<br>
Badly? Sebion is an able mage, and should be able to tend to his own woumds, but... hmm... I will make sure he is replaced.<br>
When Sebion returns, we should bring and protect Bloodhound as well. Thank you for the detailed report - I will pray that the Blessing of Darkness be with you for years to come.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Grand Magister Devon:<br>
I'm in charge of educating the Dark Elf race. I think you came to the wrong teacher - please go to your race master!
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Grand Magister Devon:<br>
The investigation on the Ruins of Ye Sagira is still ongoing, friend. We have you to thank for getting us this close though.<br>
(You have already completed this quest.)
</body></html>

View File

@ -1,5 +1,5 @@
<html><body>Sebion:<br>
You've really gotten the monsters in the Ruins under control. I mean, there are still some about, but it's not nearly so bad. I'm just waiting for my replacement to come, so I can head back to town and concentrate on recovering.<br>
But before I go, I have one more favor to ask of you.<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10366_RuinsStatusUpdate 32978-02.htm">"What is it?"</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32978-02.htm">"What is it?"</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Sebion:<br>
Tell the master in the Talking Island Administration Office that things are getting better in the Ruins. And, while you're there... could you poke them to make sure they haven't forgotten about replacing me out here.<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10366_RuinsStatusUpdate 32978-03.htm">"No problem"</button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10366_RuinsStatusUpdate 32978-03.html">"No problem."</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Sebion:<br>
Oh, that's a relief. Now I won't have to contact Lakcis and Dep. Use your <font color="LEVEL">Scroll of Escape</font> to travel to the <font color="LEVEL">Administration Office</font> and tell <font color="LEVEL">High Priest Franco</font> about the situation here.<br>
Thank you for everything you've done. I'm in your debt.
Oh, that's a relief. Now I won't have to contact Lakcis and Dep. Use your <font color="LEVEL">Scroll of Escape</font> to travel to the <font color="LEVEL">Administration Office</font> and tell <font color="LEVEL">%MASTER%</font> about the situation here.<br>
Thank you for everything you've done. I'm in your debt.<br>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Sebion:<br>
Oh, that's a relief. Now I won't have to contact Lakcis and Dep. Use your <font color="LEVEL">Scroll of Escape</font> to travel to the <font color="LEVEL">Administration Office</font> and tell <font color="LEVEL">High Priest Franco</font> about the situation here.<br>
Oh, that's a relief. Now I won't have to contact Lakcis and Dep. Use your <font color="LEVEL">Scroll of Escape</font> to travel to the <font color="LEVEL">Administration Office</font> and tell <font color="LEVEL">%MASTER%</font> about the situation here.<br1>
Thank you for everything you've done. I'm in your debt.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sebion:<br>
Here is very dangerous, I think you better get back in the village.<br>
(The quest is avaiable after reaching level 16 and until level 25.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Sebion:<br>
Being out here is really slowing my recovery. I hope they send my replacement soon...<br>
(This quest is already completed)
</body></html>

View File

@ -1,4 +0,0 @@
<html><body>High Priest Franco:<br>
You returned from the RUins of Ye Sagira! Are you well? What was going there?<br>
<button align=left icon=NORMAL action="bypass -h Quest Q10366_RuinsStatusUpdate 33750-02.html">"Well.."</button>
</body></html>

View File

@ -16,17 +16,20 @@
*/
package quests.Q10366_RuinsStatusUpdate;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import quests.Q10365_SeekerEscort.Q10365_SeekerEscort;
/**
* Ruins status update (10366)
* @author spider
* @author spider, gyo
*/
public class Q10366_RuinsStatusUpdate extends Quest
{
@ -45,14 +48,21 @@ public class Q10366_RuinsStatusUpdate extends Quest
// Requirements
private static final int MIN_LEVEL = 16;
private static final int MAX_LEVEL = 25;
// NPCs Name
private static final String GRAND_MAGISTER_DEVON = "Grand Magister Devon";
private static final String GRAND_MASTER_RIVIAN = "Grand Master Rivian";
private static final String GRAND_MASTER_VALFAR = "Grand Master Valfar";
private static final String HEAD_BLACKSMITH_MOKA = "Head Blacksmith Moka";
private static final String HIGH_PREFECT_TOOK = "High Prefect Took";
private static final String HIGH_PRIEST_FRANCO = "High Priest Franco";
public Q10366_RuinsStatusUpdate()
{
super(10366, Q10366_RuinsStatusUpdate.class.getSimpleName(), "Ruins status update");
addStartNpc(SEBION);
addTalkId(FRANCO, VALFAR, RIVIAN, TOOK, MOKA, DEVON, SEBION);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.htm");
addCondCompletedQuest(Q10365_SeekerEscort.class.getSimpleName(), "no_prequest.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "32978-05.htm");
addCondCompletedQuest(Q10365_SeekerEscort.class.getSimpleName(), "32978-05.htm");
}
@Override
@ -72,19 +82,68 @@ public class Q10366_RuinsStatusUpdate extends Quest
htmltext = event;
break;
}
case "32978-03.htm": // FIXME: add race-specified texts
case "32978-03.html":
{
qs.startQuest();
qs.setCond(2);
htmltext = event;
showOnScreenMsg(qs.getPlayer(), NpcStringId.USE_THE_ESCAPE_SCROLL_IN_YOUR_INVENTORY_TO_GO_TO_THE_ADMINISTRATIVE_OFFICE_IN_TALKING_ISLAND, ExShowScreenMessage.TOP_CENTER, 10000);
htmltext = getHtm(player.getHtmlPrefix(), event);
switch (player.getRace())
{
case HUMAN:
{
qs.setCond(2);
htmltext = htmltext.replace("%MASTER%", HIGH_PRIEST_FRANCO);
break;
}
case ELF:
{
qs.setCond(3);
htmltext = htmltext.replace("%MASTER%", GRAND_MASTER_RIVIAN);
break;
}
case DARK_ELF:
{
qs.setCond(4);
htmltext = htmltext.replace("%MASTER%", GRAND_MAGISTER_DEVON);
break;
}
case ORC:
{
qs.setCond(5);
htmltext = htmltext.replace("%MASTER%", HIGH_PREFECT_TOOK);
break;
}
case DWARF:
{
qs.setCond(6);
htmltext = htmltext.replace("%MASTER%", HEAD_BLACKSMITH_MOKA);
break;
}
case KAMAEL:
{
qs.setCond(7);
htmltext = htmltext.replace("%MASTER%", GRAND_MASTER_VALFAR);
break;
}
}
break;
}
case "33750-02.html":
case "32146-02.html":
case "32147-02.html":
case "32150-02.html":
case "32153-02.html":
case "32157-02.html":
case "32160-02.html":
{
htmltext = event;
break;
}
case "33750-03.html":
case "32146-03.html":
case "32147-03.html":
case "32150-03.html":
case "32153-03.html":
case "32157-03.html":
case "32160-03.html":
{
if (qs.getCond() > 1)
{
@ -117,17 +176,112 @@ public class Q10366_RuinsStatusUpdate extends Quest
{
case SEBION:
{
htmltext = "32978-04.html";
htmltext = getHtm(player.getHtmlPrefix(), "32978-04.html");
switch (player.getRace())
{
case HUMAN:
{
htmltext = htmltext.replace("%MASTER%", HIGH_PRIEST_FRANCO);
break;
}
case ELF:
{
htmltext = htmltext.replace("%MASTER%", GRAND_MASTER_RIVIAN);
break;
}
case DARK_ELF:
{
htmltext = htmltext.replace("%MASTER%", GRAND_MAGISTER_DEVON);
break;
}
case ORC:
{
htmltext = htmltext.replace("%MASTER%", HIGH_PREFECT_TOOK);
break;
}
case DWARF:
{
htmltext = htmltext.replace("%MASTER%", HEAD_BLACKSMITH_MOKA);
break;
}
case KAMAEL:
{
htmltext = htmltext.replace("%MASTER%", GRAND_MASTER_VALFAR);
break;
}
}
break;
}
case VALFAR:// FIXME: add all races texts
case RIVIAN:
case TOOK:
case MOKA:
case DEVON:
case FRANCO:
{
htmltext = "33750-01.html";
if (player.getRace() == Race.HUMAN)
{
htmltext = "32153-01.html";
}
else
{
htmltext = "32153-04.html";
}
break;
}
case RIVIAN:
{
if (player.getRace() == Race.ELF)
{
htmltext = "32147-01.html";
}
else
{
htmltext = "32147-04.html";
}
break;
}
case DEVON:
{
if (player.getRace() == Race.DARK_ELF)
{
htmltext = "32160-01.html";
}
else
{
htmltext = "32160-04.html";
}
break;
}
case TOOK:
{
if (player.getRace() == Race.ORC)
{
htmltext = "32150-01.html";
}
else
{
htmltext = "32150-04.html";
}
break;
}
case MOKA:
{
if (player.getRace() == Race.DWARF)
{
htmltext = "32157-01.html";
}
else
{
htmltext = "32157-04.html";
}
break;
}
case VALFAR:
{
if (player.getRace() == Race.KAMAEL)
{
htmltext = "32146-01.html";
}
else
{
htmltext = "32146-04.html";
}
break;
}
}
@ -135,7 +289,44 @@ public class Q10366_RuinsStatusUpdate extends Quest
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
switch (npc.getId())
{
case SEBION:
{
htmltext = "32978-06.html";
break;
}
case FRANCO:
{
htmltext = "32153-05.html";
break;
}
case RIVIAN:
{
htmltext = "32147-05.html";
break;
}
case DEVON:
{
htmltext = "32160-05.html";
break;
}
case TOOK:
{
htmltext = "32150-05.html";
break;
}
case MOKA:
{
htmltext = "32157-05.html";
break;
}
case VALFAR:
{
htmltext = "32146-05.html";
break;
}
}
break;
}
}

View File

@ -1,2 +0,0 @@
<html><body>To begin this quest, you need to complete Seeker Escort quest first.
</body></html>