This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-01.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Ahh... I love the farm, but I wonder what they will become when they mature.<br>It's not always easy to farm beasts, you know. Even as manager of this place, I can only do so much to command those beasts... Do you know anyone skilled with such beasts...?<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-02.htm">Say that you will help</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-02.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
You...? I agree you look the part, but know that these beasts won't care how you look. You must stay in control. The young are docile, it's the adults to watch out for. Are you sure you are ready?<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-03.htm">Say that you are ready</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-03.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
If you say so...<br>
|
||||
First, take this <font color="LEVEL">Beast Handler's Whip</font>. Do I need to show you how this works?<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-04.htm">Say that you know</a><br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-05.htm">Say that you don't know</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-04.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-04.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Well, the lesson is almost over.<br>
|
||||
If you feel ready, there's only one way to know for sure.<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-08.htm">Say that you know</a><br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-12.htm">Say that you don't know</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-05.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-05.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
The Beast Handler's Whip is a necessity on this farm.<br>
|
||||
One beast used to be our limit, but thanks to the Beast Handler's Whip it isn't a problem controlling more.<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-06.htm">Continue to listen to the story</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-06.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-06.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
That's not the only reason. When you use this Beast Handler's Whip, you can use a variety supplemental magic on the cubs you train.<br>
|
||||
The more kinds of beasts you train, the greater the magic you can use!<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-07.htm">Continue to listen to the story</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-07.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-07.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
If somehow you lose the Beast Handler's Whip, let me know. I'll give you another one.<br>
|
||||
Before we begin.. Do you need a few tips?<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-08.htm">Say that you know</a><br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-12.htm">Say that you don't know</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-08.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-08.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
The next step is simple. The cubs need proper positive attention. They only recognize you as their master if you raise them right.<br>
|
||||
But, if you ignore them and leave them to their own mischief... Well let's just say you won't be bringing one home for the kids!<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-09.htm">"And then?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-09.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-09.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Now sometimes, and I do mean rarely, a cub remains purely innocent and good, without any trace of evil. Again, this is rare. But when it does happen, that cub will produce a white jewel.<br>
|
||||
We call this jewel a <font color="LEVEL">Jewel of Innocence</font>. It's a product of the cub's pure love for its master.<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-10.htm">"So, what you really want to say is...?"</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-10.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-10.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
You've guessed it, I want that Jewel of Innocence! Beasts crave them, but only the person who raised the cub can retrieve the Jewel of Innocence.<br>
|
||||
Also, and I don't know why, but you only get one chance to acquire that jewel. I've only seen it once, truly unforgettable to say the least...<br>
|
||||
Get this jewel for me and the reward will be great. What do you say?<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-11.html">Say that you will</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-11.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-11.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
I hope you aren't all talk! Feed them, diligently, with Feed from the Feed Sellers, and fortune may shine on you... with a jewel!<br>
|
||||
However, a beast with any evil in it can be dangerous. So be careful! I'll be waiting for that jewel.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-12.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-12.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Pay attention. You see those Feed Sellers?<br>
|
||||
Purchase the Feed from them, and let <font color="LEVEL">Alpine Buffalo, Alpine Grendel, Alpine Kookaburra, Alpine Cougar</font> eat the Feed to make them grow.<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-08.htm">Listen to the next story</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-13.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-13.html
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Ahh... I love the farm, but I wonder what they will become when they mature.<br>
|
||||
It's not always easy to farm beasts, you know. Even as manager of this place, I can only do so much to command those beasts... Do you know anyone skilled with such beasts...?<br>
|
||||
Feral beasts are too dangerous for pretenders and beginners....<br>
|
||||
(Only characters of level 82 and above are permitted to take on this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-14.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-14.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Buy food from the Feed Sellers. Without food the beasts turn feral. If that happens you've wasted everyone's time. So do us both a favor, have enough food ready.<br>
|
||||
The cubs you can raise are <font color="LEVEL">Alpine Buffalo, Alpine Grendel, Alpine Kookaburra, and Alpine Cougar</font>. So raise em' right. And when you do... bring me a Jewel of Innocence!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-15.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-15.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
The Jewel of Innocence! You aren't thinking of keeping it, are you? I'll pay you now..<br>
|
||||
<a action="bypass -h Quest Q00020_BringUpWithLove 31537-16.html">Give it to him</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-16.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/31537-16.html
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<html><body>Beast Herder Tunatun:<br>
|
||||
Ahh, it has been too long...! The way light catches it, the color, the texture, the...<br>
|
||||
Oh... I, I'm crying. Don't mind me...<br>
|
||||
This Jewel... when I hold it I remember the innocence of my youth. I remember a dream...<br>
|
||||
I dreamed about making the world a better place. Yes, I was young. But I realize now I still dream this.<br>
|
||||
I have to do something, I have to act.
|
||||
</body></html>
|
143
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/Q00020_BringUpWithLove.java
vendored
Normal file
143
trunk/dist/game/data/scripts/quests/Q00020_BringUpWithLove/Q00020_BringUpWithLove.java
vendored
Normal file
@ -0,0 +1,143 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 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.Q00020_BringUpWithLove;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Bring Up With Love (20)
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00020_BringUpWithLove extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int TUNATUN = 31537;
|
||||
// Items
|
||||
private static final int WATER_CRYSTAL = 9553;
|
||||
private static final int INNOCENCE_JEWEL = 15533;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 82;
|
||||
|
||||
public Q00020_BringUpWithLove()
|
||||
{
|
||||
super(20, Q00020_BringUpWithLove.class.getSimpleName(), "Bring Up With Love");
|
||||
addStartNpc(TUNATUN);
|
||||
addTalkId(TUNATUN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "31537-02.htm":
|
||||
case "31537-03.htm":
|
||||
case "31537-04.htm":
|
||||
case "31537-05.htm":
|
||||
case "31537-06.htm":
|
||||
case "31537-07.htm":
|
||||
case "31537-08.htm":
|
||||
case "31537-09.htm":
|
||||
case "31537-10.htm":
|
||||
case "31537-12.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31537-11.html":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31537-16.html":
|
||||
{
|
||||
if (st.isCond(2) && st.hasQuestItems(INNOCENCE_JEWEL))
|
||||
{
|
||||
st.giveItems(WATER_CRYSTAL, 1);
|
||||
st.takeItems(INNOCENCE_JEWEL, -1);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
case State.CREATED:
|
||||
htmltext = player.getLevel() >= MIN_LEVEL ? "31537-01.htm" : "31537-13.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "31537-14.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = (!st.hasQuestItems(INNOCENCE_JEWEL)) ? "31537-14.html" : "31537-15.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void checkJewelOfInnocence(L2PcInstance player)
|
||||
{
|
||||
final QuestState st = player.getQuestState(Q00020_BringUpWithLove.class.getSimpleName());
|
||||
if ((st != null) && st.isCond(1) && !st.hasQuestItems(INNOCENCE_JEWEL) && (getRandom(100) < 5))
|
||||
{
|
||||
st.giveItems(INNOCENCE_JEWEL, 1);
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user