This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
Your courage is commendable, brave warrior, but you're not yet ready to confront Daimon and his evil forces. Improve your skills and come back!<br>
|
||||
(This quest may only be undertaken by characters of level 68 or above.)
|
||||
</body></html>
|
10
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-01.htm
vendored
Normal file
10
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-01.htm
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
Long ago, when I still had a complete body, my 1000 eyes told me everything that occurred in the world. It was I who told Einhasad of the relationship between Shilen and Gran Kain. When Eva abdicated as the goddess of water and went into hiding, it was I who exposed her.<br>
|
||||
But with the creation of the four races, the world became much too complex for me to watch everything that happened. I began opening only 500 of my eyes per day. This led to a sharp division within my personality.<br>
|
||||
Half of my mind concentrated on darker events in the world - war, murder, betrayal and corruption. This part of my mind became dark and depressed, and longed to purge the rampant evil from the world.<br>
|
||||
The other half of my mind focused on the brighter side of the world - love, art, courage and fealty.This part of my personality fell in love with all the noble things in the world.<br>
|
||||
During the brutal war between gods and giants, I refused to disclose the hiding places of giants. Einhasad responded by ripping my body into pieces and pulling out my eyes! He then threw my remains into this valley. Slowly, my two largest eyes became aware of light and darkness. I am the eye that is conscious of light.<br>
|
||||
Daimon the White-Eyed inherited the dark world view of Argos. He's determined to purify this world, and has brainwashed the monsters of this valley to help him realize his goal.<br>
|
||||
Brave warrior! Help stop Daimon!<br>
|
||||
<a action="bypass -h Quest Q00602_ShadowOfLight 31683-02.htm">"I'll do it!"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
Your courage may yet save the world!<br>
|
||||
Daimon the White-Eyed uses his underlings to transform monsters into slaves. Once they've been transformed, they're beyond redemption. Kill them so they can rest in peace.<br>
|
||||
You can get the eyes of darkness if you kill Buffalo Slaves and Grendel Slaves. When you get 100 eyes of darkness, visit me again.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
Why haven't you collected 100 eyes of darkness yet?<br>
|
||||
Act quickly or Daimon will become much more dangerous and powerful!
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-04.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-04.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
Don't get too full of yourself, young warrior!<br>
|
||||
Darkness grows stronger even as we speak!<br>
|
||||
If you're truly concerned about the wellbeing of this world, defeat the forces of darkness!<br>
|
||||
<a action="bypass -h Quest Q00602_ShadowOfLight 31683-05.html">"Here are the eyes of darkness."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
Your shouts of vengeance could be heard all the way over here! Excellent job, brave warrior!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/31683-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Eye of Argos:<br>
|
||||
No one can hide from the allseeing eye! Bring me 100 eyes of darkness!
|
||||
</BODY></html>
|
171
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/Q00602_ShadowOfLight.java
vendored
Normal file
171
trunk/dist/game/data/scripts/quests/Q00602_ShadowOfLight/Q00602_ShadowOfLight.java
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* 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.Q00602_ShadowOfLight;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Shadow of Light (602)<br>
|
||||
* Original Jython script by disKret.
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00602_ShadowOfLight extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int EYE_OF_ARGOS = 31683;
|
||||
// Item
|
||||
private static final int EYE_OF_DARKNESS = 7189;
|
||||
// Monsters
|
||||
private static final int[] MOBS =
|
||||
{
|
||||
21299,
|
||||
21304
|
||||
};
|
||||
|
||||
// Reward
|
||||
private static final int[][] REWARD =
|
||||
{
|
||||
{
|
||||
6699,
|
||||
40000,
|
||||
120000,
|
||||
20000
|
||||
},
|
||||
{
|
||||
6698,
|
||||
60000,
|
||||
110000,
|
||||
15000
|
||||
},
|
||||
{
|
||||
6700,
|
||||
40000,
|
||||
150000,
|
||||
10000
|
||||
},
|
||||
{
|
||||
0,
|
||||
100000,
|
||||
140000,
|
||||
11250
|
||||
}
|
||||
};
|
||||
|
||||
public Q00602_ShadowOfLight()
|
||||
{
|
||||
super(602, Q00602_ShadowOfLight.class.getSimpleName(), "Shadow of Light");
|
||||
addStartNpc(EYE_OF_ARGOS);
|
||||
addTalkId(EYE_OF_ARGOS);
|
||||
addKillId(MOBS);
|
||||
registerQuestItems(EYE_OF_DARKNESS);
|
||||
}
|
||||
|
||||
@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 "31683-02.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31683-05.html":
|
||||
if (st.getQuestItemsCount(EYE_OF_DARKNESS) < 100)
|
||||
{
|
||||
return "31683-06.html";
|
||||
}
|
||||
|
||||
int i = getRandom(4);
|
||||
if (i < 3)
|
||||
{
|
||||
st.giveItems(REWARD[i][0], 3);
|
||||
}
|
||||
st.giveAdena(REWARD[i][1], true);
|
||||
st.addExpAndSp(REWARD[i][2], REWARD[i][3]);
|
||||
st.exitQuest(true, true);
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
int chance = (npc.getId() == MOBS[0]) ? 560 : 800;
|
||||
|
||||
if (st.isCond(1) && (getRandom(1000) < chance))
|
||||
{
|
||||
st.giveItems(EYE_OF_DARKNESS, 1);
|
||||
if (st.getQuestItemsCount(EYE_OF_DARKNESS) == 100)
|
||||
{
|
||||
st.setCond(2, 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 (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= 68) ? "31683-01.htm" : "31683-00.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.isCond(1)) ? "31683-03.html" : "31683-04.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user