Quest Terrifying Chertuba (10763).
Contributed by Stayway.
This commit is contained in:
parent
0c21ff66db
commit
ba9862faf5
6
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-01.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>A Smitten Orc:<br>
|
||||
You're here! Thank you for helping me every time. I found out how to find the second key!<br>
|
||||
The idol of the orcs, Chertuba, has ordered the capture of spirits.<br>
|
||||
It is also Chertuba who made magical shackles. Chertuba gathered elders and shamans to make magical shackles and two keys.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10763_TerrifyingChertuba 33966-02.htm">"Go on."</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-02.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-02.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Vorbos:<br>
|
||||
Chertuba has second key. In order to make it even more difficult to find, he gave it to his Incarnation.<br>
|
||||
As you kill the Orcs, you will see Chertuba Mirage or Chertuba Illusion. As you kill Chertuba Mirage or Chertuba Illusion, you will be able to get your hands on second key.<br>
|
||||
They can be quite strong, but help me!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10763_TerrifyingChertuba 33966-03.htm">"Yes, yes."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-03.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>A Smitten Orc:<br>
|
||||
Thank you! Once again, you will see <font color="LEVEL">Chertuba Mirage</font> or <font color="LEVEL">Chertuba Illusion</font> as you kill Orcs.<br>
|
||||
Get <font color="LEVEL">Magic Chain Key 2</font> from them for me!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-04.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Vorbos:<br>
|
||||
My hero! You're back. And you have second key with you. I can finally save my love!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10763_TerrifyingChertuba 33966-05.html">"My pleasure."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-05.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>A Smitten Orc:<br>
|
||||
I can't wait to see my love fly freely in sky. She looks so sad being locked up. I may need your help to rescue spirits.<br>
|
||||
I will call when I'm ready!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-06.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Vorbos:<br>
|
||||
You will see <font color="LEVEL">Chertuba Mirages</font> or <font color="LEVEL">Chertuba Illusions</font> as you kill Orcs.<br>
|
||||
Get <font color="LEVEL">Magic Chain Key 2</font> from them for me!
|
||||
</body></html>
|
168
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/Q10763_TerrifyingChertuba.java
vendored
Normal file
168
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/Q10763_TerrifyingChertuba.java
vendored
Normal file
@ -0,0 +1,168 @@
|
||||
/*
|
||||
* 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.Q10763_TerrifyingChertuba;
|
||||
|
||||
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.ItemHolder;
|
||||
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.ExQuestNpcLogList;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import quests.Q10762_MarionetteSpirit.Q10762_MarionetteSpirit;
|
||||
|
||||
/**
|
||||
* Terrifying Chertuba (10763)
|
||||
* @author Stayway
|
||||
*/
|
||||
public class Q10763_TerrifyingChertuba extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int VORBOS = 33966;
|
||||
// Monsters
|
||||
private static final int CHERTUBA_MIRAGE = 23421;
|
||||
private static final int CHERTUBA_ILLUSION = 23422;
|
||||
// Items
|
||||
private static final ItemHolder GUILD_COIN = new ItemHolder(37045, 5);
|
||||
private static final int MAGIC_CHAIN_KEY_2 = 39489;
|
||||
// Rewards
|
||||
private static final int EXP_REWARD = 896996;
|
||||
private static final int SP_REWARD = 215;
|
||||
// Other
|
||||
private static final int MIN_LEVEL = 34;
|
||||
|
||||
public Q10763_TerrifyingChertuba()
|
||||
{
|
||||
super(10763, Q10763_TerrifyingChertuba.class.getSimpleName(), "Terrifying Chertuba");
|
||||
addStartNpc(VORBOS);
|
||||
addTalkId(VORBOS);
|
||||
addKillId(CHERTUBA_MIRAGE, CHERTUBA_ILLUSION);
|
||||
registerQuestItems(MAGIC_CHAIN_KEY_2);
|
||||
addCondRace(Race.ERTHEIA, "noErtheia.html");
|
||||
addCondMinLevel(MIN_LEVEL, "no_level.htm");
|
||||
addCondCompletedQuest(Q10762_MarionetteSpirit.class.getSimpleName(), "restriction.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 "33966-02.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33966-03.htm": // start the quest
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.set(Integer.toString(CHERTUBA_ILLUSION), 0);
|
||||
qs.set(Integer.toString(CHERTUBA_MIRAGE), 0);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33966-05.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
giveItems(player, GUILD_COIN);
|
||||
addExpAndSp(player, EXP_REWARD, SP_REWARD);
|
||||
qs.unset(Integer.toString(CHERTUBA_ILLUSION));
|
||||
qs.unset(Integer.toString(CHERTUBA_MIRAGE));
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (player.getRace() != Race.ERTHEIA)
|
||||
{
|
||||
htmltext = "noErtheia.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "33966-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33966-06.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33966-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
|
||||
if ((qs != null) && qs.isStarted() && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
|
||||
{
|
||||
giveItemRandomly(killer, npc, MAGIC_CHAIN_KEY_2, 1, 1, 1.0, true);
|
||||
int kills = qs.getInt(Integer.toString(CHERTUBA_ILLUSION));
|
||||
kills++;
|
||||
qs.set(Integer.toString(CHERTUBA_ILLUSION), kills);
|
||||
|
||||
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
|
||||
log.addNpcString(NpcStringId.CHERTUBA_S_ILLUSION_OR_CHERTUBA_S_MIRAGE, kills);
|
||||
killer.sendPacket(log);
|
||||
|
||||
if (kills >= 1)
|
||||
{
|
||||
qs.setCond(2);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
3
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/noErtheia.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/noErtheia.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Vorbos:<br>
|
||||
You are not Ertheia, this quest is not for you.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/no_level.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/no_level.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>You don't meet level requirements<br>
|
||||
(Quest available from level 34 and above)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/restriction.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/restriction.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Vorbos:<br>
|
||||
(Quest only available to Ertheia characters Lv. 34 or above who have completed the quest "MarionetteSpirit.")
|
||||
</body></html>
|
@ -259,6 +259,7 @@ import quests.Q10758_TheOathOfTheWind.Q10758_TheOathOfTheWind;
|
||||
import quests.Q10760_LettersFromTheQueen_OrcBarracs.Q10760_LettersFromTheQueen_OrcBarracs;
|
||||
import quests.Q10761_AnOrcInLove.Q10761_AnOrcInLove;
|
||||
import quests.Q10762_MarionetteSpirit.Q10762_MarionetteSpirit;
|
||||
import quests.Q10763_TerrifyingChertuba.Q10763_TerrifyingChertuba;
|
||||
|
||||
/**
|
||||
* @author NosBit
|
||||
@ -508,7 +509,8 @@ public class QuestMasterHandler
|
||||
Q10758_TheOathOfTheWind.class,
|
||||
Q10760_LettersFromTheQueen_OrcBarracs.class,
|
||||
Q10761_AnOrcInLove.class,
|
||||
Q10762_MarionetteSpirit.class
|
||||
Q10762_MarionetteSpirit.class,
|
||||
Q10763_TerrifyingChertuba.class
|
||||
};
|
||||
|
||||
public static void main(String[] args)
|
||||
|
Loading…
Reference in New Issue
Block a user