Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
I can't wait for Patrol Members forever, and you'd be bored too. Successful people take matters into their own hands. Since you're here, would you do me a favor?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10402_NowhereToTurn 33865-02.htm">"What do you want me to do?"</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-02.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
Let me cut to the chase. We are now what you might call "isolated." I am a well-known <font color="LEVEL">Giant's Minion</font> myself. If I want to, I can get around here easily.<br>
|
||||
But that guy needs protection so he can finish his research safely.<br>
|
||||
Do you get what I'm driving at?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10402_NowhereToTurn 33865-03.htm">"Don't beat around the bush."</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
It's simple. I'd like you to get rid of the monsters around Forsaken Plains while I protect Novain.<br>
|
||||
Who knows? Maybe the Patrol Members couldn't have made it because of the monsters anyway.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10402_NowhereToTurn 33865-04.htm">Accept the mission</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
Eliminate the <font color="LEVEL">Marsh Stalkers, Marsh Drakes, Fallen Orcs, Ancient Gargoyles, Fallen Orc Archers, Fallen Orc Shamans, Sharp Talon Tigers, and Fallen Orc Captains</font> in the area. <font color="LEVEL">40</font> should do it.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
Eliminate the <font color="LEVEL">Marsh Stalkers, Marsh Drakes, Fallen Orcs, Ancient Gargoyles, Fallen Orc Archers, Fallen Orc Shamans, Sharp Talon Tigers, and Fallen Orc Captains</font> in the area. <font color="LEVEL">40</font> should do it.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
Finished, huh? You didn't happen to see any Patrol Members while you were out there?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10402_NowhereToTurn 33865-07.html">"I did not see any Patrol Members."</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
Huh. I guess they died. Or ran away, the cowards. Well, I can't wait anymore. Let's make some progress together. I mean you, me, and the geographer over there. Go talk to him now. He's got a research mission for you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
What brings you here? This place can be dangerous. Go back.<br>
|
||||
(Ertheia classes cannot perform this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-09.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/33865-09.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Eblune:<br>
|
||||
How'd someone like you get out here? It's dangerous! Go back.<br>
|
||||
(Only characters level 58 or above may undertake this quest.)
|
||||
</body></html>
|
174
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/Q10402_NowhereToTurn.java
vendored
Normal file
174
trunk/dist/game/data/scripts/quests/Q10402_NowhereToTurn/Q10402_NowhereToTurn.java
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* 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.Q10402_NowhereToTurn;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
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.holders.NpcLogListHolder;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Nowhere to Turn (10402)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10402_NowhereToTurn extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int EBLUNE = 33865;
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
20679, // Marsh Stalker
|
||||
20680, // Marsh Drake
|
||||
21017, // Fallen Orc
|
||||
21018, // Ancient Gargoyle
|
||||
21019, // Fallen Orc Archer
|
||||
21020, // Fallen Orc Shaman
|
||||
21021, // Sharp Talon Tiger
|
||||
21022, // Fallen Orc Captain
|
||||
};
|
||||
// Items
|
||||
private static final int EAB = 948; // Scroll: Enchant Armor (B-grade)
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 58;
|
||||
private static final int MAX_LEVEL = 61;
|
||||
|
||||
public Q10402_NowhereToTurn()
|
||||
{
|
||||
super(10402);
|
||||
addStartNpc(EBLUNE);
|
||||
addTalkId(EBLUNE);
|
||||
addKillId(MONSTERS);
|
||||
addCondNotRace(Race.ERTHEIA, "33865-08.html");
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33865-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 "33865-02.htm":
|
||||
case "33865-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33865-04.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33865-07.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EAB, 5);
|
||||
giveStoryQuestReward(player, 34);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 5_482_574, 1_315);
|
||||
}
|
||||
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:
|
||||
{
|
||||
htmltext = "33865-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
htmltext = st.isCond(1) ? "33865-05.html" : "33865-06.html";
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
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))
|
||||
{
|
||||
int killCount = st.getInt("KILLED_COUNT");
|
||||
|
||||
if (killCount < 40)
|
||||
{
|
||||
killCount++;
|
||||
st.set("KILLED_COUNT", killCount);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
sendNpcLogList(killer);
|
||||
}
|
||||
|
||||
if (killCount == 40)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<NpcLogListHolder> getNpcLogList(L2PcInstance activeChar)
|
||||
{
|
||||
final QuestState st = getQuestState(activeChar, false);
|
||||
if ((st != null) && st.isStarted() && st.isCond(1))
|
||||
{
|
||||
final Set<NpcLogListHolder> npcLogList = new HashSet<>(1);
|
||||
npcLogList.add(new NpcLogListHolder(NpcStringId.ELIMINATE_MONSTERS_IN_THE_FORSAKEN_PLAINS, st.getInt("KILLED_COUNT")));
|
||||
return npcLogList;
|
||||
}
|
||||
return super.getNpcLogList(activeChar);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user