Recover Smuggled Goods
- ID
- 157
- Название
- Recover Smuggled Goods
- start_npcs_json
- [30005]
- npc_ids_json
- []
- constants_json
- {"ADAMANTITE_ORE":1024,"BUCKLER":20}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00157_RecoverSmuggledGoods/Q00157_RecoverSmuggledGoods.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 5) ? "30005-02.htm" : "30005-03.htm";
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, BUCKLER, 1); giveItems(killer, ADAMANTITE_ORE, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30005-02.htm] Warehouse Keeper Wilford: I'm sure you know this, but our Aden Kingdom was at war with Gracia until recently. As a result of the wars, trade with Gracia is still banned to this day. That is such a shame for businesses like me... particularly since there is a large profit to be made from importing metals in high demand, like adamantite... eh? You don't know what adamantite is? Hmmm... I can't tell you right now, but if you are interested, I will explain it to you later. (This quest may only be undertaken by a character of level 5 and above.)
[30005-03.htm] Warehouse Keeper Wilford: As you know, there was war between Aden and Gracia. But the problem is, official trade with Gracia has since been banned, and Gracia trade ships no longer come to Talking Island. Tsk, I can't believe they would ban free trade for political reasons, it's a significant loss to businessmen like me. My business was quite profitable from my importing and selling of metals like adamantite... plus, from a military standpoint, can't they realize that not being able to produce fine quality adamantite weapons will lead to the weakening of military powers? Such a difficult situation... Now this is our little secret, but actually, I am still trading with Gracia through secret routes. We may be political enemies, but that doesn't always make a difference in real life. There is always a high demand for goods from Gracia. So, what do you think? As long as you promise not to talk about this in front of anyone else, I can tell you some more... Ask for details
[30005-04.htm] Warehouse Keeper Wilford: Good, then let me first tell you what adamantite is. Adamantite is a very important metal for making weapons. Weapons and armor crafted from refined adamantite ore metal are of high quality. Most other weapons can't even compare. But this adamantite is not found in Aden, and has to be imported from the Kardif regions of Gracia. But since the trade ban was announced, it has been difficult to find adamantite anywhere in the Aden Kingdom. However, because I had established a partnership with a few Gracian traders long ago, I have been able to bring adamantite ore into this island away from the eyes of the governor. Well, strictly speaking, you can call it smuggling. Usually, we land the smuggling ship on the remote southern shores of Talking Island, then load the materials onto a small boat and travel upstream to unload them on the shores of the lake near Einhovant's School of Magic. But an unforeseen accident a few days ago have put me in a bit of a dilemma. So I'd like to seek your help with that problem... What about it, will you help? Say you will help
[30005-05.htm] Warehouse Keeper Wilford: Good, so we see eye to eye. Now listen carefully to what I tell you. Do you remember the day that the recent storms hit? That particular day was the day that my 'business partners' and I were to bring some goods in. Thankfully, the smuggler's ship landed safely on the southern shores of the island. Because I had to unload before sunrise, I attempted to move the goods to the unloading place, even if it meant overexerting myself. But while going upstream with the adamantite ore loaded on my lifeboat, the boat was upturned by the waters of the river that was swollen from the storm, and the ore was scattered all around the lake. My business partners and I spent all night walking around the lakeshore gathering the ore. But after we gathered together all the ore that we had collected, we were missing quite a large amount. As I found out later, giant toads that live near the lake had swallowed the ore. So what I would like to ask you to do is walk around the shores of the lake adjacent to Einhovant's School of Wizardry, hunt the toads, and recover the adamantite ore that they have swallowed. I have to send the goods to Giran, and I must send twenty at a time. When you have gathered twenty of them, bring them to me. I will give you a generous reward for them. Now, go if you are ready.
[30005-06.htm] Warehouse Keeper Wilford: I see you have not been able to collect all of the goods yet. Right now, I have to send a shipment to Giran, and I need exactly twenty pieces of the ore. Please continue your efforts. I have to send off the shipment to Giran as soon as possible.
[30005-07.htm] Warehouse Keeper Wilford: Oh, you have recovered them. Good job! I must send them off immediately today, on the next trade boat to Giran. This is all thanks to you. Here, the reward that I have promised. I hope you won't talk to anyone else about this. It won't be good if this reaches the ears of the guards. I trust that you will take care of things even if I stop right here. Well, may the blessings of the land be with you!
Исходник условий и наград (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.Q00157_RecoverSmuggledGoods;
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.QuestSound;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00157_RecoverSmuggledGoods extends Quest
{
// Item
private static final int ADAMANTITE_ORE = 1024;
// Reward
private static final int BUCKLER = 20;
public Q00157_RecoverSmuggledGoods()
{
super(157, "Recover Smuggled Goods");
registerQuestItems(ADAMANTITE_ORE);
addStartNpc(30005); // Wilford
addTalkId(30005);
addKillId(20121); // Toad
}
@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("30005-05.htm"))
{
st.startQuest();
}
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() < 5) ? "30005-02.htm" : "30005-03.htm";
break;
}
case State.STARTED:
{
final int cond = st.getCond();
if (cond == 1)
{
htmltext = "30005-06.htm";
}
else if (cond == 2)
{
htmltext = "30005-07.htm";
takeItems(player, ADAMANTITE_ORE, -1);
giveItems(player, BUCKLER, 1);
st.exitQuest(false, true);
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && (getRandom(10) < 4) && (getQuestItemsCount(killer, ADAMANTITE_ORE) < 20))
{
giveItems(killer, ADAMANTITE_ORE, 1);
if (getQuestItemsCount(killer, ADAMANTITE_ORE) >= 20)
{
qs.setCond(2, true);
}
else
{
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
}