Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
Glad to see you in one piece! Did you find out the mastermind?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33858-02.html">"It's Iason Heine."</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
I can't say I'm surprised, but still -- wow. He's the richest man in Innadril! Why would he go around behind the backs of Aden's lords to plan all this?<br>
|
||||
He must have some ulterior motives. Did you find anything suspicious at all?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33858-03.html">"There were some Suspicious Fragments..."</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
Alligators and Suspicious Fragments, huh? Well, good call on leaving them there. It would have raised suspicion if you hadn't. I'll try to mobilize the Giant's Minions get our hands on the Suspicious Fragments.<br>
|
||||
Your work here is done. Thank you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33858-04.html">"Piece of cake."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33858-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Baron's Personal Escort Eli:<br>
|
||||
You have done your part, and I thank you for it. I'll report this to Kekropus and the Giant's Minions.<br>
|
||||
Farewell.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Say, if you're looking to make some good coin, I've got something a lot better than making deliveries.<br>
|
||||
This is the real deal, no funny business.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33859-02.htm">"What deal is that?"</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Do you ever wonder what happens to the "samples" you collect for people? Experimental Materials is the normal euphemism. "I need you to collect some materials -- don't worry about what they're for."<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33859-03.htm">"Go on."</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
My current headache involves something like that. Alligators on this island were exposed to something that should never have got out of our control.<br>
|
||||
If we don't do anything about them, not only will people on the mainland find out about the experiment, but they might escape our control and start breeding with normal animals. Can I count on you for a little "damage control?"<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33859-04.htm">"Sounds good to me."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Your targets are the <font color="LEVEL">Swamp Tribe, Swamp Alligators and Swamp Warriors</font>. And this may sound crazy, but bring me <font color="LEVEL">30 Suspicious Fragments</font> as soon as you can. I may be able to reverse the effects with them.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Kill <font color="LEVEL">Swamp Tribe, Swamp Alligators and Swamp Warriors</font>, and return with <font color="LEVEL">30 Suspicious Fragments</font>.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Good work. You weren't followed by anybody, right? Wouldn't want to cause a panic.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10392_FailureAndItsConsequences 33859-07.html">"No more than usual."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
Well, okay then. As long as we keep this quiet, everyone will be happy. And well paid, of course. I talked to Workman Chel about you, and he's got your reward.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-08.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-08.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
What is it? No, don't answer -- we shouldn't be seen together. Go see Workman Chel about your reward.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-09.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-09.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
I see a lot of people wandering around that just have no business being here. If it all possible, I like to help out the few that actually have talent.<br>
|
||||
But if you're not interested, head back to the village. I don't have time for people afraid of a little risk.<br>
|
||||
(This quest is only available for characters of level 40 or higher who have completed the "Suspicious Helper" quest.)
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-10.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10392_FailureAndItsConsequences/33859-10.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Iason Heine:<br>
|
||||
I see a lot of people wandering around that just have no business being here. If it's at all possible, I like to help out the few that actually have talent.<br>
|
||||
But if you're not interested, head back to the village. I don't have time for people afraid of a little risk.<br>
|
||||
(Ertheia classes cannot perform this quest.)
|
||||
</body></html>
|
||||
@@ -0,0 +1,187 @@
|
||||
/*
|
||||
* 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.Q10392_FailureAndItsConsequences;
|
||||
|
||||
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;
|
||||
|
||||
import quests.Q10391_ASuspiciousHelper.Q10391_ASuspiciousHelper;
|
||||
|
||||
/**
|
||||
* Failure and its Consequences (10392)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10392_FailureAndItsConsequences extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int IASON = 33859;
|
||||
private static final int ELI = 33858;
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
20991, // Swamp Tribe
|
||||
20992, // Swamp Alligator
|
||||
20993, // Swamp Warrior
|
||||
};
|
||||
// Items
|
||||
private static final int FRAGMENT = 36709; // Suspicious Fragment
|
||||
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 Q10392_FailureAndItsConsequences()
|
||||
{
|
||||
super(10392);
|
||||
addStartNpc(IASON);
|
||||
addTalkId(IASON, ELI);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(FRAGMENT);
|
||||
addCondNotRace(Race.ERTHEIA, "33859-10.html");
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33859-09.htm");
|
||||
addCondCompletedQuest(Q10391_ASuspiciousHelper.class.getSimpleName(), "33859-09.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 "33859-02.htm":
|
||||
case "33859-03.htm":
|
||||
case "33858-02.html":
|
||||
case "33858-03.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33859-04.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33859-07.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.setCond(3, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33858-04.html":
|
||||
{
|
||||
if (st.isCond(3))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EAC, 5);
|
||||
giveStoryQuestReward(player, 17);
|
||||
addExpAndSp(player, 2329740, 559);
|
||||
htmltext = event;
|
||||
}
|
||||
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() == IASON)
|
||||
{
|
||||
htmltext = "33859-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (npc.getId() == IASON)
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "33859-05.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "33859-06.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "33859-08.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (npc.getId() == ELI)
|
||||
{
|
||||
if (st.isCond(3))
|
||||
{
|
||||
htmltext = "33858-01.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (npc.getId() == IASON)
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(killer, false);
|
||||
|
||||
if ((st != null) && st.isStarted() && st.isCond(1))
|
||||
{
|
||||
if (giveItemRandomly(killer, npc, FRAGMENT, 1, 4, 30, 0.8, true))
|
||||
{
|
||||
st.setCond(2);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user