Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<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.html">"I'm running errands for Evna."</Button>
|
||||
<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. What do you need?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10739_SupplyAndDemand 33934-02.html">"I'm running errands for Evna."</button>
|
||||
</body></html>
|
||||
@@ -1,5 +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.
|
||||
<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>
|
||||
@@ -1,3 +1,3 @@
|
||||
<html><body>Armor Merchant Denya:<br>
|
||||
Go to <font color="LEVEL">Grocer Pelu</font>.
|
||||
<html><body>Armor Merchant Denya:<br>
|
||||
Go to <font color="LEVEL">Grocer Pelu</font>.
|
||||
</body></html>
|
||||
@@ -1,8 +1,7 @@
|
||||
<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>
|
||||
<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>
|
||||
@@ -1,6 +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.html">"I'll take the job"</Button>
|
||||
<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>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/33935-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/33935-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<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, everything!<br>
|
||||
Now go to <font color="LEVEL">Armor Merchant Denya</font> and get other supply boxes.
|
||||
</body></html>
|
||||
@@ -1,8 +0,0 @@
|
||||
<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>
|
||||
@@ -1,3 +1,3 @@
|
||||
<html><body>Weapon Merchant Evna:<br>
|
||||
Go to <font color="LEVEL">Armor Merchant Denya</font> and get her box.
|
||||
<html><body>Weapon Merchant Evna:<br>
|
||||
Go to <font color="LEVEL">Armor Merchant Denya</font> and get her box.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/33935-05.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/33935-05.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Weapon Merchant Evna:<br>
|
||||
Time is money.<br>
|
||||
(Only Ertheia characters Lv. 7 to 20 may undertake this quest.)
|
||||
</body></html>
|
||||
@@ -1,5 +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.html">"What do you sell?"</Button>
|
||||
<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.html">"What do you sell?"</button>
|
||||
</body></html>
|
||||
@@ -1,8 +1,6 @@
|
||||
<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!
|
||||
<html><body>Grocer Pelu:<br>
|
||||
Groceries. Weapon Merchants sell weapons. 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>
|
||||
@@ -1,3 +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>.
|
||||
<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>
|
||||
@@ -1,7 +1,6 @@
|
||||
<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.html">"What do I deliver?"</Button>
|
||||
<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.html">"What do I deliver?"</button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,4 @@
|
||||
<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>
|
||||
<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>
|
||||
@@ -1,4 +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>.
|
||||
<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>
|
||||
@@ -1,4 +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>
|
||||
<html><body>Forest Patrol Sivanthe:<br>
|
||||
You brought the supply boxes. Thank you.<br>
|
||||
I will delegate them to the Forest Patrols inside. You should learn about the Remembrance Tower while you're here.
|
||||
</body></html>
|
||||
@@ -1,194 +1,215 @@
|
||||
/*
|
||||
* 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.Q10739_SupplyAndDemand;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
import quests.Q10738_AnInnerBeauty.Q10738_AnInnerBeauty;
|
||||
|
||||
/**
|
||||
* @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.html");
|
||||
addCondRace(Race.ERTHEIA, "33935-05.html");
|
||||
addCondCompletedQuest(Q10738_AnInnerBeauty.class.getSimpleName(), "33935-05.html");
|
||||
}
|
||||
|
||||
@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.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
giveItems(player, WEAPON_SUPPLY_BOX);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33934-02.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
giveItems(player, ARMOR_SUPPLY_BOX);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33936-02.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
giveItems(player, GROCERY_SUPPLY_BOX);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33937-02.html":
|
||||
{
|
||||
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 = qs.isCompleted() ? getAlreadyCompletedMsg(player) : getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case EVNA:
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "33935-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
htmltext = "33935-04.html";
|
||||
}
|
||||
break;
|
||||
|
||||
case DENYA:
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33934-01.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33934-03.html";
|
||||
}
|
||||
break;
|
||||
|
||||
case PELU:
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33936-01.html";
|
||||
}
|
||||
else if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33936-03.html";
|
||||
}
|
||||
break;
|
||||
|
||||
case CERI:
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33937-01.html";
|
||||
}
|
||||
else if (qs.isCond(4))
|
||||
{
|
||||
htmltext = "33937-03.html";
|
||||
}
|
||||
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.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.Q10739_SupplyAndDemand;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
import quests.Q10738_AnInnerBeauty.Q10738_AnInnerBeauty;
|
||||
|
||||
/**
|
||||
* Supply And Demand (10739)
|
||||
* @author Sdw
|
||||
*/
|
||||
public final 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);
|
||||
addStartNpc(EVNA);
|
||||
addTalkId(EVNA, DENYA, PELU, CERI, SIVANTHE);
|
||||
|
||||
addCondRace(Race.ERTHEIA, "");
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33935-05.htm");
|
||||
addCondCompletedQuest(Q10738_AnInnerBeauty.class.getSimpleName(), "33935-05.htm");
|
||||
registerQuestItems(WEAPON_SUPPLY_BOX.getId(), ARMOR_SUPPLY_BOX.getId(), GROCERY_SUPPLY_BOX.getId(), ACCESSORY_SUPPLY_BOX.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "33935-02.htm":
|
||||
break;
|
||||
case "33935-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
giveItems(player, WEAPON_SUPPLY_BOX);
|
||||
break;
|
||||
}
|
||||
case "33934-02.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
giveItems(player, ARMOR_SUPPLY_BOX);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33936-02.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
giveItems(player, GROCERY_SUPPLY_BOX);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33937-02.html":
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
giveItems(player, ACCESSORY_SUPPLY_BOX);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
htmltext = null;
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case EVNA:
|
||||
{
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = "33935-01.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = "33935-04.html";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DENYA:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33934-01.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33934-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PELU:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33936-01.html";
|
||||
}
|
||||
else if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33936-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CERI:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33937-01.html";
|
||||
}
|
||||
else if (qs.isCond(4))
|
||||
{
|
||||
htmltext = "33937-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SIVANTHE:
|
||||
if (qs.isStarted() && qs.isCond(4))
|
||||
{
|
||||
if (!isSimulated)
|
||||
{
|
||||
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);
|
||||
showOnScreenMsg(player, NpcStringId.CHECK_YOUR_EQUIPMENT_IN_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 10000);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
htmltext = "33951-01.html";
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user