This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Come in! What can I do for you?<br>
|
||||
Ah, Leikar's order isn't ready yet. I'm sorry. I ordered the ore that I need to make the jewelry from Wharf Manager Felton, but he hasn't delivered it yet. Are you in a hurry? I hate to ask you this, but would you mind going to see Mr. Felton and check to see if the ore has arrived?<br>
|
||||
<a action="bypass -h Quest Q00035_FindGlitteringJewelry 30091-03.htm">"Where can I find Mr. Felton?"</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Come in! What can I do for you?<br>
|
||||
Ah, Leikar's order isn't ready yet. I'm sorry. I placed an order for the ore that I need to make the jewelry through Wharf Manager Felton, but he hasn't delivered it yet. Try back later!<br>
|
||||
(Only a character of level 60 or above can undertake this quest.)
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Please go to Giran Harbor and look for <font color="LEVEL">Wharf Manager Felton</font>. Ask him when the ore I ordered will arrive.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Why are you still here? Go ask <font color="LEVEL">Wharf Manager Felton</font> when the ore will arrive. You can find him at <font color="LEVEL">Giran Harbor</font>.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
What happened to the ore I requested? Have you met with Mr. Felton? Please pay a visit to <font color="LEVEL">Wharf Manager Felton</font> and ask him about the ore.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-06.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-06.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Hi there! Have you met Mr. Felton?<br>
|
||||
Since I see you holding the ore, you must have met with him. I think I ordered about 10 of them. If you can give them to me, I will make the jewelry for you. Please put the ore you have up here.<br>
|
||||
<a action="bypass -h Quest Q00035_FindGlitteringJewelry 30091-07.html">"Here they are."</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-07.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-07.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Ah, very nice! One, two, three... 10 ore pieces! This should be enough. Now I'll get started!<br>
|
||||
With this Oriharukon and silver, I'll make a very pretty... Oh no!<br>
|
||||
I'm sorry,we've got a problem! I was going to augment the ore so I could make a beautiful piece of jewelry, but I ran out of some materials I need! Will you help me? I can't leave the store, and there's no time to order them now.<br>
|
||||
I need <font color="LEVEL">5 Oriharukons, 500 units of silver and 150 Thons</font>. I know it's a lot, but I've got to have them! Please hurry!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Where are the 10 ore pieces? I can't make jewelry without ore.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-09.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-09.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Ah! I didn't think that you could get it so quickly! Thank you! 5 Oriharukons, 500 units of silver and 150 Thons. I'll make some beautiful jewelry for a special occasion!<br>
|
||||
<a action="bypass -h Quest Q00035_FindGlitteringJewelry 30091-11.html">"Here are the materials."</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-10.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-10.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
These materials won't be easy to find! With some help, you can probably get them quicker. I need 5 Oriharukons, 500 units of silver and 150 Thons. Don't forget!
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-11.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-11.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Wait here, I won't be long...<br>
|
||||
...<br>
|
||||
...<br>
|
||||
Here is the jewelry that Maid Leikar ordered. It's such a large order, I put it into this Gem Box for protection. Please, deliver it safely to Leikar!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-12.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30091-12.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Jeweler Ellie:<br>
|
||||
Where are the materials I requested? I can't make the jewelry for you unless you give me the materials! Stop fooling around!
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30879-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30879-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Wharf Manager Felton:<br>
|
||||
What brings you here? The boat with the ore Ellie's looking for still hasn't arrived. If you're in a hurry, why don't you go get some yourself?<br>
|
||||
<a action="bypass -h Quest Q00035_FindGlitteringJewelry 30879-02.html">"How?"</a>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30879-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30879-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Wharf Manager Felton:<br>
|
||||
If you don't want to wait, you can get the ore by hunting the <font color="LEVEL">Alligators</font> on <font color="LEVEL">Alligator Beach</font>. Ellie's order was for <font color="LEVEL">10 ore</font>. They are ferocious, so be careful!
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30879-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/30879-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Wharf Manager Felton:<br>
|
||||
You can get it from <font color="LEVEL">alligators</font> on <font color="LEVEL">Alligator Beach</font>. Ellie wanted <font color="LEVEL">10 ores</font>. They are ferocious, so be careful!
|
||||
</body></html>
|
||||
184
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/Q00035_FindGlitteringJewelry.java
vendored
Normal file
184
trunk/dist/game/data/scripts/quests/Q00035_FindGlitteringJewelry/Q00035_FindGlitteringJewelry.java
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
/*
|
||||
* 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.Q00035_FindGlitteringJewelry;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Find Glittering Jewelry (35)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00035_FindGlitteringJewelry extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int ELLIE = 30091;
|
||||
private static final int FELTON = 30879;
|
||||
// Monster
|
||||
private static final int ALLIGATOR = 20135;
|
||||
// Items
|
||||
private static final int SILVER_NUGGET = 1873;
|
||||
private static final int ORIHARUKON = 1893;
|
||||
private static final int THONS = 4044;
|
||||
private static final int JEWEL_BOX = 7077;
|
||||
private static final int ROUGH_JEWEL = 7162;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 60;
|
||||
private static final int JEWEL_COUNT = 10;
|
||||
private static final int ORIHARUKON_COUNT = 5;
|
||||
private static final int NUGGET_COUNT = 500;
|
||||
private static final int THONS_COUNT = 150;
|
||||
|
||||
public Q00035_FindGlitteringJewelry()
|
||||
{
|
||||
super(35, Q00035_FindGlitteringJewelry.class.getSimpleName(), "Find Glittering Jewelry");
|
||||
addStartNpc(ELLIE);
|
||||
addTalkId(ELLIE, FELTON);
|
||||
addKillId(ALLIGATOR);
|
||||
registerQuestItems(ROUGH_JEWEL);
|
||||
}
|
||||
|
||||
@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 "30091-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30879-02.html":
|
||||
st.setCond(2, true);
|
||||
break;
|
||||
case "30091-07.html":
|
||||
if (st.getQuestItemsCount(ROUGH_JEWEL) < JEWEL_COUNT)
|
||||
{
|
||||
return "30091-08.html";
|
||||
}
|
||||
st.takeItems(ROUGH_JEWEL, -1);
|
||||
st.setCond(4, true);
|
||||
break;
|
||||
case "30091-11.html":
|
||||
if ((st.getQuestItemsCount(ORIHARUKON) >= ORIHARUKON_COUNT) && (st.getQuestItemsCount(SILVER_NUGGET) >= NUGGET_COUNT) && (st.getQuestItemsCount(THONS) >= THONS_COUNT))
|
||||
{
|
||||
st.takeItems(ORIHARUKON, ORIHARUKON_COUNT);
|
||||
st.takeItems(SILVER_NUGGET, NUGGET_COUNT);
|
||||
st.takeItems(THONS, THONS_COUNT);
|
||||
st.giveItems(JEWEL_BOX, 1);
|
||||
st.exitQuest(false, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30091-12.html";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance member = getRandomPartyMember(player, 2);
|
||||
if (member != null)
|
||||
{
|
||||
final QuestState st = getQuestState(member, false);
|
||||
if (getRandomBoolean())
|
||||
{
|
||||
st.giveItems(ROUGH_JEWEL, 1);
|
||||
if (st.getQuestItemsCount(ROUGH_JEWEL) >= JEWEL_COUNT)
|
||||
{
|
||||
st.setCond(3, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@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 ELLIE:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30091-01.htm" : "30091-02.html";
|
||||
break;
|
||||
case State.STARTED:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "30091-04.html";
|
||||
break;
|
||||
case 3:
|
||||
htmltext = (st.getQuestItemsCount(ROUGH_JEWEL) >= JEWEL_COUNT) ? "30091-06.html" : "30091-05.html";
|
||||
break;
|
||||
case 4:
|
||||
htmltext = ((st.getQuestItemsCount(ORIHARUKON) >= ORIHARUKON_COUNT) && (st.getQuestItemsCount(SILVER_NUGGET) >= NUGGET_COUNT) && (st.getQuestItemsCount(THONS) >= THONS_COUNT)) ? "30091-09.html" : "30091-10.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case FELTON:
|
||||
if (st.isStarted())
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "30879-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "30879-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user