This commit is contained in:
8
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-00.htm
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-00.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Head Blacksmith Newyear:<br>
|
||||
You have the right look, I won't argue that.<br>
|
||||
Now let's find out if you have the skills. Show me how you hold a weapon...<br>
|
||||
Hmm... I've been a blacksmith here for almost 100 years. I've seen every manner of warrior.<br>
|
||||
Your hands are too far apart, your grip is loose, and your stance is all wrong. Basically, you aren't ready.<br>
|
||||
Return here when you've learned your craft better, adventurer. I think you have the potential.<br>
|
||||
(Only characters of level 70 or above can take on this quest.)
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Head Blacksmith Newyear:<br>
|
||||
Have you ever thought about working for us dwarves?<br>
|
||||
Near this area lies the <font color="LEVEL">Pavel Ruins</font>. I sent an investigator there a while ago, but got nowhere with their reportings.<br>
|
||||
If you are experienced enough, I'd like to send you there.<br>
|
||||
<a action="bypass -h Quest Q00121_PavelTheGiant 31961-02.htm">Say you're experienced enough</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Head Blacksmith Newyear:<br>
|
||||
You're full of confidence, I see. Well, that's right and proper; you have the skill to back it up. Just the sort of adventurer I need!<br>
|
||||
In the heart of the Ruins of Pavel there is a Dwarven barracks. There you will find my associate, <font color="LEVEL">Collector Yumi</font>. She will give you a job if you tell her I sent you. She's, um, a little eccentric. I'm not sure what she'll make of you, but I think you'll pass muster with her.<br>
|
||||
So, get going! Quests don't keep forever, you know!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/31961-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Head Blacksmith Newyear:<br>
|
||||
In the heart of the Ruins of Pavel there is a Dwarven barracks. There you will find my associate, <font color="LEVEL">Collector Yumi</font>. She'll give you a job if you tell her I sent you.
|
||||
</body></html>
|
||||
7
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/32041-01.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/32041-01.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Collector Yumi:<br>
|
||||
What brings you here?<br>
|
||||
Ah, Newyear sent you, did he? I'm glad you came. I've been waiting for you.<br>
|
||||
How is the old boy? Surely he could have sent some food with you. Would that have been too much to expect of him? Honestly.<br>
|
||||
Well, no matter. Let's discuss business.<br>
|
||||
<a action="bypass -h Quest Q00121_PavelTheGiant 32041-02.html">Ask what needs to be done.</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/32041-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/32041-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Collector Yumi:<br>
|
||||
We have two problems. The first and most urgent is that we are beset by a mad scientist whose work is causing us great harm. I am not sure if you can prevail against him, and in good conscience I cannot send you against him until I am sure. Please go see <font color="LEVEL">Collector Gutenhagen.</font> He has been in need of assistance, and he can evaluate your fitness for this task. If he passes you, come see me, and I will tell you a tale of the <font color="LEVEL">old manager</font> of the Pavel Ruins.
|
||||
</body></html>
|
||||
102
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/Q00121_PavelTheGiant.java
vendored
Normal file
102
trunk/dist/game/data/scripts/quests/Q00121_PavelTheGiant/Q00121_PavelTheGiant.java
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J DataPack is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package quests.Q00121_PavelTheGiant;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Pavel the Giants (121)<br>
|
||||
* Original Jython script by Ethernaly.
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00121_PavelTheGiant extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int NEWYEAR = 31961;
|
||||
private static final int YUMI = 32041;
|
||||
|
||||
public Q00121_PavelTheGiant()
|
||||
{
|
||||
super(121, Q00121_PavelTheGiant.class.getSimpleName(), "Pavel the Giant");
|
||||
addStartNpc(NEWYEAR);
|
||||
addTalkId(NEWYEAR, YUMI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31961-02.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32041-02.html":
|
||||
st.addExpAndSp(346320, 26069);
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case NEWYEAR:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= 70) ? "31961-01.htm" : "31961-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = "31961-03.html";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case YUMI:
|
||||
if (st.isStarted())
|
||||
{
|
||||
htmltext = "32041-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user