Quest Obtain a Wolf Pet (210).

Contributed by Stayway.
This commit is contained in:
MobiusDev
2016-08-19 19:47:30 +00:00
parent dbe9d31264
commit b2ce573625
15 changed files with 92 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
<html><body>Gatekeeper Bella:<br>
Yes, it is true. I am a Gatekeeper from the Ivory Tower and also a member of the Animal Lovers Association. Why have you come? Did Lundy send you?<br>
Yes, it is true. I am a Gatekeeper from Ivory Tower and also a member of the Animal Lovers Association. Why have you come? Did Lundy send you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30256-02.html">"Tell me about pets."</Button>
</body></html>

View File

@@ -1,5 +1,6 @@
<html><body>Gatekeeper Bella:<br>
Pets help their owners in a number of ways.<br>
If your inventory is low or you have exceeded your weight limit, your pets can carry some of your items. Just be careful not to use your pets too often on errands, no matter how useful they may be.<br>Now if your pets die, you can resurrect them without the <font color="LEVEL">24 hour</font> time limit. No need to worry about losing your pets forever!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30256-03.html">Next</Button>
If your inventory is low or you have exceeded your weight limit, your pets can carry some of your item. Just be careful not to use your pets too often on errands, no mater how useful they may be.<br>
Now if your pets die, you can ressurect them without the <font color="LEVEL">24 hour</font> time limit. No need to worry about losing your pets forever!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30256-03.html">"Next"</Button>
</body></html>

View File

@@ -1,3 +1,5 @@
<html><body>Gatekeeper Bella:<br>
How about a wolf for your first pet?<br>Wolves are biologically classified as <font color="LEVEL">canines</font>. Canines are extremely varied and include dogs, raccoons, foxes, jackals, and even timberwolves. The lifespan of wolves in the wild is unknown, but wolves in captivity can live from 12 to 15 years.<br>This is all I can tell you. For more information, go talk to <font color="LEVEL">Guard Brynn</font> in the <font color="LEVEL">Town of Gludio</font>.
How about a wolf for you first pet?<br>
Wolves are biologically classified as <font color="LEVEL">canines</font>. Canines are extremely varied and include dogs, raccoons, foxes, jakals, and even timberwolves. The lifespan of wolves in the wild is unknown, but wolves in captivity can live from 12 to 15 years.<br>
This is all I can tell you. For more information, go talk to <font color="LEVEL">Guard Brynn</font> in the <font color="LEVEL"> Town of Gludio</font>.<br>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Trader Sydnia:<br>
Raising a wolf, are you? Well, there are many things you must know.<br>
I must first explain their reproductive cycle. A wolf is fertile for <font color="LEVEL">1-2 months</font>, and the pregnancy lasts for approximately <font color="LEVEL">60-62 days</font>. Their litters can be as large as 10 cubs, but 3-6 is more normal. They are very protective of their young ones, making homes in little nooks between rocks, under cliffs, and caves. A full grown wolf can easily devour a calf or goat whole, and that's their preferred type of food, but they can also eat the flesh of dead animals, wild pheasants, and even berries. They can go without food for 5-6 days, but cannot live long without water.<br>
Well, I think that about covers it. Go back to <font color="LEVEL">Pet Manager Lundy</font> in the <font color="LEVEL">Town of Gludio</font> and show off your new knowledge.</body></html>
I must first explain their reproductive cycle. A wolf is fertile for <font color="LEVEL">1-2 months</font>, and the pregnancy lasts for approximately <font color="LEVEL>60-62 days</font>. Their litters can be large as 10 cubs, but 3-6 is more normal. They are very protective of their young ones, making homes in little nooks between rocks, under cliffs, and caves. A full grown wolf can easily devour a calf or goat whole, and that's their preferred type of food, but they can also eat the flesh of dead animals, wild pheasants, and even berries. They can go without food for 5-6 days, but cannot live long without water.<br>
Well, I think that about covers it. Go back to <font color="LEVEL">Pet Manager Lundy</font> in the <font color="LEVEL">Town of Gludio</font> and show off your new knowledge.<br>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Guard Brynn:<br>
Since you are going to have a wolf as a pet, let me tell you about wolves.<br>
They have a great sense of smell. They can even smell their prey up to <font color="LEVEL">2.4 km</font> away. When hunting, a pack of 7 to 13 wolves go around together. Every pack is led by a <font color="LEVEL">male</font>. Regarding their appearance, fully grown ones weigh less than the average adult human. Some people say that dogs are domesticated wolves. But unlike dogs, wolves drop their tail down at times. <br>This is all I can tell you! For more information, go ask <font color="LEVEL">Trader Sydnia</font> in the <font color="LEVEL">Town of Gludio</font>.
They have a great sense of smell. They can even smell their prey up to <font color="LEVEL">2.4 km</font> away. When hunting, a pack of 7 to 13 wolves go around together. Every pack is led by a <font color="LEVEL">male</font>. Regarding their appearance, fully grown ones weigh less than the average adult human. Some people say that dogs are domesticated wolves. But unlike dogs, wolves drop their tail down at times.<br>
This is all I can tell you! For more information, go ask <font color="LEVEL>Trader Sydnia</font> in the <font color="LEVEL">Town of Gludio</font>.<br>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
So, you have an honest face, but I don't give away pets to just anybody. Let's talk about the right companion for you.<br>
So, you have an honest face, but I don't give away pets to just anybody. Let's talk about the right companion for you<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30827-02.htm">"What would you like to know?"</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
To have a pet, you need to know about them. The pet I think is best for you is a wolf, but you'll need to learn the basics about them. Go get some information about pet wolves then come back to me.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30827-03.html">"Got it."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30827-03.htm">"Got it."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Pet Manager Lundy:<br>
Not from me! The people who can give you information about pet wolves are here in the <font color="LEVEL">Town of Gludio</font><br>
First, go see <font color="LEVEL"> Gatekeeper Bella.</font><br>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
All the people who can give you information about pet wolves are here in the <font color="LEVEL">Town of Gludio</font>.<br>
First, go see <font color="LEVEL">Gatekeeper Bella</font>.
I would normally wouldn't give you a pet until testing you about the stories you've heard, but I've received only glowing reports from everyone you talked to. I believe you fully understand how to treat your companion, and are ready for the next step. Here is a <font color="LEVEL">Wolf Necklace</font> that will help you handle a pet wolf.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30827-05.html">"Thank you."</Button>
</body></html>

