Bring Up With Love
- ID
- 20
- Название
- Bring Up With Love
- start_npcs_json
- [31537]
- npc_ids_json
- []
- constants_json
- {"JEWEL_OF_INNOCENCE":7185}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00020_BringUpWithLove/Q00020_BringUpWithLove.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 65) ? "31537-02.htm" : "31537-01.htm";
Выдача предметов, адены и опыта: выражения из Java
giveAdena(player, 68500, true);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[31537-01.htm] Beast Herder Tunatun: Aaah... Pastoral scenes like this make me wish I could see these cute little critters grow up! They look cute, but you can never forget that they're wild beasts! There's no way I can handle them all on my own... Do you know anyone who could help me raise them...? "I can help you."
[31537-02.htm] Beast Herder Tunatun: Aaah... Pastoral scenes like this make me wish I could see these cute lttle critters grow up! They look cute, but you can never forget that they're wild beasts! There's no way I can handle them all on my own... Do you know anyone who could help me raise them? It's a very dangerous job! It's not for just anyone... (This quest may only be undertaken by a character of level 65 and above.)
[31537-03.htm] Beast Herder Tunatun: Oh, really? Well, I guess you're up to the job! As you probably know, it's not easy to tame a wild animal. Unless they're given the proper training, they can be quite dangerous! When they're young they hardly present a risk, but the danger grows as they do... Are you sure you want to do this? "Yes."
[31537-04.htm] Beast Herder Tunatun: Very well... Do you know how to raise a beast? "Yes." "No."
[31537-05.htm] Beast Herder Tunatun: OK, I'll explain it to you. First, you'll notice feed sellers around here. Buy some feed from them and give it to the Alpen Kookaburra, Alpen Buffalo and Alpen cougar. "...And then what?"
[31537-06.htm] Beast Herder Tunatun: It's simple! The baby beasts either have a kind or an evil heart. If it has a kind heart, it will recognize you as its master and follow you. If it has an evil heart, it will become a vicious monster. "...And then?"
[31537-07.htm] Beast Herder Tunatun: Rarely, a baby beast appears that doesn't have a trace of evil in its heart. These beasts make very loyal and affectionate pets. No more than one in twenty are so well-disposed... When the beast nears maturity, it produces a white gemstone known as a Jewel of Innocence. It's proof that the beast was raised properly. The gemstone is a reward for the master, for the patience and hard work invested. "What are you trying to say?"
[31537-08.htm] Beast Herder Tunatun: Please bring me a Jewel of Innocence. This isn't something you can purchase, or kill something for... You must earn it by raising a beast yourself! Alas, this is an honor that only comes once in a lifetime... I'll never forget my little beast... And the brilliance of that gemstone! If only I could possess one again... Could you please bring a Jewel of Innocence to me? "I'll do it."
[31537-09.htm] Beast Herder Tunatun: Oh, wonderful! First you'll need to get some feed from one of the sellers around here and start training your beast. You'll have that gemstone in no time! But beware the baby beasts that are hiding an evil streak! You shouldn't need a very large team for this assignment. I'll be waiting!
[31537-10.htm] Beast Herder Tunatun: Buy feed from the feed sellers. You'll find them around here. Raise the Alpen Kookaburra, Alpen Buffalos and Alpen Cougar. Bring me any Jewel of Innocence you get.
[31537-11.htm] Beast Herder Tunatun: The Jewel of Innocence! Please! Give it to me! I'll pay you well for it! Please, give it to me! "Here you go."
[31537-12.htm] Beast Herder Tunatun: Oh, a Jewel of Innocence! Isn't it beautiful?! See how it sparkles... Sob! I'm sorry! Just looking at it breaks my heart! I was so young! So full of hopes and dreams... all but forgotten now... Now I think I can do it! My dream... to create a world in which everyone understands each other... I'm not sure how I'll do it, but I'll make it work somehow!
Исходник условий и наград (Java)
/*
* Copyright (c) 2013 L2jMobius
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package quests.Q00020_BringUpWithLove;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00020_BringUpWithLove extends Quest
{
// Item
private static final int JEWEL_OF_INNOCENCE = 7185;
public Q00020_BringUpWithLove()
{
super(20, "Bring Up With Love");
registerQuestItems(JEWEL_OF_INNOCENCE);
addStartNpc(31537); // Tunatun
addTalkId(31537);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
if (event.equals("31537-09.htm"))
{
st.startQuest();
}
else if (event.equals("31537-12.htm"))
{
takeItems(player, JEWEL_OF_INNOCENCE, -1);
giveAdena(player, 68500, true);
st.exitQuest(false, true);
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() < 65) ? "31537-02.htm" : "31537-01.htm";
break;
}
case State.STARTED:
{
if (st.isCond(2))
{
htmltext = "31537-11.htm";
}
else
{
htmltext = "31537-10.htm";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}