Quest Obtain a Wolf Pet (210).

Contributed by Stayway.
This commit is contained in:
MobiusDev 2015-11-26 21:32:43 +00:00
parent 01366f3d78
commit ac2cc56f0d
16 changed files with 245 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<html><body>Gatekeeper Bella:<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

@ -0,0 +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 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

@ -0,0 +1,5 @@
<html><body>Gatekeeper Bella:<br>
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

@ -0,0 +1,4 @@
<html><body>Trader Sydnia:<br>
How did you know that I am a member of the Animal Lovers Association? Ah, I see - Mr. Lundy must have mentioned me. So, what can I do for you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30321-02.html">"Tell me about the pets."</Button>
</body></html>

View File

@ -0,0 +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 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

@ -0,0 +1,4 @@
<html><body>Guard Brynn:<br>
You're right. I am a member of the Animal Lovers Association, too. What brought you here? If you have a question for me, spit it out.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00210_ObtainAWolfPet 30335-02.html">"Tell me about pets."</Button>
</body></html>

View File

@ -0,0 +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>.<br>
</body></html>

View File

@ -0,0 +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>
<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

@ -0,0 +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.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

@ -0,0 +1,4 @@
<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-05.html">"Thank you."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Pet Manager Lundy:<br>
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

@ -0,0 +1,4 @@
<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

@ -0,0 +1,184 @@
/*
* Copyright (C) 2004-2015 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.Q00210_ObtainAWolfPet;
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;
/**
* @author Stayway
*/
public class Q00210_ObtainAWolfPet extends Quest
{
// NPCs
private static final int LUNDY = 30827;
private static final int BELLA = 30256;
private static final int BYNN = 30335;
private static final int SYDNIA = 30321;
// Items
private static final int WOLF_COLLAR = 2375;
// Misc
private static final int MIN_LEVEL = 15;
public Q00210_ObtainAWolfPet()
{
super(210, Q00210_ObtainAWolfPet.class.getSimpleName(), "Obtain a Wolf Pet");
addStartNpc(LUNDY);
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 htmltext;
}
switch (event)
{
case "30827-02.htm":
case "30827-04.htm":
case "30256-02.html":
case "30256-03.html":
{
htmltext = event;
break;
}
case "30827-03.htm":
{
qs.startQuest();
htmltext = event;
break;
}
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))
{
rewardItems(player, WOLF_COLLAR, 1);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
if (qs == null)
{
return htmltext;
}
switch (qs.getState())
{
case State.CREATED:
{
if (npc.getId() == LUNDY)
{
htmltext = "30827-01.htm";
}
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case LUNDY:
{
if (qs.isCond(1))
{
htmltext = "30827-07.html";
}
else if (qs.isCond(2))
{
htmltext = "30827-07.html";
}
else if (qs.isCond(4))
{
htmltext = "30827-04.html";
}
break;
}
case BELLA:
{
if (qs.isCond(1))
{
qs.setCond(2);
htmltext = "30256-01.html";
}
break;
}
case BYNN:
{
if (qs.isCond(2))
{
htmltext = "30335-01.html";
}
break;
}
case SYDNIA:
{
if (qs.isCond(3))
{
htmltext = "30321-01.html";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
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>

View File

@ -87,6 +87,7 @@ import quests.Q00195_SevenSignsSecretRitualOfThePriests.Q00195_SevenSignsSecretR
import quests.Q00196_SevenSignsSealOfTheEmperor.Q00196_SevenSignsSealOfTheEmperor;
import quests.Q00197_SevenSignsTheSacredBookOfSeal.Q00197_SevenSignsTheSacredBookOfSeal;
import quests.Q00198_SevenSignsEmbryo.Q00198_SevenSignsEmbryo;
import quests.Q00210_ObtainAWolfPet.Q00210_ObtainAWolfPet;
import quests.Q00237_WindsOfChange.Q00237_WindsOfChange;
import quests.Q00238_SuccessFailureOfBusiness.Q00238_SuccessFailureOfBusiness;
import quests.Q00239_WontYouJoinUs.Q00239_WontYouJoinUs;
@ -322,6 +323,7 @@ public class QuestMasterHandler
Q00196_SevenSignsSealOfTheEmperor.class,
Q00197_SevenSignsTheSacredBookOfSeal.class,
Q00198_SevenSignsEmbryo.class,
Q00210_ObtainAWolfPet.class,
Q00237_WindsOfChange.class,
Q00238_SuccessFailureOfBusiness.class,
Q00239_WontYouJoinUs.class,