Sync with L2JServer Jan 9th 2015.

This commit is contained in:
mobius
2015-01-09 19:55:02 +00:00
parent 9c9b0aaff7
commit 4c2db62a63
618 changed files with 19803 additions and 7853 deletions

View File

@@ -0,0 +1,8 @@
<html><body>Armor Merchant Denya:<br>
So you're about to begin a journey? I want to go out too, but I can't.<br>
But it's not like I hate my job. <font color="LEVEL">Armor</font> increases <font color="LEVEL">defense against physical attacks.</font>
I take pride in helping people protect themselves. A full set of a top, pants, gloves, boots, and a helmet will help you to withstand any attacks.<br>
But you don't look like you're here to buy armor.<br1>
What do you need?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10739_SupplyAndDemand 33934-02.htm">"I'm running errands for Evna."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Armor Merchant Denya:<br>
You mean Weapon Merchant Evna? Oh! You're delivering supply boxes to the forest patrols.<br>
No offense. We can't leave our stores, so we always have to ask adventurers. I'm sure Evna told you that we always pay up.<br>
Let me ask you to deliver my Supply Box too. You will be walking a lot today. <font color="LEVEL">Pelu the Grocer</font> also has supplies.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Armor Merchant Denya:<br>
Go to <font color="LEVEL">Grocer Pelu</font>.
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Weapon Merchant Evna:<br>
Hmm, okay. That seems enough.<br1>
Huh? I was just talking to myself. Let's see what you're capable of.<br>
It's nothing. Outside the town, there is a place called <font color="LEVEL">Whispering Woods</font>.
It's about time we sent the shipment, but as you can see, I'm a merchant. Every second I spend outside costs me money.<br>
I'm sure all the merchants in the area feel the same.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10739_SupplyAndDemand 33935-02.htm">"Cut to the point."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Weapon Merchant Evna:<br>
Okay, okay! You're impatient. Some dwarves are dying to talk to me.<br>
I want you to take the shipment from me and other merchants here to the forest patrol. Of course, you will be handsomely rewarded.<br>
You get to make money, and I get to make money. It's a win-win.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10739_SupplyAndDemand 33935-03.htm">"I'll take the job"</Button>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Weapon Merchant Evna:<br>
I like how you're quick with your answer.<br>
Take my shipment first. it's heavy because it's a Weapon Supply Box.
There are good weapons inside, so don't lose it.
You can come to me when you need a weapon too!
I have daggers, bows, blunt weapons, everythings!<br>
Now go to <font color="LEVEL">Armor Merchant Denya</font> and get other supply boxes.<br>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Weapon Merchant Evna:<br>
Go to <font color="LEVEL">Armor Merchant Denya</font> and get her box.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Grocer Pelu:<br>
Armor Merchant Denya sent you, didn't she? How did I know? My eyes are just that good. You were talking to her just now.<br>
By the way, do you know what I sell?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10739_SupplyAndDemand 33936-02.htm">"What do you sell?"</Button>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Grocer Pelu:<br>
Groceries. Weapon Merchants sell weapons.<br1>
Armor Merchants sell armor. What would Grocers sell?<br>
Don't make that face. Grocers sell various goods.<font color="LEVEL">Scroll of Escape</font>, which takes you home. <font color="LEVEL">Recovery Potion</font>,
when you're hurt. <font color="LEVEL">Soulshots</font> or <font color="LEVEL">Spiritshots</font> for battle. I cannot even list them all. They are mostly <font color="LEVEL">consumables.</font><br>
What am I doing? There's no time. Here's my Supply Box. When the supplies arrive late, the Forest Patrols have a hard time. And I also get in trouble with the Queen. The Queen is not always so kind.<br>
Now go to <font color="LEVEL">Ceri the Accessory Merchant.</font> Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Grocer Pelu:<br>
You need to see one more now. Cheer up! Go to <font color="LEVEL">Ceri the Accessory Merchant</font>.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Ceri the Accessory Merchant:<br>
You're finally here. I've been waiting for you. Am I the last one? You need to receive supply boxes from 4 people, including myself.<br>
Outside town, you will find the <font color="LEVEL">Whispering Woods.</font> It was transferred from the Wind Spirit Realm along with the village.
The animals and fairies there became violent as they came through the Dimensional Rift, so the Forest Patrols are watching them.<br>
You must deliver the supply box soon, so they don't get hurt doing their job.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10739_SupplyAndDemand 33937-02.htm">"What do I deliver?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Ceri the Accessory Merchant:<br>
They are accessories such as <font color="LEVEL">earrings, necklaces, and rings.</font> Armor increases defense against physical attacks.
On the other hand, <font color="LEVEL">accessories</font> increase <font color="LEVEL">defense against magic.</font>
The enemies outside the village will attack you in various forms, which why it's important to wear both armor and accessories.<br>
Here, this is an accessory supply box. Please take it with the other supply boxes to <font color="LEVEL">Forest Patrol Sivanthe.</font>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ceri the Accessory Merchant:<br>
Did you forget who you should go to?<br>
Please take the supply boxes to <font color="LEVEL">Forest Patrol Sivanthe</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Forest Patrol Sivanthe:<br>
You brought the supply boxes. Thanks you.<br>
I will delegate them to the Forest Patrols inside. You should learn about the Remembrance Tower while you're here.<br>
</body></html>

