Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Fortunately, the <font color="LEVEL">Eye of Argos</font> didn't fall for <font color="LEVEL">Embryo</font>'s trick. That doesn't mean he trusts us, though. We're going to have to prove ourselves to him.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-02.htm">"What do you suggest?"</Button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
I figure if you go to the <font color="LEVEL">Wall of Argos</font>, kill the monsters there, and collect <font color="LEVEL">Evil Eyes of Darkness</font>, that should get his attention.<br>
|
||||
Oh, and one more thing!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-03.htm">"What is it?"</Button>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
I heard the Eye of Argos talking about some kind of <font color="LEVEL">Powerful Dark Malice</font> you can get from monsters--the same ones that have the Evil Eyes of Darkness, it seems.<br>
|
||||
Thing is, the <font color="LEVEL">Evil Eyes of Darkness</font> are easy enough to collect if you just keep at it. The Malice, though, I'm not certain. I'm sure it'll come clear once you've worked on the Eyes for long enough.<br>
|
||||
Tell you what, since the Malice is so tricky, I'll make it worth extra to you. Got it?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-04.htm">"I think I'm with you."</Button>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Oh boy... I lost you, didn't I? Listen closely this time.<br>
|
||||
Kill every monster you see at the <font color="LEVEL">Wall of Argos</font> and bring me <font color="LEVEL">50</font> <font color="LEVEL">Evil Eyes of Darkness</font>, and I'll give you a reward. And there's something extra in it for you for every <font color="LEVEL">Powerful Dark Malice</font> you bring.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Oh boy... I lost you, didn't I? Listen closely this time.<br>
|
||||
Kill every monster you see at the <font color="LEVEL">Wall of Argos</font> and bring me <font color="LEVEL">50</font> <font color="LEVEL">Evil Eyes of Darkness</font>, and I'll give you a reward. And there's something extra in it for you for every <font color="LEVEL">Powerful Dark Malice</font> you bring.
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-06.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-06.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Well, that's certainly all the Evil Eyes of Darkness I was looking for, but I'm afraid I can't give you any extra if you don't bring me enough Powerful Dark Malice.<br>
|
||||
Do you want me to give you what reward I can and call it a day? Or will you wait, and collect some more Powerful Dark Malice? Your call.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-08.html">"I'm pooped, thanks."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-07.html">"I'll go collect some more Powerful Dark Malice."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Keep working at it. The more <font color="LEVEL">Powerful Dark Malice</font> you bring, the better the reward I can give you.
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
How's this strike you for compensation?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-09.html">Receive the reward</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00763_ADauntingTask 33851-07.html">"I'll go collect some more Powerful Dark Malice."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
I've no doubt the Eye of Argos will make more demands of us, so I'll likely have more work for you soon.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-10.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-10.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Sorry, but I need someone a little more, uh, imposing. Come back when you're stronger, ok?<br>
|
||||
(Ertheia are excluded from this quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-11.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/33851-11.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Sorry, but I need someone a little more, uh, imposing. Come back when you're stronger, ok?<br>
|
||||
(Only characters Lv. 70 or above may undertake this quest.)
|
||||
</body></html>
|
||||
212
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/Q00763_ADauntingTask.java
vendored
Normal file
212
trunk/dist/game/data/scripts/quests/Q00763_ADauntingTask/Q00763_ADauntingTask.java
vendored
Normal file
@@ -0,0 +1,212 @@
|
||||
/*
|
||||
* 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.Q00763_ADauntingTask;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
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 com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
/**
|
||||
* A Daunting Task (763)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q00763_ADauntingTask extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int JANITT = 33851;
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
21294, // Canyon Antelope
|
||||
21295, // Canyon Antelope Slave
|
||||
21296, // Canyon Bandersnatch
|
||||
21297, // Canyon Bandersnatch Slave
|
||||
21299, // Valley Buffalo Slave
|
||||
21300, // Eye of Guide
|
||||
21301, // Gaze of Nightmares
|
||||
21302, // Eye of Watchman
|
||||
21303, // Homunculus
|
||||
21304, // Valley Grendel Slave
|
||||
21305, // Eye of Pilgrim
|
||||
21306, // Disciple of Protection
|
||||
21307, // Elder Homunculus
|
||||
21308, // Disciples of Punishment
|
||||
21310, // Disciples of Authority
|
||||
21312, // Eye of Ruler
|
||||
23311, // Valley Buffalo
|
||||
23312, // Valley Grendel
|
||||
23313, // Disciple of Protection
|
||||
};
|
||||
// Items
|
||||
private static final int EYE = 36672; // Evil Eye of Darkness
|
||||
private static final int MALICE = 36673; // Powerful Dark Malice
|
||||
private static final int STEEL_DOOR_BOX = 37392; // Steel Door Guild Reward Box (Mid-grade)
|
||||
// Rewards
|
||||
//@formatter:off
|
||||
// Format: min item count, exp reward, sp reward, item count reward
|
||||
private static final int[][] REWARD =
|
||||
{
|
||||
{900, 163_296_000, 1_632_960, 10}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{800, 146_966_400, 1_469_664, 9}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{700, 130_636_800, 1_306_368, 8}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{600, 114_307_200, 1_143_072, 7}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{500, 97_977_600, 979_776, 6}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{400, 81_648_000, 816_480, 5}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{300, 65_318_400, 653_184, 4}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{200, 48_988_800, 489_888, 3}, //TODO: Custom, SP reward should be decreated since Ertheia
|
||||
{100, 32_659_200, 7_838, 2},
|
||||
{0, 16_329_600, 3_919, 1},
|
||||
};
|
||||
//@formatter:on
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 70;
|
||||
|
||||
public Q00763_ADauntingTask()
|
||||
{
|
||||
super(763);
|
||||
addStartNpc(JANITT);
|
||||
addTalkId(JANITT);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(EYE, MALICE);
|
||||
addCondNotRace(Race.ERTHEIA, "33851-10.html");
|
||||
addCondMinLevel(MIN_LEVEL, "33851-11.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 "33851-02.htm":
|
||||
case "33851-03.htm":
|
||||
case "33851-07.html":
|
||||
case "33851-08.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33851-04.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33851-09.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
final long itemCount = getQuestItemsCount(player, MALICE);
|
||||
|
||||
for (int[] data : REWARD)
|
||||
{
|
||||
if (itemCount >= data[0])
|
||||
{
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, data[1], data[2]);
|
||||
}
|
||||
giveItems(player, STEEL_DOOR_BOX, data[3]);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
|
||||
{
|
||||
final QuestState st = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "33851-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
htmltext = st.isCond(1) ? "33851-05.html" : "33851-06.html";
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (!st.isNowAvailable())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!isSimulated)
|
||||
{
|
||||
st.setState(State.CREATED);
|
||||
}
|
||||
htmltext = "33851-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(killer, false);
|
||||
|
||||
if ((st != null) && (st.isCond(1) || st.isCond(2)) && (getRandom(100) < 15))
|
||||
{
|
||||
if (getQuestItemsCount(killer, EYE) < 50)
|
||||
{
|
||||
giveItems(killer, EYE, 1);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
|
||||
if (getQuestItemsCount(killer, EYE) >= 50)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
showOnScreenMsg(killer, NpcStringId.YOU_CAN_GATHER_MORE_POWERFUL_DARK_MALICE, ExShowScreenMessage.TOP_CENTER, 6000);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
giveItems(killer, MALICE, 1);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user