This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31274-00.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31274-00.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Mineral Trader Fundin:<br>
|
||||
I have an urgent delivery to the Gods' Cauldron area!<br>
|
||||
Would you deliver it for me?<br>
|
||||
<a action="bypass -h Quest Q00013_ParcelDelivery 31274-02.html">Sure!</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31274-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31274-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Mineral Trader Fundin:<br>
|
||||
My delivery to the Gods' Cauldron area is too important for a novice!<br>
|
||||
(This quest can only be undertaken by a character of level 74 or above.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31274-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31274-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Mineral Trader Fundin:<br>
|
||||
Take this to <font color="LEVEL">Flame Blacksmith Vulcan in the lower level of Gods' Cauldron.</font> He'll reward you for it, he's been waiting.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31539-00.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31539-00.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Flame Blacksmith Vulcan:<br>
|
||||
Did Fundin send you? A little late, but at least you didn't break it.<br>
|
||||
Let me have it.<br>
|
||||
<a action="bypass -h Quest Q00013_ParcelDelivery 31539-01.html">Here.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31539-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31539-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Flame Blacksmith Vulcan:<br>
|
||||
It's all here, thanks.<br>
|
||||
Here's a token of my thanks.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31539-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/31539-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Flame Blacksmith Vulcan:<br>
|
||||
You don't have required items.
|
||||
</body></html>
|
119
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/Q00013_ParcelDelivery.java
vendored
Normal file
119
trunk/dist/game/data/scripts/quests/Q00013_ParcelDelivery/Q00013_ParcelDelivery.java
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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.Q00013_ParcelDelivery;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Parcel Delivery (13)<br>
|
||||
* Original Jython script by Emperorc.
|
||||
* @author nonom
|
||||
*/
|
||||
public class Q00013_ParcelDelivery extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int FUNDIN = 31274;
|
||||
private static final int VULCAN = 31539;
|
||||
// Item
|
||||
private static final int PACKAGE = 7263;
|
||||
|
||||
public Q00013_ParcelDelivery()
|
||||
{
|
||||
super(13, Q00013_ParcelDelivery.class.getSimpleName(), "Parcel Delivery");
|
||||
addStartNpc(FUNDIN);
|
||||
addTalkId(FUNDIN, VULCAN);
|
||||
registerQuestItems(PACKAGE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31274-02.html":
|
||||
st.startQuest();
|
||||
st.giveItems(PACKAGE, 1);
|
||||
break;
|
||||
case "31539-01.html":
|
||||
if (st.isCond(1) && st.hasQuestItems(PACKAGE))
|
||||
{
|
||||
st.giveAdena(157834, true);
|
||||
st.addExpAndSp(589092, 58794);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31539-02.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
final int npcId = npc.getId();
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
case State.CREATED:
|
||||
if (npcId == FUNDIN)
|
||||
{
|
||||
htmltext = (player.getLevel() >= 74) ? "31274-00.htm" : "31274-01.html";
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
switch (npcId)
|
||||
{
|
||||
case FUNDIN:
|
||||
htmltext = "31274-02.html";
|
||||
break;
|
||||
case VULCAN:
|
||||
htmltext = "31539-00.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user