Into the World
- ID
- 10
- Название
- Into the World
- start_npcs_json
- [30533]
- npc_ids_json
- [30520,30533,30650]
- constants_json
- {"VERY_EXPENSIVE_NECKLACE":7574,"SOE_GIRAN":7559,"MARK_OF_TRAVELER":7570,"REED":30520,"BALANKI":30533,"GERALD":30650}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00010_IntoTheWorld/Q00010_IntoTheWorld.java
NPC квеста
Условия уровней: выражения из Java
if ((player.getLevel() >= 3) && (player.getRace() == Race.DWARF))
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, VERY_EXPENSIVE_NECKLACE, 1); giveItems(player, SOE_GIRAN, 1); rewardItems(player, MARK_OF_TRAVELER, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30520-01.htm] Warehouse Chief Reed: Not all Dwarves are allowed in our Iron Gate Guild. Why have you come here? "To tell you of Silver Scale Balanki's work."
[30520-02.htm] Warehouse Chief Reed: I can't believe Balanki fell for it, you silver-tongued devil! I can't believe that you survived, let alone kept your adena! He must be losing his touch! Ha! You know, I really like you! I'm going to help you, but you must pretend to do something in return to keep up appearances. Balanki considers appearances very important! Now, did you see Priest of the Earth Gerald at this town's entrance? You should give this to him. He loves it even more than I do. Try to find out from him who is getting the right to strip mine mithril. I certainly won't blame you if you can't get this information. It's a very sensitive matter. I hope you don't mind me asking this of you...
[30520-02a.htm] Warehouse Chief Reed: Speak with Priest of the Earth Gerald at the entrance of the town. Don't tell him I sent you, either! Understand?! Give him this necklace and he'll probably tell you the secret.
[30520-03.htm] Warehouse Chief Reed: You're back already? So, what did Gerald say about the rights to strip mine? Did he like the necklace? Tell him the hint that Gerald gave you.
[30520-04.htm] Warehouse Chief Reed: Oh, he's so mysterious! But that hint should be enough, shouldn't it? Are there any more popular or virtuous Dwarves in this town than I? So Gerald thinks that I should make more contributions in the future, eh? Well, that's no problem... I think I know what will make him happy. Anyway, good job! Tell Balanki that I'm OK, and you have a safe and enjoyable trip!
[30520-04a.htm] Warehouse Chief Reed: It's about time you got going, isn't it?! What are you still doing here? Go to Balanki and tell him that I'm OK.
[30533-01.htm] Balanki: What do you want? Can't you see I'm busy? If you want something, speak up! Otherwise, get out! "I'm also one of the members. You should help me travel the world!"
[30533-01a.htm] Balanki: I'm too busy. Go and find someone else? (This quest may only be undertaken by a Dwarven character of level 3 and above.)
[30533-02.htm] Balanki: You've got some nerve addressing an elder like that! So, you want to broaden your horizons, eh? Ha! Even if you could afford to travel, Maphr couldn't keep you safe out there! I admire your courage and ambition, but it takes more than those things to travel, my friend! I'll tell you what! Pass a Test that I give you and I'll pay your way to Giran. Do you understand? All I ask is that you obtain the endorsement of Warehouse Chief Reed. I must warn you, he's not easily impressed. Now get going!
[30533-03.htm] Balanki: Speak with Warehouse Chief Reed in the village and obtain his acknowledgement so that you can go out into the world.
[30533-04.htm] Balanki: Hey, I'm busy... Huh? You're back already? Did Reed give you his OK? What are you up to? "I did what he asked."
[30533-05.htm] Balanki: Damn that Reed! He knows better than that... Well, I suppose I'll do it since I gave you my word. Your abilities may be suspect, but your luck is certainly holding out! I've given you a scroll called Scroll of Escape: Giran. Have you ever used a Scroll of Escape? Double-click the scroll and it will take you to the village. I've been saving this one for a special occasion! This scroll allows you to go directly to Giran Castle Town, but it will only work once, so use it carefully! I know you can't wait to get to the thriving metropolis of Giran, right? Ha! I've also given you the Mark of the Traveler. When you're ready to return to this village, visit Trader Galladucci at the Prestigious Items Hall. Show him this and he'll help you return here. I pray that Maphr is always watching over you!
[30650-01.htm] Priest of the Earth Gerald: Why? Are you here to make a contribution to Maphr? "Here's the gift. Who has the right to strip mine?"
[30650-02.htm] Priest of the Earth Gerald: Very nice! Maphr should be pleased. It's not from you, eh? I think I know who would send me this kind of gift and ask you to find out such a thing. Well, thanks for the gift, but I can't tell you who has the right to strip mine. However, I will give you a hint for the person who gave me this gift. Tell him that the right to strip mine goes to whoever can afford to make enough contributions to Maphr, and whoever has enough wealth, popularity and virtue to operate the mine. Thank him for the gift and tell him to bring by contributions for Maphr anytime.
[30650-03.htm] Priest of the Earth Gerald: Where's the gift? I don't see one. Do you dare to trifle with a priest of the earth? What kind of person would ask about the right to strip mine without giving a gift to Maphr?
[30650-04.htm] Priest of the Earth Gerald: You again, huh?! Although I'll consider the right to strip mine more in the future, tell whoever sent this gift that he has a slight chance to strip mine the mithril this time. Bring me more gifts when you can.
Исходник условий и наград (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.Q00010_IntoTheWorld;
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 Q00010_IntoTheWorld extends Quest
{
// Items
private static final int VERY_EXPENSIVE_NECKLACE = 7574;
// Rewards
private static final int SOE_GIRAN = 7559;
private static final int MARK_OF_TRAVELER = 7570;
// NPCs
private static final int REED = 30520;
private static final int BALANKI = 30533;
private static final int GERALD = 30650;
public Q00010_IntoTheWorld()
{
super(10, "Into the World");
registerQuestItems(VERY_EXPENSIVE_NECKLACE);
addStartNpc(BALANKI);
addTalkId(BALANKI, REED, GERALD);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
switch (event)
{
case "30533-02.htm":
{
st.startQuest();
break;
}
case "30520-02.htm":
{
st.setCond(2, true);
giveItems(player, VERY_EXPENSIVE_NECKLACE, 1);
break;
}
case "30650-02.htm":
{
st.setCond(3, true);
takeItems(player, VERY_EXPENSIVE_NECKLACE, 1);
break;
}
case "30520-04.htm":
{
st.setCond(4, true);
break;
}
case "30533-05.htm":
{
giveItems(player, SOE_GIRAN, 1);
rewardItems(player, MARK_OF_TRAVELER, 1);
st.exitQuest(false, true);
break;
}
}
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.getLevel() >= 3) && (player.getRace() == Race.DWARF))
{
htmltext = "30533-01.htm";
}
else
{
htmltext = "30533-01a.htm";
}
break;
}
case State.STARTED:
{
final int cond = st.getCond();
switch (npc.getId())
{
case BALANKI:
{
if (cond < 4)
{
htmltext = "30533-03.htm";
}
else if (cond == 4)
{
htmltext = "30533-04.htm";
}
break;
}
case REED:
{
if (cond == 1)
{
htmltext = "30520-01.htm";
}
else if (cond == 2)
{
htmltext = "30520-02a.htm";
}
else if (cond == 3)
{
htmltext = "30520-03.htm";
}
else if (cond == 4)
{
htmltext = "30520-04a.htm";
}
break;
}
case GERALD:
{
if (cond == 2)
{
htmltext = "30650-01.htm";
}
else if (cond > 2)
{
htmltext = "30650-04.htm";
}
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}