Merged with released L2J-Unity files.
This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
There have been reports of someone organizing suspicious activities on this island.<br>
|
||||
I need you to dig in, and get me information. Who, what, why.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33858-02.htm">"So, what information do you have so far?"</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
They seem to be working on a some sort of experiment, and it requires a lot of material. They're carrying it back and forth -- try to see if you can sneak in amongst them.<br>
|
||||
Subtle, yes?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33858-03.htm">Yes, sure</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
Good, good. Just be careful. The last thing you want to do is get caught. And if you find any important information, make sure to tell me about it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33858-04.htm">"Sure."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
Go get some work from <font color="LEVEL">Workman Chel</font> over there. Take this Forged Identification Card. If you show it to them, they won't be suspicious.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
Go get some work from <font color="LEVEL">Workman Chel</font>. You have the Forged Identification Card I gave you, right? If you show it to them, they won't be suspicious.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-06.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-06.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
Hey, this place is dangerous! You shouldn't be here.<br>
|
||||
(Only characters Lv. 40 or above may undertake this quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-07.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33858-07.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
What are you doing in a dangerous place like this? You shouldn't be here.<br>
|
||||
(Ertheia classes cannot perform this quest.)
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Where is that fool of a delivery person? Doesn't he know how serious this is? If we don't get that Experiment Material soon...<br>
|
||||
You there! Do you have something for me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33859-02.html">"Fool, is it?"</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Look, I'm sorry about that, but you have no idea the pressure I'm under here. We... it's not important now. All of this could have been for nothing, just because of a lack of people who can make a simple delivery.<br>
|
||||
You weren't followed by anyone, right?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33859-03.html">"What's going on here, anyway?"</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Later. You have it, right? Don't toy with me. If you have the Experiment Material, hand it over.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33859-04.html">"I have it."</Button>
|
||||
</body></html>
|
||||
0
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-04.html
vendored
Normal file
0
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33859-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Workman Chel:<br>
|
||||
Hey you! Yes, you with the face! What are you up to?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33861-02.html">"I'm not 'up to' anything."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Workman Chel:<br>
|
||||
In that case, I hope you've come to work. I could use someone with a strong back. Let's see your identification card, then.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10391_ASuspiciousHelper 33861-03.html">"Here it is."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Workman Chel:<br>
|
||||
Hmm... Yes, everything looks in order. <br>
|
||||
You know I hate having to do that, but protocol's protocol. Got to follow protocol if I want <font color="LEVEL">him</font> to keep paying me. Now, take the <font color="LEVEL">Experiment Material</font> and go about your business.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/33861-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Workman Chel:<br>
|
||||
Didn't I already check your identification, and give you the <font color="LEVEL">Experiment Materials</font>? Now you need to deliver the materials to <font color="LEVEL">him</font>.
|
||||
</body></html>
|
||||
170
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/Q10391_ASuspiciousHelper.java
vendored
Normal file
170
trunk/dist/game/data/scripts/quests/Q10391_ASuspiciousHelper/Q10391_ASuspiciousHelper.java
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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.Q10391_ASuspiciousHelper;
|
||||
|
||||
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.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* A Suspicious Helper (10391)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10391_ASuspiciousHelper extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int ELI = 33858;
|
||||
private static final int CHEL = 33861;
|
||||
private static final int IASON = 33859;
|
||||
// Items
|
||||
private static final int CARD = 36707; // Forged Identification Card
|
||||
private static final int EXP_MATERTIAL = 36708; // Experimental Material
|
||||
private static final int EAC = 952; // Scroll: Enchant Armor (C-grade)
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 40;
|
||||
private static final int MAX_LEVEL = 46;
|
||||
|
||||
public Q10391_ASuspiciousHelper()
|
||||
{
|
||||
super(10391);
|
||||
addStartNpc(ELI);
|
||||
addTalkId(ELI, CHEL, IASON);
|
||||
registerQuestItems(CARD, EXP_MATERTIAL);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33858-06.htm");
|
||||
addCondNotRace(Race.ERTHEIA, "33858-07.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33858-02.htm":
|
||||
case "33858-03.htm":
|
||||
case "33861-02.html":
|
||||
case "33859-02.html":
|
||||
case "33859-03.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33858-04.htm":
|
||||
{
|
||||
giveItems(player, CARD, 1);
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33861-03.html":
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
takeItems(player, CARD, -1);
|
||||
giveItems(player, EXP_MATERTIAL, 1);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33859-04.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveStoryQuestReward(player, 1);
|
||||
giveItems(player, EAC, 1);
|
||||
addExpAndSp(player, 388290, 93);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == ELI)
|
||||
{
|
||||
htmltext = "33858-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case ELI:
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "33858-05.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CHEL:
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "33861-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
htmltext = "33861-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case IASON:
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
htmltext = "33859-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (npc.getId() == ELI)
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user