From b2ce5736254050b3cbc8e80550a55ead0ca13c8f Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 19 Aug 2016 19:47:30 +0000 Subject: [PATCH] Quest Obtain a Wolf Pet (210). Contributed by Stayway. --- .../Q00210_ObtainAWolfPet/30256-01.html | 6 +- .../Q00210_ObtainAWolfPet/30256-02.html | 9 +-- .../Q00210_ObtainAWolfPet/30256-03.html | 6 +- .../Q00210_ObtainAWolfPet/30321-01.html | 6 +- .../Q00210_ObtainAWolfPet/30321-02.html | 9 +-- .../Q00210_ObtainAWolfPet/30335-01.html | 6 +- .../Q00210_ObtainAWolfPet/30335-02.html | 7 +- .../quests/Q00210_ObtainAWolfPet/30827-01.htm | 6 +- .../quests/Q00210_ObtainAWolfPet/30827-02.htm | 6 +- .../quests/Q00210_ObtainAWolfPet/30827-03.htm | 4 ++ .../Q00210_ObtainAWolfPet/30827-04.html | 6 +- .../Q00210_ObtainAWolfPet/30827-05.html | 5 +- .../Q00210_ObtainAWolfPet/30827-07.html | 6 +- .../Q00210_ObtainAWolfPet.java | 71 ++++++++++++------- .../quests/Q00210_ObtainAWolfPet/no_level.htm | 3 + 15 files changed, 92 insertions(+), 64 deletions(-) create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-03.htm create mode 100644 L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/no_level.htm diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-01.html index 9a34b4727c..c1f9b2cd57 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-01.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-01.html @@ -1,4 +1,4 @@ -Gatekeeper Bella:
-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?
- +Gatekeeper Bella:
+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?
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-02.html index a88a15e169..cb8b6e7c35 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-02.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-02.html @@ -1,5 +1,6 @@ -Gatekeeper Bella:
-Pets help their owners in a number of ways.
-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.
Now if your pets die, you can resurrect them without the 24 hour time limit. No need to worry about losing your pets forever!
- +Gatekeeper Bella:
+Pets help their owners in a number of ways.
+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.
+Now if your pets die, you can ressurect them without the 24 hour time limit. No need to worry about losing your pets forever!
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-03.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-03.html index 0b9a376039..49eb29f0fb 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-03.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30256-03.html @@ -1,3 +1,5 @@ -Gatekeeper Bella:
-How about a wolf for your first pet?
Wolves are biologically classified as canines. 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.
This is all I can tell you. For more information, go talk to Guard Brynn in the Town of Gludio. +Gatekeeper Bella:
+How about a wolf for you first pet?
+Wolves are biologically classified as canines. 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.
+This is all I can tell you. For more information, go talk to Guard Brynn in the Town of Gludio.
\ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-01.html index 1259ed8cc6..17ec03e15e 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-01.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-01.html @@ -1,4 +1,4 @@ -Trader Sydnia:
-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?
- +Trader Sydnia:
+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?
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-02.html index 1350cbb723..139ca781bc 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-02.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30321-02.html @@ -1,4 +1,5 @@ -Trader Sydnia:
-Raising a wolf, are you? Well, there are many things you must know.
-I must first explain their reproductive cycle. A wolf is fertile for 1-2 months, and the pregnancy lasts for approximately 60-62 days. 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.
-Well, I think that about covers it. Go back to Pet Manager Lundy in the Town of Gludio and show off your new knowledge. \ No newline at end of file +Trader Sydnia:
+Raising a wolf, are you? Well, there are many things you must know.
+I must first explain their reproductive cycle. A wolf is fertile for 1-2 months, and the pregnancy lasts for approximately Pet Manager Lundy in the Town of Gludio and show off your new knowledge.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-01.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-01.html index f0c0d15c6f..48aedd024e 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-01.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-01.html @@ -1,4 +1,4 @@ -Guard Brynn:
-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.
- +Guard Brynn:
+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.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-02.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-02.html index 49600d2a38..e70e88c823 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-02.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30335-02.html @@ -1,4 +1,5 @@ -Guard Brynn:
-Since you are going to have a wolf as a pet, let me tell you about wolves.
-They have a great sense of smell. They can even smell their prey up to 2.4 km away. When hunting, a pack of 7 to 13 wolves go around together. Every pack is led by a male. 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.
This is all I can tell you! For more information, go ask Trader Sydnia in the Town of Gludio. +Guard Brynn:
+Since you are going to have a wolf as a pet, let me tell you about wolves.
+They have a great sense of smell. They can even smell their prey up to 2.4 km away. When hunting, a pack of 7 to 13 wolves go around together. Every pack is led by a male. 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.
+This is all I can tell you! For more information, go ask Town of Gludio.
\ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-01.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-01.htm index e00786b599..bafeac56f3 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-01.htm +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-01.htm @@ -1,4 +1,4 @@ -Pet Manager Lundy:
-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.
- +Pet Manager Lundy:
+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
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-02.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-02.htm index c098f910fa..e22180bd64 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-02.htm +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-02.htm @@ -1,4 +1,4 @@ -Pet Manager Lundy:
-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.
- +Pet Manager Lundy:
+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.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-03.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-03.htm new file mode 100644 index 0000000000..227d929080 --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-03.htm @@ -0,0 +1,4 @@ +Pet Manager Lundy:
+Not from me! The people who can give you information about pet wolves are here in the Town of Gludio
+First, go see Gatekeeper Bella.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-04.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-04.html index 74bdf423bc..dc8de94f75 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-04.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-04.html @@ -1,4 +1,4 @@ -Pet Manager Lundy:
-All the people who can give you information about pet wolves are here in the Town of Gludio.
-First, go see Gatekeeper Bella. +Pet Manager Lundy:
+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 Wolf Necklace that will help you handle a pet wolf.
+ \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-05.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-05.html index 1bc8e16d04..ca1c95481f 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-05.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-05.html @@ -1,4 +1,3 @@ -Pet Manager Lundy:
-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 Wolf Necklace that will help you handle a pet wolf.
- +Pet Manager Lundy:
+Never lose your compassion and love for animals. If you have more questions about your pets, feel free to come see me.
\ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-07.html b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-07.html index fa1534b6d0..850cc6f469 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-07.html +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/30827-07.html @@ -1,4 +1,4 @@ -Pet Manager Lundy:
-Ah, so you want a pet! A good idea, but you are not ready to have one. Come back when you have more experience.
-(This quest is for characters Level 15 or above.) +Pet Manager Lundy:
+All the people who can give you information about pet wolves are here in the Town of Gludio.
+First, go see Gatekeeper Bella. \ No newline at end of file diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/Q00210_ObtainAWolfPet.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/Q00210_ObtainAWolfPet.java index a92fd2a869..bcd40a0418 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/Q00210_ObtainAWolfPet.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/Q00210_ObtainAWolfPet.java @@ -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; @@ -153,11 +174,7 @@ public final class Q00210_ObtainAWolfPet extends Quest } case State.COMPLETED: { - if (npc.getId() == LUNDY) - { - htmltext = getAlreadyCompletedMsg(player); - break; - } + htmltext = getAlreadyCompletedMsg(player); break; } } diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/no_level.htm b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/no_level.htm new file mode 100644 index 0000000000..79526caffb --- /dev/null +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q00210_ObtainAWolfPet/no_level.htm @@ -0,0 +1,3 @@ +You don't meet level requirements
+(Quest available from level 15 and above) + \ No newline at end of file