Nerupa's Request
- ID
- 160
- Название
- Nerupa's Request
- start_npcs_json
- [30370]
- npc_ids_json
- [30147,30149,30152,30370]
- constants_json
- {"NERUPA":30370,"UNOREN":30147,"CREAMEES":30149,"JULIA":30152,"SILVERY_SPIDERSILK":1026,"UNOREN_RECEIPT":1027,"CREAMEES_TICKET":1028,"NIGHTSHADE_LEAF":1029,"LESSER_HEALING_POTION":1060}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00160_NerupasRequest/Q00160_NerupasRequest.java
NPC квеста
Условия уровней: выражения из Java
else if (player.getLevel() < 3)
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, SILVERY_SPIDERSILK, 1); rewardItems(player, LESSER_HEALING_POTION, 5); addExpAndSp(player, 1000, 0); giveItems(player, UNOREN_RECEIPT, 1); giveItems(player, CREAMEES_TICKET, 1); giveItems(player, NIGHTSHADE_LEAF, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30147-01.htm] Trader Unoren: Ah, the Spider Silk that I asked Nerupa to obtain for me. Thank you. This Silvery Spidersilk that the silver spiders spin...very strong and flexible, yet light, which makes it a good material for strongbows. Oh, did Nerupa tell you to get something from me? Hah, Nerupa still insists on trading the old-fashioned way -- bartering. She was absolutely livid when I told her that I'd pay money for the spidersilks. So, she asked me to find the Nighshade Leaf for her instead. It's very hard to get, but thankfully Creamees of the magic shop recently managed to obtain a few nighshade leaves, and I have ordered one from him. Here, take this receipt and go to Creamees, he'll give you the Nighshade Leaf, which you'll give to Nerupa.
[30147-02.htm] Trader Unoren: Are you still in the village? Please get the Nightshade Leaf from Creamees at the magic grocery shop, and deliver it to Nerupa.
[30147-03.htm] Trader Unoren: So, you have come for the Nightshade Leaf. I know it's a burden to you, but would you please deliver it to Nerupa? I don't know the exact reason, but Nerupa says that she will not come into the village. According to rumors, they say it's because of the magic barriers that the hierarch has set up around the village ...
[30149-01.htm] Trader Creamees: The goods that Unoren ordered? Ah, you're talking about the Nightshade Leaf. I had some difficulty finding that... It's so valuable that I put it in the warehouse for safekeeping... Take this ticket and go to Julia at the warehouse, and she will give you the Nightshade Leaf.
[30149-02.htm] Trader Creamees: Did you get the Nightshade Leaf from Julia? Not yet? Go to the warehouse and show Julia the ticket I gave you. Then she will give you the Nightshade Leaf that I stored there.
[30149-03.htm] Trader Creamees: So you've managed to obtain the Nightshade Leaf? Please give it to Unoren of the weapons and armor shop.
[30152-01.htm] Warehouse Keeper Julia: Oh,you have come for the herbs that Creamees entrusted to me. Hold on. I put them into a sealed glass bottle. Here you go. Be careful with that. Ah, and please send Creamees my regards.
[30152-02.htm] Warehouse Keeper Julia: Did you deliver the Nightshade Leaf to Creamees? Not yet? Creamees will be waiting...
[30370-00.htm] Nerupa: If not for the order given by the Elven elders, I would not just stand by and watch a foreigner such as yourself set foot into our sacred woods! The guardians of the forest are watching your every move, so beware! Dare to disobey just one law of the forest and I will kill you without hesitation! (This quest may only be undertaken by an Elven character.)
[30370-02.htm] Nerupa: Recently, one of your kind who lives in the village visited me and asked me to get some silvery spider silks for him. My arachne sisters are wandering the forests and gathering the spider webs that the silver spiders have spun. When the collecting is finished, I'd like you to take them to the village. I hate going into the village. (This quest may only be undertaken by an Elven character of level 3 and above.)
[30370-03.htm] Nerupa: Recently, one of your kind who lives in the village visited me and asked me to get some silvery Spider Silks for him. My sisters have combed the forest and collected spider webs spun by silver spiders. But I detest going into the village. I would like it if you could deliver them for me instead. Would you do that for me? Say you will do the favor
[30370-04.htm] Nerupa: Go to Unoren, who works in the weapons and armor store, and give him this silvery Spider Silk. And in return, I have asked him to get the Nightshade Leaf for me. Unoren said that the Nightshade Leaf is hard to find and offered "adena" instead. But I refused. A young Elf such as yourself may not know this, but we children of the forest have always lived a life where we obtain what we need from nature, trading what we have obtained for other objects, and giving back to nature as much as we have received. But some time ago the Elves learned a strange habit from the Dwarves. The strange practice of giving metal or slips of paper instead of bartering. But I can't understand "money" or "adena" at all. Eventually, Unoren agreed to find the Nightshade Leaf for me. Get it from him and bring it back to me.
[30370-05.htm] Nerupa: You couldn't manage to get the Nightshade Leaf from Unoren? Did he say he didn't have it? Don't tell me that little Elf creature lied to me?
[30370-06.htm] Nerupa: Child of the forest, have you brought me what Unoren promised? Is this it? Yes, by the color and smell of it, it is nightshade for sure. That little Elf was surely lucky to obtain such a rare item. Here, take this. This is your reward for traveling to the village and back.
Исходник условий и наград (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.Q00160_NerupasRequest;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.entity.actor.enums.creature.Race;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00160_NerupasRequest extends Quest
{
// NPCs
private static final int NERUPA = 30370;
private static final int UNOREN = 30147;
private static final int CREAMEES = 30149;
private static final int JULIA = 30152;
// Items
private static final int SILVERY_SPIDERSILK = 1026;
private static final int UNOREN_RECEIPT = 1027;
private static final int CREAMEES_TICKET = 1028;
private static final int NIGHTSHADE_LEAF = 1029;
// Reward
private static final int LESSER_HEALING_POTION = 1060;
public Q00160_NerupasRequest()
{
super(160, "Nerupa's Request");
registerQuestItems(SILVERY_SPIDERSILK, UNOREN_RECEIPT, CREAMEES_TICKET, NIGHTSHADE_LEAF);
addStartNpc(NERUPA);
addTalkId(NERUPA, UNOREN, CREAMEES, JULIA);
}
@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("30370-04.htm"))
{
st.startQuest();
giveItems(player, SILVERY_SPIDERSILK, 1);
}
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:
{
if (player.getRace() != Race.ELF)
{
htmltext = "30370-00.htm";
}
else if (player.getLevel() < 3)
{
htmltext = "30370-02.htm";
}
else
{
htmltext = "30370-03.htm";
}
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case NERUPA:
{
if (cond < 4)
{
htmltext = "30370-05.htm";
}
else if (cond == 4)
{
htmltext = "30370-06.htm";
takeItems(player, NIGHTSHADE_LEAF, 1);
rewardItems(player, LESSER_HEALING_POTION, 5);
addExpAndSp(player, 1000, 0);
st.exitQuest(false, true);
}
break;
}
case UNOREN:
{
if (cond == 1)
{
htmltext = "30147-01.htm";
st.setCond(2, true);
takeItems(player, SILVERY_SPIDERSILK, 1);
giveItems(player, UNOREN_RECEIPT, 1);
}
else if (cond == 2)
{
htmltext = "30147-02.htm";
}
else if (cond == 4)
{
htmltext = "30147-03.htm";
}
break;
}
case CREAMEES:
{
if (cond == 2)
{
htmltext = "30149-01.htm";
st.setCond(3, true);
takeItems(player, UNOREN_RECEIPT, 1);
giveItems(player, CREAMEES_TICKET, 1);
}
else if (cond == 3)
{
htmltext = "30149-02.htm";
}
else if (cond == 4)
{
htmltext = "30149-03.htm";
}
break;
}
case JULIA:
{
if (cond == 3)
{
htmltext = "30152-01.htm";
st.setCond(4, true);
takeItems(player, CREAMEES_TICKET, 1);
giveItems(player, NIGHTSHADE_LEAF, 1);
}
else if (cond == 4)
{
htmltext = "30152-02.htm";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}