A Grand Plan for Taming Wild Beasts
- ID
- 655
- Название
- A Grand Plan for Taming Wild Beasts
- start_npcs_json
- [35627]
- npc_ids_json
- [35627]
- constants_json
- {"MESSENGER":35627,"STONE":8084,"TRAINER_LICENSE":8293}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00655_AGrandPlanForTamingWildBeasts/Q00655_AGrandPlanForTamingWildBeasts.java
NPC квеста
| ID | Название | Старт квеста | Уровень |
|---|---|---|---|
| 35627 | Messenger | Да | 70 |
Условия уровней: выражения из Java
Явные выражения не найдены; проверьте исходник и диалоги.
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, TRAINER_LICENSE, 1); giveItems(player, STONE, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[35627-00.htm] Messenger: I am sorry, but 5 clans already submitted the applications for participation in fight for the Clan Hall. Perhaps to you will carry next time.
[35627-01.htm] Messenger: Measuring your abilities is actually very simple. Just raise some beasts and bring me the proof. Raise them well, so they have a good heart, and they'll produce a Crystal of Purity. Bring me 10 Crystals of Purity and your ability will be proven. Remember to raise them along with your Clan, making sure to watch them closely.
[35627-02.htm] Messenger: Surely you didn't think qualification would be easy? If you have time to gab like this, you have time to take the test... Don't forget to bring me 10 Crystals of Purity. Remember to raise the beast along with your clan, making sure to keep a close eye on it! You can tame a beast using Golden Spice or Crystal Spice. You must've known that already, huh?
[35627-03.htm] Messenger: I see that you have brought 10 Crystals of Purity. Good job! But don't get your hopes up, the competition is fierce now. This clan hall siege will be a close match and should prove to be quite interesting... The final round will begin soon. Hurry and register. Remember, only four clans are allowed to participate. Ha! Test to qualify for participation in the clan hall siege
Исходник условий и наград (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.Q00655_AGrandPlanForTamingWildBeasts;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.managers.CHSiegeManager;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
import org.l2jmobius.gameserver.mechanics.siege.clanhalls.SiegableHall;
/**
* @author LordWinter
*/
public class Q00655_AGrandPlanForTamingWildBeasts extends Quest
{
private static final int MESSENGER = 35627;
private static final int STONE = 8084;
private static final int TRAINER_LICENSE = 8293;
private static final SiegableHall BEAST_STRONGHOLD = CHSiegeManager.getInstance().getSiegableHall(63);
public Q00655_AGrandPlanForTamingWildBeasts()
{
super(655, "A Grand Plan for Taming Wild Beasts");
addStartNpc(MESSENGER);
addTalkId(MESSENGER);
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
switch (st.getState())
{
case State.CREATED:
{
if (BEAST_STRONGHOLD.getSiege().getAttackers().size() >= 5)
{
htmltext = "35627-00.htm";
}
else
{
htmltext = "35627-01.htm";
st.startQuest();
}
break;
}
case State.STARTED:
{
if (getQuestItemsCount(player, STONE) < 10)
{
htmltext = "35627-02.htm";
}
else
{
takeItems(player, STONE, 10);
giveItems(player, TRAINER_LICENSE, 1);
st.exitQuest(true, true);
htmltext = "35627-03.htm";
}
break;
}
}
return htmltext;
}
public static void checkCrystalofPurity(Player player)
{
final QuestState st = player.getQuestState(Q00655_AGrandPlanForTamingWildBeasts.class.getSimpleName());
if ((st != null) && st.isCond(1) && (getQuestItemsCount(player, STONE) < 10))
{
giveItems(player, STONE, 1);
}
}
}