View File

@@ -1,4 +1,3 @@
<html><body>Pet Manager Lundy:<br>
I would normally wouldn't give you a pet until testing you about the stories you've heard, but I've received only glowing reports from everyone you talked to. I believe you fully understand how to treat your companion, and are ready for the next step. Here is a <font color="LEVEL">Wolf Necklace</font> that will help you handle a pet wolf.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30827-06.html">"Thank you."</Button>
Never lose your compassion and love for animals. If you have more questions about your pets, feel free to come see me.<br>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
Ah, so you want a pet! A good idea, but you are not ready to have one. Come back when you have more experience.<br>
(This quest is for characters Level 15 or above.)
<html><head><body>Pet Manager Lundy:<br>
All the people who can give you information about pet wolves are here in the <font color="LEVEL">Town of Gludio</font>.<br>
First, go see <font color="LEVEL">Gatekeeper Bella</font>.
</body></html>

View File

@@ -24,14 +24,14 @@ import com.l2jmobius.gameserver.model.quest.State;
/**
* Obtain a Wolf Pet (210)
* @author Gladicek
* @author Stayway
*/
public final class Q00210_ObtainAWolfPet extends Quest
public class Q00210_ObtainAWolfPet extends Quest
{
// NPCs
private static final int LUNDY = 30827;
private static final int BELLA = 30256;
private static final int BRYNN = 30335;
private static final int BYNN = 30335;
private static final int SYDNIA = 30321;
// Item
private static final int WOLF_COLLAR = 2375;
@@ -42,42 +42,59 @@ public final class Q00210_ObtainAWolfPet extends Quest
{
super(210);
addStartNpc(LUNDY);
addTalkId(LUNDY, BELLA, BRYNN, SYDNIA);
addCondMinLevel(MIN_LEVEL, "30827-07.html");
addTalkId(LUNDY, BELLA, BYNN, SYDNIA);
addCondMinLevel(MIN_LEVEL, "no_level.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
return htmltext;
}
String htmltext = null;
switch (event)
{
case "30827-02.htm":
case "30827-04.htm":
case "30256-02.html":
case "30256-03.html":
case "30335-02.html":
case "30321-02.html":
{
htmltext = event;
break;
}
case "30827-03.html":
case "30827-03.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "30827-06.html":
case "30335-02.html":
{
if (qs.isCond(2))
{
qs.setCond(3);
htmltext = event;
}
break;
}
case "30321-02.html":
{
if (qs.isCond(3))
{
qs.setCond(4);
htmltext = event;
}
break;
}
case "30827-05.html":
{
if (qs.isCond(4))
{
giveItems(player, WOLF_COLLAR, 1);
rewardItems(player, WOLF_COLLAR, 1);
qs.exitQuest(false, true);
htmltext = event;
}
@@ -90,8 +107,12 @@ public final class Q00210_ObtainAWolfPet extends Quest
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
if (qs == null)
{
return htmltext;
}
switch (qs.getState())
{
@@ -100,8 +121,8 @@ public final class Q00210_ObtainAWolfPet extends Quest
if (npc.getId() == LUNDY)
{
htmltext = "30827-01.htm";
break;
}
break;
}
case State.STARTED:
{
@@ -111,13 +132,15 @@ public final class Q00210_ObtainAWolfPet extends Quest
{
if (qs.isCond(1))
{
htmltext = "30827-04.html";
break;
htmltext = "30827-07.html";
}
else if (qs.isCond(2))
{
htmltext = "30827-07.html";
}
else if (qs.isCond(4))
{
htmltext = "30827-05.html";
break;
htmltext = "30827-04.html";
}
break;
}
@@ -125,16 +148,15 @@ public final class Q00210_ObtainAWolfPet extends Quest
{
if (qs.isCond(1))
{
qs.setCond(2, true);
qs.setCond(2);
htmltext = "30256-01.html";
}
break;
}
case BRYNN:
case BYNN:
{
if (qs.isCond(2))
{
qs.setCond(3, true);
htmltext = "30335-01.html";
}
break;
@@ -143,7 +165,6 @@ public final class Q00210_ObtainAWolfPet extends Quest
{
if (qs.isCond(3))
{
qs.setCond(4, true);
htmltext = "30321-01.html";
}
break;
@@ -152,14 +173,10 @@ public final class Q00210_ObtainAWolfPet extends Quest
break;
}
case State.COMPLETED:
{
if (npc.getId() == LUNDY)
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
break;
}
}
return htmltext;
}

View File

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