Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
We Orc Trackers have chased <font color="LEVEL">Shilen</font> and her followers since they ruined the world. When we noticed suspicious travelers, of course we followed them! We soon realized that many were migrating to the <font color="LEVEL">Swamp of Screams</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10409_ASuspiciousVagabondInTheSwamp 33847-02.htm">Continue to listen</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
We staked it out. Until we saw a lone figure. We thought the <font color="LEVEL">Suspicious Vagabond</font> was alone, you see. But his comrades hid in the <font color="LEVEL">Swamp of Screams</font>. They slaughtered us. And if it hadn't been for the <font color="LEVEL">Golden Ram Army</font> here, I wouldn't have made it either... Wounded as I am. Will you find that vile vagabond for me? Please.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10409_ASuspiciousVagabondInTheSwamp 33847-03.htm">How can I find the Suspicious Vagabond?</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I have a secret. Not up my sleeve! On my dagger! Here is the <font color="LEVEL">Suspicious Vagabond</font>'s blood. We can use it, and a spell, to locate him on your map.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10409_ASuspiciousVagabondInTheSwamp 33847-04.htm">Oh, happy dagger</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
Looks like he's still in the <font color="LEVEL">Swamp of Screams</font>. I've marked <font color="LEVEL">the fatally injured Suspicious Vagabond's location on your map.</font> So you've no excuses. Go!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
<font color="LEVEL">I marked the fatally injured Suspicious Vagabond's location on your map.</font> Find him before he moves!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
Did you find the <font color="LEVEL">Suspicious Vagabond</font>? No! He can't be dead! I need to find out who he works for.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10409_ASuspiciousVagabondInTheSwamp 33847-07.html">I think I know things about his masters</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
<font color="LEVEL">Embryo</font>, eh? The ones we chased from the <font color="LEVEL">Talking Island</font> to <font color="LEVEL">Wastelands</font> are related to the <font color="LEVEL">Suspicious Vagabond</font> as well? That's news to me! <br>
|
||||
And his dying words... that the <font color="LEVEL">Seal of Punishment</font> will break and a new goddess will capture the heart of the world. He must have meant <font color="LEVEL">Shilen</font>. You've done well to discover this intrigue.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-08.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-08.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I can't trust you.<br>
|
||||
(This quest may only be undertaken by a Fighter class character who is level 65 or above.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-09.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33847-09.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I don't trust you.<br>
|
||||
(Ertheia classes cannot perform this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33848-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10409_ASuspiciousVagabondInTheSwamp/33848-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fatally Injured Suspicious Vagabond:<br>
|
||||
Ah... ah... who... who are you? That cursed <font color="LEVEL">Orc Tracker</font> sent you? After he dealt that fatal blow, I knew I was finished. Ah...<br>
|
||||
But... this changes nothing. The <font color="LEVEL">Seal of Punishment</font> will break and <font color="LEVEL">darkness will fall upon the entire world. A new goddess and a new world will be with us</font>. Heh heh heh...
|
||||
</body></html>
|
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* 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.Q10409_ASuspiciousVagabondInTheSwamp;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||
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 Vagabond in the Swamp (10409)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10409_ASuspiciousVagabondInTheSwamp extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DOKARA = 33847;
|
||||
private static final int VAGABOND = 33848; // Critically-injured Suspicious Vagabond
|
||||
// Items
|
||||
private static final int EAA = 730; // Scroll: Enchant Armor (A-grade)
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 65;
|
||||
private static final int MAX_LEVEL = 70;
|
||||
|
||||
public Q10409_ASuspiciousVagabondInTheSwamp()
|
||||
{
|
||||
super(10409);
|
||||
addStartNpc(DOKARA);
|
||||
addTalkId(DOKARA, VAGABOND);
|
||||
addCondNotRace(Race.ERTHEIA, "33847-09.html");
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33847-08.htm");
|
||||
addCondInCategory(CategoryType.FIGHTER_GROUP, "33847-08.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 "33847-02.htm":
|
||||
case "33847-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33847-04.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33847-07.html":
|
||||
{
|
||||
if (st.isCond(2))
|
||||
{
|
||||
st.exitQuest(false, true);
|
||||
giveItems(player, EAA, 3);
|
||||
giveStoryQuestReward(player, 3);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 942_690, 226);
|
||||
}
|
||||
htmltext = event;
|
||||
}
|
||||
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:
|
||||
{
|
||||
if (npc.getId() == DOKARA)
|
||||
{
|
||||
htmltext = "33847-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (npc.getId() == DOKARA)
|
||||
{
|
||||
htmltext = st.isCond(1) ? "33847-05.html" : "33847-06.html";
|
||||
}
|
||||
else if ((npc.getId() == VAGABOND) && st.isCond(1))
|
||||
{
|
||||
if (!isSimulated)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
htmltext = "33848-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (npc.getId() == DOKARA)
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user