View File

@@ -0,0 +1,201 @@
/*
* Copyright (C) 2004-2015 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.Q10739_SupplyAndDemand;
import quests.Q10738_AnInnerBeauty.Q10738_AnInnerBeauty;
import com.l2jserver.gameserver.enums.Race;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.holders.ItemHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
/**
* @author Sdw
*/
public class Q10739_SupplyAndDemand extends Quest
{
// NPC's
private static final int EVNA = 33935;
private static final int DENYA = 33934;
private static final int PELU = 33936;
private static final int CERI = 33937;
private static final int SIVANTHE = 33951;
// Items
private static final ItemHolder WEAPON_SUPPLY_BOX = new ItemHolder(39522, 1);
private static final ItemHolder ARMOR_SUPPLY_BOX = new ItemHolder(39523, 1);
private static final ItemHolder GROCERY_SUPPLY_BOX = new ItemHolder(39524, 1);
private static final ItemHolder ACCESSORY_SUPPLY_BOX = new ItemHolder(39525, 1);
private static final ItemHolder LEATHER_SHIRT = new ItemHolder(21, 1);
private static final ItemHolder LEATHER_PANTS = new ItemHolder(29, 1);
private static final ItemHolder APPRENTICE_EARRING = new ItemHolder(112, 2);
private static final ItemHolder NECKLACE_OF_KNOWNLEDGE = new ItemHolder(906, 1);
// Misc
private static final int MIN_LEVEL = 6;
private static final int MAX_LEVEL = 20;
public Q10739_SupplyAndDemand()
{
super(10739, Q10739_SupplyAndDemand.class.getSimpleName(), "Supply And Demand");
addStartNpc(EVNA);
addTalkId(EVNA, DENYA, PELU, CERI, SIVANTHE);
registerQuestItems(WEAPON_SUPPLY_BOX.getId(), ARMOR_SUPPLY_BOX.getId(), GROCERY_SUPPLY_BOX.getId(), ACCESSORY_SUPPLY_BOX.getId());
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33935-05.htm");
addCondRace(Race.ERTHEIA, "33935-05.htm");
addCondCompletedQuest(Q10738_AnInnerBeauty.class.getSimpleName(), "33935-05.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "33935-03.htm":
{
qs.startQuest();
giveItems(player, WEAPON_SUPPLY_BOX);
htmltext = event;
break;
}
case "33934-02.htm":
{
if (qs.isCond(1))
{
qs.setCond(2, true);
giveItems(player, ARMOR_SUPPLY_BOX);
htmltext = event;
}
break;
}
case "33936-02.htm":
{
if (qs.isCond(2))
{
qs.setCond(3, true);
giveItems(player, GROCERY_SUPPLY_BOX);
htmltext = event;
}
break;
}
case "33937-02.htm":
{
if (qs.isCond(3))
{
qs.setCond(4, true);
giveItems(player, ACCESSORY_SUPPLY_BOX);
htmltext = event;
}
break;
}
case "33935-02.htm":
{
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isCompleted())
{
htmltext = getAlreadyCompletedMsg(player);
}
switch (npc.getId())
{
case EVNA:
if (qs.isCreated())
{
htmltext = "33935-01.htm";
}
else if (qs.isStarted())
{
htmltext = "33935-04.htm";
}
break;
case DENYA:
if (qs.isCond(1))
{
htmltext = "33934-01.htm";
}
else if (qs.isCond(2))
{
htmltext = "33934-03.htm";
}
break;
case PELU:
if (qs.isCond(2))
{
htmltext = "33936-01.htm";
}
else if (qs.isCond(3))
{
htmltext = "33936-03.htm";
}
break;
case CERI:
if (qs.isCond(3))
{
htmltext = "33937-01.htm";
}
else if (qs.isCond(4))
{
htmltext = "33937-03.htm";
}
break;
case SIVANTHE:
if (qs.isCond(4))
{
giveItems(player, LEATHER_SHIRT);
giveItems(player, LEATHER_PANTS);
giveItems(player, APPRENTICE_EARRING);
giveItems(player, NECKLACE_OF_KNOWNLEDGE);
giveAdena(player, 1400, true);
addExpAndSp(player, 8136, 0);
qs.exitQuest(false, true);
showOnScreenMsg(player, NpcStringId.CHECK_YOUR_EQUIPMENT_IN_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500);
htmltext = "33951-01.htm";
}
break;
}
return htmltext;
}
}