Addition of quest Tomb Raiders (933).
Contributed by Sero.
This commit is contained in:
parent
d8246268ad
commit
a9a929213a
4
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/32594-03.htm
vendored
Normal file
4
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/32594-03.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Search Team's Teleporter:<br>
|
||||
You have completed all the tasks and passed the trial.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00933_TombRaiders 32594-04.htm">"Yes, sure."</Button>
|
||||
</body></html>
|
3
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/32594-04.htm
vendored
Normal file
3
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/32594-04.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Search Team's Teleporter:<br>
|
||||
Congratulations. You have completed all the tasks and passed the trial.
|
||||
</body></html>
|
4
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/32594-06.htm
vendored
Normal file
4
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/32594-06.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Search Team's Teleporter:<br>
|
||||
Password Decoder Leopard from the Town of Goddard asks you to defeat the monsters who have conquered the Imperial Tomb. You need to defeat 150 monsters in total.<br>
|
||||
To hunt: Tomb Guardian, Tomb Raider, Tomb Watcher, Tomb Soultaker, Tomb Patrol.
|
||||
</body></html>
|
5
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/34552-01.htm
vendored
Normal file
5
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/34552-01.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Search Team's Teleporter:<br>
|
||||
Password Decoder Leopard from the Town of Goddard asks you to defeat the monsters who have conquered the Imperial Tomb. You need to defeat 150 monsters in total.<br>
|
||||
To hunt: Tomb Guardian, Tomb Raider, Tomb Watcher, Tomb Soultaker, Tomb Patrol..<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00933_TombRaiders 34552-02.htm">"Yes, sure."</Button>
|
||||
</body></html>
|
4
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/34552-02.htm
vendored
Normal file
4
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/34552-02.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Search Team's Teleporter:<br>
|
||||
Password Decoder Leopard from the Town of Goddard asks you to defeat the monsters who have conquered the Imperial Tomb. You need to defeat 150 monsters in total.<br>
|
||||
To hunt: Tomb Guardian, Tomb Raider, Tomb Watcher, Tomb Soultaker, Tomb Patrol..
|
||||
</body></html>
|
163
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/Q00933_TombRaiders.java
vendored
Normal file
163
L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/quests/Q00933_TombRaiders/Q00933_TombRaiders.java
vendored
Normal file
@ -0,0 +1,163 @@
|
||||
/*
|
||||
* 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.Q00933_TombRaiders;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.QuestSound;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.holders.NpcLogListHolder;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
import org.l2jmobius.gameserver.network.NpcStringId;
|
||||
|
||||
/**
|
||||
* Tomb Raiders (933)
|
||||
* @URL https://l2wiki.com/Tomb_Raiders
|
||||
* @author Sero
|
||||
*/
|
||||
public class Q00933_TombRaiders extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int SEARCH_TEAM_TELEPORTER = 34552;
|
||||
private static final int LEOPARD = 32594;
|
||||
// Monsters
|
||||
private static final int TOMB_GUARDIAN = 24580;
|
||||
private static final int TOMB_RAIDER = 24581;
|
||||
private static final int TOMB_WATCHER = 24584;
|
||||
private static final int TOMB_SOULTAKER = 24583;
|
||||
private static final int TOMB_PATROL = 24582;
|
||||
// Item
|
||||
private static final int BENUSTA_REWARD_BOX = 81151;
|
||||
// Misc
|
||||
private static final String KILL_COUNT_VAR = "KillCount";
|
||||
|
||||
public Q00933_TombRaiders()
|
||||
{
|
||||
super(933);
|
||||
addStartNpc(SEARCH_TEAM_TELEPORTER);
|
||||
addTalkId(SEARCH_TEAM_TELEPORTER, LEOPARD);
|
||||
addKillId(TOMB_GUARDIAN, TOMB_RAIDER, TOMB_WATCHER, TOMB_SOULTAKER, TOMB_PATROL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
switch (event)
|
||||
{
|
||||
case "34552-02.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
|
||||
break;
|
||||
}
|
||||
case "32594-04.htm":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
addExpAndSp(player, 20700253956096L, 1450359376);
|
||||
giveItems(player, BENUSTA_REWARD_BOX, 1);
|
||||
qs.exitQuest(true, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "34552-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "32594-03.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32594-06.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && qs.isCond(1))
|
||||
{
|
||||
final int killCount = qs.getInt(KILL_COUNT_VAR);
|
||||
if (killCount < 150)
|
||||
{
|
||||
qs.set(KILL_COUNT_VAR, killCount + 1);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
sendNpcLogList(killer);
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setCond(2);
|
||||
qs.unset(KILL_COUNT_VAR);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// public String onEnterZone(Creature creature, ZoneType zone)
|
||||
|
||||
@Override
|
||||
public Set<NpcLogListHolder> getNpcLogList(PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && qs.isCond(1))
|
||||
{
|
||||
final Set<NpcLogListHolder> holder = new HashSet<>();
|
||||
holder.add(new NpcLogListHolder(NpcStringId.DEFEAT_MONSTERS_IN_THE_IMPERIAL_TOMB.getId(), true, qs.getInt(KILL_COUNT_VAR)));
|
||||
return holder;
|
||||
}
|
||||
return super.getNpcLogList(player);
|
||||
}
|
||||
}
|
@ -26,6 +26,7 @@ import quests.Q00726_LightWithinTheDarkness.Q00726_LightWithinTheDarkness;
|
||||
import quests.Q00727_HopeWithinTheDarkness.Q00727_HopeWithinTheDarkness;
|
||||
import quests.Q00833_DevilsTreasureTauti.Q00833_DevilsTreasureTauti;
|
||||
import quests.Q00835_PitiableMelisa.Q00835_PitiableMelisa;
|
||||
import quests.Q00933_TombRaiders.Q00933_TombRaiders;
|
||||
import quests.Q00937_ToReviveTheFishingGuild.Q00937_ToReviveTheFishingGuild;
|
||||
import quests.Q10423_EmbryoStrongholdRaid.Q10423_EmbryoStrongholdRaid;
|
||||
import quests.Q10454_FinalEmbryoApostle.Q10454_FinalEmbryoApostle;
|
||||
@ -95,6 +96,7 @@ public class QuestMasterHandler
|
||||
Q00838_RequestFromTheMotherTreeGuardians.class, // TODO: Not done.
|
||||
Q00839_RequestFromTheUnworldlyVisitors.class, // TODO: Not done.
|
||||
Q00840_RequestFromTheKingdomsRoyalGuard.class, // TODO: Not done.
|
||||
Q00933_TombRaiders.class,
|
||||
Q00937_ToReviveTheFishingGuild.class,
|
||||
Q01900_StormIsleSecretSpot.class, // TODO: Not done.
|
||||
Q01901_StormIsleFurtiveDeal.class, // TODO: Not done.
|
||||
|
Loading…
Reference in New Issue
Block a user