Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -1,5 +1,6 @@
<html><body>Mineral Trader Fundin:<br>
I have an urgent delivery to the Gods' Cauldron area!<br>
Would you deliver it for me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00013_ParcelDelivery 31274-02.html">Sure!</Button>
<html><body>Mineral Trader Fundin:<br>
I have an urgent delivery to the Forge of the Gods!<br>
I am too busy to make the delivery myself. What? I don't look that busy? Well... To be honest, the Forge of the Gods is way too dangerous... So...<br>
Would you make the delivery for me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00013_ParcelDelivery 31274-02.html">"Okay."</Button>
</body></html>

View File

@@ -1,4 +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.)
<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>

View File

@@ -1,3 +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>
<html><body>Mineral Trader Fundin:<br>
Take this to<font color="LEVEL"> Flame Blacksmith Vulcan on the lower level of the Forge of the Gods.</font> He'll reward you for it, he's been waiting.
</body></html>

View File

@@ -1,5 +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>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00013_ParcelDelivery 31539-01.html">Here.</Button>
<html><body>Vulcan, Blacksmith of the Flame:<br>
Did Fundin send you? A little late, but at least you didn't break it.<br>
Let me have it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00013_ParcelDelivery 31539-01.html">Here</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Flame Blacksmith Vulcan:<br>
It's all here, thanks.<br>
Here's a token of my thanks.
<html><body>Vulcan, Blacksmith of the Flame:<br>
It's all here, thanks.<br>
Here's a token of my thanks.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Flame Blacksmith Vulcan:<br>
You don't have required items.
<html><body>Vulcan, Blacksmith of the Flame:<br>
You don't have required items.
</body></html>

View File

@@ -1,126 +1,119 @@
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.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 qs = getQuestState(player, false);
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "31274-02.html":
{
qs.startQuest();
giveItems(player, PACKAGE, 1);
break;
}
case "31539-01.html":
{
if (qs.isCond(1) && hasQuestItems(player, PACKAGE))
{
giveAdena(player, 157834, true);
addExpAndSp(player, 589092, 58794);
qs.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 qs = getQuestState(player, true);
if (qs == null)
{
return htmltext;
}
final int npcId = npc.getId();
switch (qs.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 (qs.isCond(1))
{
if (npcId == FUNDIN)
{
htmltext = "31274-02.html";
}
else if (npcId == VULCAN)
{
htmltext = "31539-00.html";
}
}
break;
}
}
return htmltext;
}
}
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Parcel Delivery (13)
* @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;
// Misc
private static final int MIN_LEVEL = 74;
public Q00013_ParcelDelivery()
{
super(13);
addStartNpc(FUNDIN);
addTalkId(FUNDIN, VULCAN);
registerQuestItems(PACKAGE);
addCondMinLevel(MIN_LEVEL, "31274-01.html");
}
@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();
giveItems(player, PACKAGE, 1);
break;
case "31539-01.html":
if (st.isCond(1) && hasQuestItems(player, PACKAGE))
{
giveAdena(player, 271980, true);
addExpAndSp(player, 1_279_632, 307);
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.CREATED:
if (npcId == FUNDIN)
{
htmltext = "31274-00.htm";
}
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;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
return htmltext;
}
}