Trade with the Ivory Tower
- ID
- 262
- Название
- Trade with the Ivory Tower
- start_npcs_json
- [30137]
- npc_ids_json
- []
- constants_json
- {"FUNGUS_SAC":707}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00262_TradeWithTheIvoryTower/Q00262_TradeWithTheIvoryTower.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 8) ? "30137-01.htm" : "30137-02.htm";
Выдача предметов, адены и опыта: выражения из Java
giveAdena(player, 3000, true); giveItems(player, FUNGUS_SAC, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30137-01.htm] Trader Vollodos: I travel to Oren's Ivory Tower once or twice a year. What kind of place is the Ivory Tower of Oren, you ask? It is the headquarters of Mystics, as well as an educational institute, and a place where Mystics gather. You can get useful magic potions and materials from the Traders or Mystics of the Ivory Tower. But during my recent visit, some of them asked me to bring them magic materials that can only be found in our Dark Forest. They said that they would pay handsomely for the items they need. So I've recently started to sell goods such as the wings of an imp or an arachne's web there. I'm looking to see if I can gather some more precious items for sale. I will ask for your help when the time comes. I'm going to need more hands if I want to gather large amounts of any item. (This quest may only be undertaken by a character of level 8 and above.)
[30137-02.htm] Trader Vollodos: I travel to Oren's Ivory Tower once or twice a year. What kind of place is the Ivory Tower of Oren, you ask? It is the headquarters of Mystics, as well as an educational institute, and a place where Mystics gather. You can get useful magic potions and materials from the Traders or Mystics of the Ivory Tower. A few of the Ivory Tower Mystics have asked me to bring them magic materials that can only be found in our Dark Forest. They pay handsomely for the materials that I bring them, and it occurred to me that this might be the beginning of a good business. So I plan to go into it a bit deeper. During my last visit I noticed that there were many Mystics looking for mushroom spores. These spores can only be obtained from the green fungus or the blood fungus that appear in our Dark Forest. The fungi are strange, mushroom-shaped life forms that have formed from the fermented spores carried over from the Sea of Spores. It is dangerous for a mere businessman like myself to face the fungi alone. Which brings me to my point. Do you think you could go and get me some? I will pay you well for them. Say you will help
[30137-03.htm] Trader Vollodos: You must travel far from the village to find the fungus. They grow in the deep southern region of the Dark Forest, and also near the School of Dark Arts. You can get the Spore Sac by killing the fungus, but sometimes the Spore Sac explodes when the fungus is killed, so you will probably have to hunt many fungi. Gather ten Spore Sacs and bring them back to me. Your payment will be more than fair, so do not worry.
[30137-04.htm] Trader Vollodos: Weren't you supposed to bring me ten fungus Spore Sacs? If you bring me ten of them as promised, I will give you the reward. Hurry! The carriage travelling to the Ivory Tower leaves in a few days, and I must have the goods ready by then.
[30137-05.htm] Trader Vollodos: This is undoubtedly a fungus Spore Sac. Thank you. I'll compensate you as I promised. I am sure that the magicians of Ivory Tower will also be satisfied. I wonder what I can get in return for this trade. Come by the shop anytime. May the protection of Shilen 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.Q00262_TradeWithTheIvoryTower;
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 Q00262_TradeWithTheIvoryTower extends Quest
{
// Item
private static final int FUNGUS_SAC = 707;
public Q00262_TradeWithTheIvoryTower()
{
super(262, "Trade with the Ivory Tower");
registerQuestItems(FUNGUS_SAC);
addStartNpc(30137); // Vollodos
addTalkId(30137);
addKillId(20400, 20007);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
final String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
if (event.equals("30137-03.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() < 8) ? "30137-01.htm" : "30137-02.htm";
break;
}
case State.STARTED:
{
if (getQuestItemsCount(player, FUNGUS_SAC) < 10)
{
htmltext = "30137-04.htm";
}
else
{
htmltext = "30137-05.htm";
takeItems(player, FUNGUS_SAC, -1);
giveAdena(player, 3000, true);
st.exitQuest(true, true);
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final QuestState st = getQuestState(player, false);
if ((st == null) || !st.isCond(1))
{
return;
}
if (getRandom(10) < (npc.getId() == 20400 ? 4 : 3))
{
giveItems(player, FUNGUS_SAC, 1);
if (getQuestItemsCount(player, FUNGUS_SAC) >= 10)
{
st.setCond(2, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
}