Quest Tomb Raiders (492).
Contributed by gigilo1968.
This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
The Succubus monsters are collecting relics in the Imperial Tomb at Shilen's order. I don't know how the relic's power will help Shilen, but we can't just watch
|
||||||
|
this happen. Adventuren, please take back the relics the Succubus monsters have stolen<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00492_TombRaiders 32140-02.htm">"I will."</Button>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
Thank you. Noe You must go to the <font color="LEVEL">Imperial Tomb</font>, kill the monsters, and find the <font color="LEVEL">Relics of the Empire</font><br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00492_TombRaiders 32140-03.htm">"Sure. See you soon."</Button>
|
||||||
|
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-03.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-03.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
<font color="LEVEL">Relics of the Empire</font> can be obtained from killing <font color="LEVEL">Apparition Destroyers</font>, <font color="LEVEL">Apparition Assassins</font>,
|
||||||
|
<font color="LEVEL">Apparition Snipers</font> and <font color="LEVEL">Apparition Wizard</font><br>
|
||||||
|
Bring me <font color="LEVEL">50 Relics of the Empire</font>.<br>
|
||||||
|
Oh! while you are on this mission, you can get <font color="LEVEL">Entrance Passes to the Sepulcher</font>. If you want to go to the <font color="LEVEL">Four Sepulchers</font> leter, keep them well.<br>
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
Adventurer, you have done well. It was a dangerous mission, but you finished it faithfully. However, Shilen's greed has not stopped yet.
|
||||||
|
I want you to keep helping me, but you should go and rest first.<br>
|
||||||
|
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/32140-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
Thank you. Noe You must go to the <font color="LEVEL">Imperial Tomb</font>, kill the monsters, and find the <font color="LEVEL">Relics of the Empire</font><br>
|
||||||
|
</body></html>
|
155
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/Q00492_TombRaiders.java
vendored
Normal file
155
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/Q00492_TombRaiders.java
vendored
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
/*
|
||||||
|
* 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.Q00492_TombRaiders;
|
||||||
|
|
||||||
|
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||||
|
import com.l2jmobius.gameserver.enums.QuestType;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tomb Raiders (492)
|
||||||
|
* @URL https://l2wiki.com/Tomb_Raiders
|
||||||
|
* @author Gigi
|
||||||
|
*/
|
||||||
|
public class Q00492_TombRaiders extends Quest
|
||||||
|
{
|
||||||
|
// NPCs
|
||||||
|
private static final int ZENYA = 32140;
|
||||||
|
// Items
|
||||||
|
private static final int RELICS_OF_THE_EMPIRE = 34769;
|
||||||
|
// Reward
|
||||||
|
private static final int EXP_REWARD = 300500;
|
||||||
|
private static final int SP_REWARD = 75;
|
||||||
|
// Misc
|
||||||
|
private static final int MIN_LEVEL = 80;
|
||||||
|
// Monsters
|
||||||
|
private static final int[] MONSTERS =
|
||||||
|
{
|
||||||
|
23193, // Apparition Destroyer (83)
|
||||||
|
23194, // Apparition Assassin (83)
|
||||||
|
23195, // Apparition Sniper (83)
|
||||||
|
23196 // Apparition Wizard (83)
|
||||||
|
};
|
||||||
|
|
||||||
|
public Q00492_TombRaiders()
|
||||||
|
{
|
||||||
|
super(492, Q00492_TombRaiders.class.getSimpleName(), "Tomb Raiders");
|
||||||
|
addStartNpc(ZENYA);
|
||||||
|
addTalkId(ZENYA);
|
||||||
|
registerQuestItems(RELICS_OF_THE_EMPIRE);
|
||||||
|
addKillId(MONSTERS);
|
||||||
|
addCondMinLevel(MIN_LEVEL, "noLevel.html");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||||
|
{
|
||||||
|
final QuestState qs = getQuestState(player, false);
|
||||||
|
if (qs == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
String htmltext = null;
|
||||||
|
switch (event)
|
||||||
|
{
|
||||||
|
case "32140-02.htm":
|
||||||
|
{
|
||||||
|
htmltext = event;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "32140-03.htm":
|
||||||
|
{
|
||||||
|
qs.startQuest();
|
||||||
|
htmltext = event;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||||
|
{
|
||||||
|
final QuestState qs = getQuestState(player, true);
|
||||||
|
String htmltext = getNoQuestMsg(player);
|
||||||
|
|
||||||
|
if (qs.isCompleted())
|
||||||
|
{
|
||||||
|
htmltext = getAlreadyCompletedMsg(player);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((npc.getId() == ZENYA) && !player.isSubClassActive() && !player.isDualClassActive() && (player.getClassId().level() == 4))
|
||||||
|
{
|
||||||
|
return "noClass.html";
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (npc.getId())
|
||||||
|
{
|
||||||
|
case ZENYA:
|
||||||
|
{
|
||||||
|
if (qs.isCreated())
|
||||||
|
{
|
||||||
|
htmltext = "32140-01.htm";
|
||||||
|
}
|
||||||
|
else if (qs.isStarted())
|
||||||
|
{
|
||||||
|
switch (qs.getCond())
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
|
htmltext = "32140-05.html";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 2:
|
||||||
|
{
|
||||||
|
if (qs.isCond(2) && (getQuestItemsCount(player, RELICS_OF_THE_EMPIRE) >= 50))
|
||||||
|
{
|
||||||
|
takeItems(player, RELICS_OF_THE_EMPIRE, 50);
|
||||||
|
addExpAndSp(player, EXP_REWARD * player.getLevel(), SP_REWARD * player.getLevel());
|
||||||
|
playSound(player, QuestSound.ITEMSOUND_QUEST_FINISH);
|
||||||
|
qs.exitQuest(QuestType.DAILY, true);
|
||||||
|
htmltext = "32140-04.html";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||||
|
{
|
||||||
|
final QuestState qs = getQuestState(killer, false);
|
||||||
|
|
||||||
|
if ((qs != null) && qs.isCond(1))
|
||||||
|
{
|
||||||
|
if (giveItemRandomly(killer, npc, RELICS_OF_THE_EMPIRE, 1, 50, 0.30, true))
|
||||||
|
{
|
||||||
|
qs.setCond(2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.onKill(npc, killer, isSummon);
|
||||||
|
}
|
||||||
|
}
|
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noClass.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noClass.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
I feel your strength Germunkusa. Now we are able to deal with all problems. And your other necessary assistance.<br>
|
||||||
|
(This is a task only for the characters, the last third change of profession, and not degenerate.)
|
||||||
|
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noLevel.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00492_TombRaiders/noLevel.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Vice Hierarch Zenya:<br>
|
||||||
|
It is too difficult a task for you. Do not worry, come when will become stronger.<br>
|
||||||
|
(This quest is available after reaching level 80.)
|
||||||
|
</body></html>
|
@@ -132,6 +132,7 @@ import quests.Q00471_BreakingThroughTheEmeraldSquare.Q00471_BreakingThroughTheEm
|
|||||||
import quests.Q00472_ChallengeSteamCorridor.Q00472_ChallengeSteamCorridor;
|
import quests.Q00472_ChallengeSteamCorridor.Q00472_ChallengeSteamCorridor;
|
||||||
import quests.Q00473_InTheCoralGarden.Q00473_InTheCoralGarden;
|
import quests.Q00473_InTheCoralGarden.Q00473_InTheCoralGarden;
|
||||||
import quests.Q00490_DutyOfTheSurvivor.Q00490_DutyOfTheSurvivor;
|
import quests.Q00490_DutyOfTheSurvivor.Q00490_DutyOfTheSurvivor;
|
||||||
|
import quests.Q00492_TombRaiders.Q00492_TombRaiders;
|
||||||
import quests.Q00494_IncarnationOfGreedZellakaGroup.Q00494_IncarnationOfGreedZellakaGroup;
|
import quests.Q00494_IncarnationOfGreedZellakaGroup.Q00494_IncarnationOfGreedZellakaGroup;
|
||||||
import quests.Q00495_IncarnationOfJealousyPellineGroup.Q00495_IncarnationOfJealousyPellineGroup;
|
import quests.Q00495_IncarnationOfJealousyPellineGroup.Q00495_IncarnationOfJealousyPellineGroup;
|
||||||
import quests.Q00496_IncarnationOfGluttonyKaliosGroup.Q00496_IncarnationOfGluttonyKaliosGroup;
|
import quests.Q00496_IncarnationOfGluttonyKaliosGroup.Q00496_IncarnationOfGluttonyKaliosGroup;
|
||||||
@@ -413,6 +414,7 @@ final class QuestMasterHandler
|
|||||||
Q00472_ChallengeSteamCorridor.class,
|
Q00472_ChallengeSteamCorridor.class,
|
||||||
Q00473_InTheCoralGarden.class,
|
Q00473_InTheCoralGarden.class,
|
||||||
Q00490_DutyOfTheSurvivor.class,
|
Q00490_DutyOfTheSurvivor.class,
|
||||||
|
Q00492_TombRaiders.class,
|
||||||
Q00494_IncarnationOfGreedZellakaGroup.class,
|
Q00494_IncarnationOfGreedZellakaGroup.class,
|
||||||
Q00495_IncarnationOfJealousyPellineGroup.class,
|
Q00495_IncarnationOfJealousyPellineGroup.class,
|
||||||
Q00496_IncarnationOfGluttonyKaliosGroup.class,
|
Q00496_IncarnationOfGluttonyKaliosGroup.class,
|
||||||
|
Reference in New Issue
Block a user