Fixed quest A Trip Begins (10966) for Death Knights.

This commit is contained in:
MobiusDevelopment 2021-09-15 07:36:13 +00:00
parent 7af362f30a
commit 1238cae65a
11 changed files with 73 additions and 21 deletions

View File

@ -0,0 +1,7 @@
<html><body>Quartermaster Mathorn:<br>
Bathis is the Captain of Gludio. Travellers from around the world come to him to learn useful things. I've met him, too.<br>
Bathis is a natural born teacher. He doesn't discriminate and helps everyone regardless of their race.<br>
Before I left he asked to send other Death Knights his way if anyone else decided to explore the world. He said he would help them.<br>
That is a long and dangerous journey, though, you need to prepare really well if you decide to undertake it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34139-02.html">Ask what needs to be done</Button>
</body></html>

View File

@ -0,0 +1,8 @@
<html><body>Quartermaster Mathorn:<br>
Bathis regards Death Knights as not very strong, but he is a nice fellow. Let's show him that we are not weak!<br>
First press <font color="LEVEL">Tab</font> or <font color="LEVEL">Alt + K</font> to open your <font color="LEVEL">Inventory. Equip the weapons and armor</font> you need if you haven't done it yet.<br>
You can open the <font color="LEVEL">Skill List</font> by pressing <font color="LEVEL">ALT + K</font>. If you have changed your class to become a <font color="LEVEL">Death Blade</font>, you will see there new skills that can be learn. <font color="LEVEL">To learn skills</font> you need to spend <font color="LEVEL">SP</font>, and sometimes you will need special items.<br>
Master Kerkir should have told you about <font color="LEVEL">Automatic Hunting</font>. Do you want to know more about it?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting.html">Ask about Automatic Hunting</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHuntingSkip">"Let's skip it."</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Quartermaster Mathorn:<br>
Okay, it looks like you are up to dare on everything. Ready to head out?<br>
Adventurers usually start with Gludio. It's a great place to make your first steps into big wide world.<br>
It doesn't make much sense to just wander the streets of Gludio, though. You need to find a place to train and grow stronger.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34139-04.html">"And where is that?"</Button>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Quartermaster Mathorn:<br>
If you need some guidance, talk to a <font color="LEVEL">Gatekeeper</font>. They'll tell you where you need to go to improve your skills.<br>
We have a <font color="LEVEL">Gatekeeper</font> in Death Knight base as well.<br>
Talk to <font color="LEVEL">Gatekeeper Marillia</font> or find <font color="LEVEL">Gatekeeper Bella</font> in <font color="LEVEL">Gludio</font>.<br>
If you want to go straight to Gludio's Gatekeeper, I can send you there right now.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins TELEPORT_TO_GLUDIO">"Yes, I would like to go to Gludio."</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Quartermaster Mathorn:<br>
Have you talked to a Gatekeeper yet?<br>
You have? Go to the place they recommended then. The Ruins of Agony, I assume.<br>
It's a great place to hunt. Go there and kill some monsters.
</body></html>

View File

@ -1,7 +1,7 @@
<html><body>Grocer Evia:<br>
Bathis iis the Captain of Gludio. Travellers from around the world come to him to learn useful things. I've met him, too.<br>
Bathis is the Captain of Gludio. Travellers from around the world come to him to learn useful things. I've met him, too.<br>
Bathis is a natural born teacher. He doesn't discriminate and helps everyone regardless of their race.<br>
Before I left he asked to send other Sylphs his way if anyone else decided to explore the world. He said he would help them.<br>
That is a long andd dangerous journey, though, You need to prepare really well if you decide to undertake it.<br>
That is a long and dangerous journey, though, you need to prepare really well if you decide to undertake it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34211-02.html">Ask what needs to be done</Button>
</body></html>

View File

@ -5,5 +5,5 @@ If you press <font color="LEVEL">ALT+K</font>, however, then <font color="LEVEL"
Same goes for buffing skills. If you put a <font color="LEVEL">buffing skill</font> to the <font color="LEVEL">shortcut</font> and click it with the <font color="LEVEL">right mouse button, this skill will be automatically used</font> at the right moment.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-02.html"><font color="LEVEL">Ask about the automatic use of supplies</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-03.html"><font color="LEVEL">Ask about the automatic use of potions</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34211-03.html">"Let's skip this part and move on."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHuntingSkip">"Let's skip this part and move on."</Button>
</body></html>

View File

@ -4,5 +4,5 @@ If there is an <font color="LEVEL">item marked with two green arrows in a circle
To automatically use supplies you need to <font color="LEVEL">drag the item</font> to a <font color="LEVEL">slot</font>, press the <font color="LEVEL">right mouse button</font> and active the auto-use function. Items with actived auto-use will be <font color="LEVEL">used automatically as soon as you leave the city</font>.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-01.html"><font color="LEVEL">"Tell me about automatic hunting."</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-03.html"><font color="LEVEL">Ask about the automatic use of potions</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34211-03.html">"Let's skip this part and move on."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHuntingSkip">"Let's skip this part and move on."</Button>
</body></html>

