Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10763_TerrifyingChertuba/33966-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Vorbos:<br>
|
||||
My heart has been pounding, and I miss her. I must be in love. You're not mature enough to know love.<br>
|
||||
(This quest may only be undertaken by characters Lv. 34 or above who have completed the quest "Marionette Spirit.")
|
||||
</body></html>
|
@@ -1,6 +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>
|
||||
<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>
|
@@ -1,6 +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>
|
||||
<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>
|
@@ -1,4 +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!
|
||||
<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>
|
@@ -1,4 +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>
|
||||
<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>
|
@@ -1,4 +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!
|
||||
<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-06.html">"My pleasure."</Button>
|
||||
</body></html>
|
@@ -1,4 +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!
|
||||
<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>
|
@@ -1,168 +1,124 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* 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.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
import quests.Q10762_MarionetteSpirit.Q10762_MarionetteSpirit;
|
||||
|
||||
/**
|
||||
* Terrifying Chertuba (10763)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public final 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 int MAGIC_CHAIN_KEY = 39489;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 34;
|
||||
|
||||
public Q10763_TerrifyingChertuba()
|
||||
{
|
||||
super(10763);
|
||||
addStartNpc(VORBOS);
|
||||
addTalkId(VORBOS);
|
||||
addKillId(CHERTUBA_ILLUSION, CHERTUBA_MIRAGE);
|
||||
|
||||
addCondRace(Race.ERTHEIA, "33966-00.htm");
|
||||
addCondMinLevel(MIN_LEVEL, "33966-00.htm");
|
||||
addCondCompletedQuest(Q10762_MarionetteSpirit.class.getSimpleName(), "33966-00.htm");
|
||||
registerQuestItems(MAGIC_CHAIN_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "33966-02.htm":
|
||||
break;
|
||||
case "33966-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "33966-06.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
giveStoryQuestReward(player, 10);
|
||||
addExpAndSp(player, 896996, 215);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
htmltext = null;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = "33966-01.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (qs.isCond(1)) ? "33966-04.html" : "33966-05.html";
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
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))
|
||||
{
|
||||
giveItems(killer, MAGIC_CHAIN_KEY, 1);
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
||||
|
@@ -1,3 +0,0 @@
|
||||
<html><body>Vorbos:<br>
|
||||
You are not Ertheia, this quest is not for you.
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>You don't meet level requirements<br>
|
||||
(Quest available from level 34 and above)
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>Vorbos:<br>
|
||||
(Quest only available to Ertheia characters Lv. 34 or above who have completed the quest "MarionetteSpirit.")
|
||||
</body></html>
|
Reference in New Issue
Block a user