This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Ian:<br>
|
||||
Come in! What can I do for you?<br>
|
||||
Ah yes, a payment from Woodley! That's 300,000 Adena, right?<br>
|
||||
<a action="bypass -h Quest Q00033_MakeAPairOfDressShoes 30164-02.html">"Here it is."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Ian:<br>
|
||||
Humph! Only 300,000 Adena for the excellent item I made for him? I suppose I'll accept it this time! Tell Mr. Woodley that his balance is paid off, but next time, I'll have to charge a late fee!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Ian:<br>
|
||||
So, Mr. Woodley sent you? Where is his payment? Did you drop it by any chance? Please check your pockets!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30164-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Ian:<br>
|
||||
You haven't seen Mr. Woodley? When you do, tell him that I'll accept his payment this time, but next time he's late, I'll charge him a late fee.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
Welcome. What can I do for you? Looking for formal shoes?<br>
|
||||
If you want the shoes to match the order you placed with Leikar, I need some of the same material. Bring it, then I can start.<br>
|
||||
<a action="bypass -h Quest Q00033_MakeAPairOfDressShoes 30838-03.htm">Quest</a>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
Welcome. What can I do for you? Looking for formal shoes? Come back when you have enough class to shop here!<br>
|
||||
(This quest may only be undertaken by a character of level 60 or above.)
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
If you get some of the same material from your order with Leikar, I can make you shoes to match.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
Welcome. If you get some of the same material from your order with Leikar, I can make you shoes to match.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
Leikar's short on fabric?<br>
|
||||
It's hard to make something using the color but not the fabric. Can you help?<br>
|
||||
<a action="bypass -h Quest Q00033_MakeAPairOfDressShoes 30838-06.html">"I'll try."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
I need 200 leather and 600 thread for the shoes. You also have to pay for them. It's about five hundred thousand Adena. Don't forget!
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
You brought it all! Give me two hundred thousand Adena and we'll call it good.<br>
|
||||
<a action="bypass -h Quest Q00033_MakeAPairOfDressShoes 30838-09.html">"Here's the money and the goods."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
Look like you don't have all the materials. I know that they are not something that ordinary people should expect to obtain, but you're not exactly an ordinary person, eh? Please go get them for me.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
This will take a while to make. Deliver three hundred thousand Adena to Trader Ian for the materials.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-10.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-10.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<hrml><body>Trader Woodley:<br>
|
||||
I know these materials are hard to get now, but hurry!
|
||||
</body></hrml>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-11.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-11.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
I'm still working on the shoes. Did you deliver three hundred thousand Adena to Ian?
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-12.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-12.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
What did Ian say?<br>
|
||||
I'll respect his requests.<br>
|
||||
<a action="bypass -h Quest Q00033_MakeAPairOfDressShoes 30838-13.html">"Can I have the shoes?"</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-13.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/30838-13.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Woodley:<br>
|
||||
They should be well protected in this box. Be careful!
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/31520-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/31520-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Leikar:<br>
|
||||
Have you already been to Mr. Woodley? Even Mr. Woodley couldn't have made a pair of formal dress shoes so quickly! Did something happen that I need to know about?<br>
|
||||
<a action="bypass -h Quest Q00033_MakeAPairOfDressShoes 31520-02.html">"I need the materials for the Formal Wear."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/31520-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/31520-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Leikar:<br>
|
||||
Oh! We need the fabric for the Formal Wear so that we can match the color of the shoes. Tell Mr. Woodley that I don't have any fabric to give him now and he should use his best judgement regarding the shoes. Tell him to make them the same as before, he'll understand.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/31520-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/31520-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Leikar:<br>
|
||||
You haven't left yet? I can't get new fabric... Tell Mr. Woodley to use the same color as before for the shoes.
|
||||
</body></html>
|
||||
182
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/Q00033_MakeAPairOfDressShoes.java
vendored
Normal file
182
trunk/dist/game/data/scripts/quests/Q00033_MakeAPairOfDressShoes/Q00033_MakeAPairOfDressShoes.java
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
/*
|
||||
* 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.Q00033_MakeAPairOfDressShoes;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Make a Pair of Dress Shoes (33)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00033_MakeAPairOfDressShoes extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int IAN = 30164;
|
||||
private static final int WOODLEY = 30838;
|
||||
private static final int LEIKAR = 31520;
|
||||
// Items
|
||||
private static final int LEATHER = 1882;
|
||||
private static final int THREAD = 1868;
|
||||
private static final int DRESS_SHOES_BOX = 7113;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 60;
|
||||
private static final int LEATHER_COUNT = 200;
|
||||
private static final int THREAD_COUNT = 600;
|
||||
private static final int ADENA_COUNT = 500000;
|
||||
private static final int ADENA_COUNT2 = 200000;
|
||||
private static final int ADENA_COUNT3 = 300000;
|
||||
|
||||
public Q00033_MakeAPairOfDressShoes()
|
||||
{
|
||||
super(33, Q00033_MakeAPairOfDressShoes.class.getSimpleName(), "Make a Pair of Dress Shoes");
|
||||
addStartNpc(WOODLEY);
|
||||
addTalkId(WOODLEY, IAN, LEIKAR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "30838-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30838-06.html":
|
||||
st.setCond(3, true);
|
||||
break;
|
||||
case "30838-09.html":
|
||||
if ((st.getQuestItemsCount(LEATHER) >= LEATHER_COUNT) && (st.getQuestItemsCount(THREAD) >= THREAD_COUNT) && (player.getAdena() >= ADENA_COUNT2))
|
||||
{
|
||||
st.takeItems(LEATHER, LEATHER_COUNT);
|
||||
st.takeItems(THREAD, LEATHER_COUNT);
|
||||
st.takeItems(Inventory.ADENA_ID, ADENA_COUNT2);
|
||||
st.setCond(4, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30838-10.html";
|
||||
}
|
||||
break;
|
||||
case "30838-13.html":
|
||||
st.giveItems(DRESS_SHOES_BOX, 1);
|
||||
st.exitQuest(false, true);
|
||||
break;
|
||||
case "31520-02.html":
|
||||
st.setCond(2, true);
|
||||
break;
|
||||
case "30164-02.html":
|
||||
if (player.getAdena() < ADENA_COUNT3)
|
||||
{
|
||||
return "30164-03.html";
|
||||
}
|
||||
st.takeItems(Inventory.ADENA_ID, ADENA_COUNT3);
|
||||
st.setCond(5, true);
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
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;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case WOODLEY:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30838-01.htm" : "30838-02.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "30838-04.html";
|
||||
break;
|
||||
case 2:
|
||||
htmltext = "30838-05.html";
|
||||
break;
|
||||
case 3:
|
||||
htmltext = ((st.getQuestItemsCount(LEATHER) >= LEATHER_COUNT) && (st.getQuestItemsCount(THREAD) >= THREAD_COUNT) && (player.getAdena() >= ADENA_COUNT)) ? "30838-07.html" : "30838-08.html";
|
||||
break;
|
||||
case 4:
|
||||
htmltext = "30838-11.html";
|
||||
break;
|
||||
case 5:
|
||||
htmltext = "30838-12.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case LEIKAR:
|
||||
if (st.isStarted())
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "31520-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "31520-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case IAN:
|
||||
if (st.isStarted())
|
||||
{
|
||||
if (st.isCond(4))
|
||||
{
|
||||
htmltext = "30164-01.html";
|
||||
}
|
||||
else if (st.isCond(5))
|
||||
{
|
||||
htmltext = "30164-04.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user