This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
The fallen monster from Angel Search? Your words are nonsense, my child; I haven't the faintest notion of what you are talking about.<br>
|
||||
Oh gracious Einhasad, have mercy the child before me, their mind has clearly come unhinged!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
The fallen monster from Angel Search? I haven't the faintest notion of what you are talking about, my child.<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30289-03.html">Tell him the password.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-03.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-03.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
Ah, so you are the one sent by Shadow Fox....<br>
|
||||
Rumors have spread like wildfire, you know. From what we have learned, a fallen angel rebelled against Einhasad, and sought to displace her god. Fortunately, she was defeated, but unfortunately... not killed.<br>
|
||||
Now this fallen angel spends her days spreading heresy about Einhasad and our Temple in our very lands! Her blasphemies must must be stopped before more of Einhasad's loyal flock are led astray.<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30289-04.html">"Do we know exactly where she is?"</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
We have an idea, yes. Rather, we've been able to find someone who knows where she is....<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30289-05.html">"Who?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
We intercepted a messaged sent by Elder Casian, a lifetime supporter of the <font color="LEVEL">Revolutionaries of Dusk</font>. It appears he is attempting to render assistance to the wounded fallen angel and that... that means he must know where the creature can be found.<br>
|
||||
<font color="LEVEL">Elder Casian</font> is rumored to be hiding somewhere in the wilderness. I want you to go there and find him, and get him to tell you where this fallen angel is so you can rid our world of her pox.<br>
|
||||
Prepare yourself both physically and mentally--although wounded, she will still be a mighty and formidable adversary. Bring me her spilt <font color="LEVEL">blood</font> as proof of your success.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
<font color="LEVEL">Elder Casian</font> is rumored to be hiding somewhere in the wilderness. I want you to go there and find him, and get him to tell you where this fallen angel is so you can rid our world of her pox.<br>
|
||||
Prepare yourself both physically and mentally--although wounded, she will still be a mighty and formidable adversary. Bring me her spilt <font color="LEVEL">blood</font> as proof of your success.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30289-07.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>High Priest Raymond:<br>
|
||||
Well done! Well done indeed!<br>
|
||||
You have served Einhasad impeccably... silencing the blasphemous tongue of this sad, fallen creature was no easy task but still you handled your duties to perfection.<br>
|
||||
That fallen angel--no, devil is a better word--would undoubtedly have led many astray if had she not been stopped. You have done a great service for both our order and the people of this land... bravo!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
Fallen angel? I don't know what you're talking about...<br>
|
||||
I'm very busy researching how to transform this barren desert into luscious fields of green.<br>
|
||||
Unless you know how to help me with that, kindly do not waste my time...
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-02.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-02.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
Fallen angel? I don't know what you're talking about...<br>
|
||||
I'm very busy researching how to transform this barren desert into luscious fields of green.<br>
|
||||
Unless you know how to help me with that, kindly do not waste my time...<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30612-03.html">"I already know everything. I know that you're planning to help the wounded fallen angel..."</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-03.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-03.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
Fallen angel?<br>
|
||||
...<br>
|
||||
You're from the Temple, aren't you?<br>
|
||||
I have nothing to say to you hyprocrites and friends of corruption!<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30612-04.html">"You have been deceived by the Revolutionaries of Dusk. The fallen angel is dangerous."</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-04.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-04.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
Dangerous?<br>
|
||||
Of course...<br>
|
||||
I cannot hear the angel's message because I do not know where the fallen angel is, only that it is severely wounded...<br>
|
||||
But I do know that the angel will tell only the truth. Why are the Temple and its aristrocratic lackeys afraid of the truth?<br>
|
||||
Or perhaps the truth itself is dangerous to you...<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30612-05.html">"I see that you've been seduced by the angel's lies... Very well, then. I don't have much time. I need to know where the angel is -- even if I have to hurt you to find out..."</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-05.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-05.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
Are you threatening me?<br>
|
||||
I have nothing to say to you...<br>
|
||||
You have no legal authority here.<br>
|
||||
You do not represent justice!<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30612-06.html">"Justice? What do you know of justice? Idealistic fool..."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-06.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-06.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
Justice begins by valuing individuals and their beliefs, something the Temple will never condone in its quest to bring everything under its heel.<br>
|
||||
I stand against that kind of corrupt power-mongering in the name of religion.<br>
|
||||
Nothing you do to me will shake that belief!<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30612-07.html">"My belief is that the weak and helpless of this land need a protector against the forces of chaos. I believe that I can bring peace and order through my strong leadership. Which of us truly has the best interests of others at heart?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-07.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
So you believe you are the one? Very well...<br>
|
||||
If you are so positive that yours is the best path, test yourself!<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30612-08.html">"What are you talking about?"</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-08.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-08.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
A preacher carrying the <font color="LEVEL">Sealed Prophecy - Path of the God</font> was attacked in this wilderness by ants. He is missing, and without him we do not know how to determine the location of the angel...<br>
|
||||
Perhaps you can recover some pieces of the prophecy from the ants in the Ant Nest.<br>
|
||||
Provided, of course, that the vicious, machine-like ants leave you alone...<br>
|
||||
If you are so convinced of the rightness of your course, why not see if the gods will bless your attempt?
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-09.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30612-09.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Elder Casian:<br>
|
||||
A preacher carrying the <font color="LEVEL">Sealed Prophecy - Path of the God</font> was attacked in this wilderness by ants. He is missing, and without him we do not know how to determine the location of the angel...<br>
|
||||
Perhaps you can recover some pieces of the Prophecy from the ants in the Ant Nest.<br>
|
||||
Provided, of course, that the vicious, machine-like ants leave you alone...<br>
|
||||
If you are so convinced of the rightness of your course, why not see if the gods will bless your attempt?
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Chief Natools:<br>
|
||||
You wish to accept <font color="LEVEL">the request of the Temple of Einhsad and the Rulers of Dawn</font>? Then I will tell you what you must do. Listen carefully and do not divulge the secrets you are about to hear...<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30894-02.html">"I will keep that in mind."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Chief Natools:<br>
|
||||
What the Temple really desires is the destruction of the angel.<br><br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 30894-03.html">"What?! I can't believe that... Why would they want that?"</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-03.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-03.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Warehouse Chief Natools:<br>
|
||||
The Temple believes that the angel is actually a fallen angel who has rebelled against Einhasad and is now fleeing her wrath.<br>
|
||||
In their eyes, the angel has become a monster...<br>
|
||||
Guard this knowledge! If it became widely known, chaos might ensue.<br>
|
||||
Go speak to <font color="LEVEL">High Priest Raymond in the town of Gludio</font>.<br>
|
||||
If you give him the secret code that your predecessor discovered, he will give you instructions on how to proceed.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/30894-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Chief Natools:<br>
|
||||
Seek out <font color="LEVEL">High Priest Raymond in Gludio</font> and follow his instructions...
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-01.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Weathered Rock:<br>
|
||||
You see nothing out of the ordinary.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Weathered Rock:<br>
|
||||
It seems to be just a regular weathered rock in the wilderness.<br>
|
||||
<a action="bypass -h Quest Q00142_FallenAngelRequestOfDawn 32368-04.html">Sing the song of praise from the prophecy.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Weathered Rock:<br>
|
||||
Defeat the fallen angel and obtain its blood as proof of your victory, then deliver the blood to High Priest Raymond.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Weathered Rock:<br>
|
||||
The fallen angel appears when you sing the song of praise.<br>
|
||||
Defeat the fallen angel and obtain its blood as proof of your victory, then deliver the blood to High Priest Raymond.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00142_FallenAngelRequestOfDawn/32368-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Weathered Rock:<br>
|
||||
You defeated the fallen angel on this rock. Now take its blood to High Priest Raymond in Gludio.
|
||||
</body></html>
|
@@ -0,0 +1,293 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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.
|
||||
*
|
||||
* L2J DataPack 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.Q00142_FallenAngelRequestOfDawn;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Fallen Angel - Request of Dawn (142)
|
||||
* @author Nono
|
||||
*/
|
||||
public class Q00142_FallenAngelRequestOfDawn extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int RAYMOND = 30289;
|
||||
private static final int CASIAN = 30612;
|
||||
private static final int NATOOLS = 30894;
|
||||
private static final int ROCK = 32368;
|
||||
// Monsters
|
||||
private static final int FALLEN_ANGEL = 27338;
|
||||
private static final Map<Integer, Integer> MOBS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
MOBS.put(20079, 338); // Ant
|
||||
MOBS.put(20080, 363); // Ant Captain
|
||||
MOBS.put(20081, 611); // Ant Overseer
|
||||
MOBS.put(20082, 371); // Ant Recruit
|
||||
MOBS.put(20084, 421); // Ant Patrol
|
||||
MOBS.put(20086, 371); // Ant Guard
|
||||
MOBS.put(20087, 900); // Ant Soldier
|
||||
MOBS.put(20088, 1000);// Ant Warrior Captain
|
||||
MOBS.put(20089, 431); // Noble Ant
|
||||
MOBS.put(20090, 917); // Noble Ant Leader
|
||||
}
|
||||
// Items
|
||||
private static final int CRYPTOGRAM_OF_THE_ANGEL_SEARCH = 10351;
|
||||
private static final int PROPHECY_FRAGMENT = 10352;
|
||||
private static final int FALLEN_ANGEL_BLOOD = 10353;
|
||||
// Misc
|
||||
private static final int MAX_REWARD_LEVEL = 43;
|
||||
private static final int FRAGMENT_COUNT = 30;
|
||||
private boolean isAngelSpawned = false;
|
||||
|
||||
public Q00142_FallenAngelRequestOfDawn()
|
||||
{
|
||||
super(142, Q00142_FallenAngelRequestOfDawn.class.getSimpleName(), "Fallen Angel - Request of Dawn");
|
||||
addTalkId(NATOOLS, RAYMOND, CASIAN, ROCK);
|
||||
addKillId(MOBS.keySet());
|
||||
addKillId(FALLEN_ANGEL);
|
||||
registerQuestItems(CRYPTOGRAM_OF_THE_ANGEL_SEARCH, PROPHECY_FRAGMENT, FALLEN_ANGEL_BLOOD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "30894-02.html":
|
||||
case "30289-03.html":
|
||||
case "30289-04.html":
|
||||
case "30612-03.html":
|
||||
case "30612-04.html":
|
||||
case "30612-06.html":
|
||||
case "30612-07.html":
|
||||
break;
|
||||
case "30894-01.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30894-03.html":
|
||||
st.giveItems(CRYPTOGRAM_OF_THE_ANGEL_SEARCH, 1);
|
||||
st.setCond(2, true);
|
||||
break;
|
||||
case "30289-05.html":
|
||||
st.unset("talk");
|
||||
st.setCond(3, true);
|
||||
break;
|
||||
case "30612-05.html":
|
||||
st.set("talk", "2");
|
||||
break;
|
||||
case "30612-08.html":
|
||||
st.unset("talk");
|
||||
st.setCond(4, true);
|
||||
break;
|
||||
case "32368-04.html":
|
||||
if (isAngelSpawned)
|
||||
{
|
||||
return "32368-03.html";
|
||||
}
|
||||
addSpawn(FALLEN_ANGEL, npc.getX() + 100, npc.getY() + 100, npc.getZ(), 0, false, 120000);
|
||||
isAngelSpawned = true;
|
||||
startQuestTimer("despawn", 120000, null, player);
|
||||
break;
|
||||
case "despawn":
|
||||
if (isAngelSpawned)
|
||||
{
|
||||
isAngelSpawned = false;
|
||||
}
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final QuestState st;
|
||||
if ((npc.getId() == FALLEN_ANGEL))
|
||||
{
|
||||
st = player.getQuestState(getName());
|
||||
if (st.isCond(5))
|
||||
{
|
||||
st.giveItems(FALLEN_ANGEL_BLOOD, 1);
|
||||
st.setCond(6, true);
|
||||
isAngelSpawned = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
final L2PcInstance member = getRandomPartyMember(player, 4);
|
||||
if (member != null)
|
||||
{
|
||||
st = getQuestState(member, false);
|
||||
if (getRandom(1000) < MOBS.get(npc.getId()))
|
||||
{
|
||||
st.giveItems(PROPHECY_FRAGMENT, 1);
|
||||
if (st.getQuestItemsCount(PROPHECY_FRAGMENT) >= FRAGMENT_COUNT)
|
||||
{
|
||||
st.takeItems(PROPHECY_FRAGMENT, -1);
|
||||
st.setCond(5, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case NATOOLS:
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.STARTED:
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "30894-01.html";
|
||||
break;
|
||||
default:
|
||||
htmltext = "30894-04.html";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case RAYMOND:
|
||||
if (st.isStarted())
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
htmltext = "30289-01.html";
|
||||
break;
|
||||
case 2:
|
||||
if (st.isSet("talk"))
|
||||
{
|
||||
htmltext = "30289-03.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.takeItems(CRYPTOGRAM_OF_THE_ANGEL_SEARCH, -1);
|
||||
st.set("talk", "1");
|
||||
htmltext = "30289-02.html";
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
htmltext = "30289-06.html";
|
||||
break;
|
||||
case 6:
|
||||
st.giveAdena(92676, true);
|
||||
if (player.getLevel() <= MAX_REWARD_LEVEL)
|
||||
{
|
||||
st.addExpAndSp(223036, 13091);
|
||||
}
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "30289-07.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CASIAN:
|
||||
if (st.isStarted())
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
htmltext = "30612-01.html";
|
||||
break;
|
||||
case 3:
|
||||
if (st.getInt("talk") == 1)
|
||||
{
|
||||
htmltext = "30612-03.html";
|
||||
}
|
||||
else if (st.getInt("talk") == 2)
|
||||
{
|
||||
htmltext = "30612-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30612-02.html";
|
||||
st.set("talk", "1");
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
htmltext = "30612-09.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ROCK:
|
||||
if (st.isStarted())
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 5:
|
||||
htmltext = "32368-02.html";
|
||||
break;
|
||||
case 6:
|
||||
htmltext = "32368-05.html";
|
||||
break;
|
||||
default:
|
||||
htmltext = "32368-01.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user