View File

@ -5,5 +5,5 @@ After <font color="LEVEL">setting</font> the amount of <font color="LEVEL">HP</f
Now the potions are going to be used automatically.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-01.html"><font color="LEVEL">"Tell me about automatic hunting."</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-02.html"><font color="LEVEL">Ask about the automatic use of supplies</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34211-03.html">"Let's skip this part and move on."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHuntingSkip">"Let's skip this part and move on."</Button>
</body></html>

View File

@ -5,5 +5,5 @@ Would you like to learn more?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-01.html"><font color="LEVEL">"Tell me about automatic hunting."</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-02.html"><font color="LEVEL">Ask about the automatic use of supplies</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHunting-03.html"><font color="LEVEL">Ask about the automatic use of potions</font></Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins 34211-03.html">"Let's skip this part and move on."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10290_ATripBegins AutomaticHuntingSkip">"Let's skip this part and move on."</Button>
</body></html>

View File

@ -35,15 +35,15 @@ import org.l2jmobius.gameserver.network.serverpackets.NpcSay;
/**
* A Trip Begins (10966)
* @author RobikBobik, Mobius
* @Note: Updated based on 4game server October 2020
* @author Mobius
*/
public class Q10290_ATripBegins extends Quest
{
// NPCs
private static final int EVIA = 34211;
private static final int BELLA = 30256;
private static final int CAPTAIN_BATHIS = 30332;
private static final int MATHORN = 34139;
private static final int BELLA = 30256;
private static final int EVIA = 34211;
// Items
private static final ItemHolder SOE_TO_CAPTAIN_BATHIS = new ItemHolder(91651, 1);
private static final ItemHolder SOE_TO_RUIN_OF_AGONY = new ItemHolder(91727, 1);
@ -69,21 +69,14 @@ public class Q10290_ATripBegins extends Quest
public Q10290_ATripBegins()
{
super(10290);
addStartNpc(EVIA, CAPTAIN_BATHIS);
addTalkId(EVIA, BELLA, CAPTAIN_BATHIS);
addStartNpc(CAPTAIN_BATHIS, MATHORN, EVIA);
addTalkId(CAPTAIN_BATHIS, MATHORN, EVIA, BELLA);
addKillId(ARACHNID_PREDATOR, SKELETON_BOWMAN, RUIN_SPARTOI, RAGING_SPARTOI, RAGING_SPARTOI, TUMRAN_BUGBEAR, TUMRAN_BUGBEAR_WARRIOR);
addCondMinLevel(MIN_LEVEL, "no_lvl.html");
addCondMaxLevel(MAX_LEVEL, "no_lvl.html");
setQuestNameNpcStringId(NpcStringId.LV_20_25_A_TRIP_BEGINS);
}
@Override
public boolean checkPartyMember(PlayerInstance member, Npc npc)
{
final QuestState qs = getQuestState(member, false);
return ((qs != null) && qs.isStarted());
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
@ -96,6 +89,9 @@ public class Q10290_ATripBegins extends Quest
String htmltext = null;
switch (event)
{
case "34139-02.html":
case "34139-04.html":
case "34139-05.html":
case "34211-02.html":
case "34211-04.html":
case "34211-05.html":
@ -114,17 +110,25 @@ public class Q10290_ATripBegins extends Quest
htmltext = event;
break;
}
case "34139-01.html":
case "34211-01.html":
{
showOnScreenMsg(player, NpcStringId.CHECK_YOUR_INVENTORY_AND_EQUIP_YOUR_WEAPON, ExShowScreenMessage.TOP_CENTER, 10000, player.getName());
htmltext = event;
break;
}
case "34211-03.html":
case "AutomaticHuntingSkip":
{
if (player.isDeathKnight())
{
htmltext = "34139-03.html";
}
else
{
htmltext = "34211-03.html";
}
qs.startQuest();
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.USING_THE_GATEKEEPER));
htmltext = event;
break;
}
case "30332-03.htm":
@ -176,11 +180,13 @@ public class Q10290_ATripBegins extends Quest
break;
}
case "TELEPORT_TO_GLUDIO":
{
if (qs.isCond(1))
{
player.teleToLocation(TELEPORT_GLUDIO);
}
break;
}
}
return htmltext;
}
@ -194,6 +200,11 @@ public class Q10290_ATripBegins extends Quest
{
switch (npc.getId())
{
case MATHORN:
{
htmltext = "34139-01.html";
break;
}
case EVIA:
{
htmltext = "34211-01.html";
@ -215,6 +226,14 @@ public class Q10290_ATripBegins extends Quest
{
switch (npc.getId())
{
case MATHORN:
{
if (qs.isCond(1))
{
htmltext = "34139-05.html";
}
break;
}
case EVIA:
{
if (qs.isCond(1))