This commit is contained in:
7
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
I am Shilen's avatar.<br>
|
||||
Shilen commanded me to watch over this island and protect it from evil beings.<br>
|
||||
The duty is growing increasingly difficult. But I have prayed to Shilen and she has decreed that she would send a warrior who can defeat the threat we face.<br>
|
||||
Are you the one? No... You are too weak to be the warrior mother Shilen spoke of.<br>
|
||||
(Only characters level 77 and above are permitted to take on this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0a.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0a.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
You are the one with the Elrokian warrior's spirit! Did you discover the whereabouts of Gazkh's fragments?<br>
|
||||
<a action="bypass -h Quest Q00641_AttackSailren 32109-0c.htm">Tell the statue about decrypting the password that Asamah talked about.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0b.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0b.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
Infidel! To even touch sacred Shilen's statue, much less seek to awaken Shilen's avatar! For this insult, you deserve eternal punishment!<br>
|
||||
But I see that you are an ignorant fool, so I will forgive your error. Now begone!
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0c.htm
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-0c.htm
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
Ah? So, the dinosaurs themselves contain some fragments of Gazkh?<br>
|
||||
I suppose that it is possible...if the ax was broken and the fragments were scattered by the force Shilen used to seal Sailren.<br>
|
||||
The predator dinosaurs here have skin harder than iron -- I doubt they would ever feel the fragments embedded in their hides. In fact, the very power of Gazkh has probably greatly extended their lifespans.<br>
|
||||
You who contain an ancient Elrokian spirit, you are the only one who can hunt those dinosaurs and bring back the Gazkh fragments.<br>
|
||||
Choose now. Will you attempt to recover the fragments?<br>
|
||||
<a action="bypass -h Quest Q00641_AttackSailren 32109-1.html">Say yes.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-1.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-1.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
Very well. Yes, you are truly the one sent by mother Shilen... Listen carefully as I tell you about the dinosaurs that may contain Gazkh fragments.<br>
|
||||
You will encounter predatory dinosaurs such as <font color="LEVEL">Velociraptor and Pterosaur</font>. They are not as strong as Sailren, but vicious nevertheless. These are the most likely to contain the fragments. Go and hunt them -- find the fragments! Remember, you must return with at least <font color="LEVEL">30</font> fragments. If you bring me 30 fragments or more, I will reforge them into an intact axe head. Ah, could our deliverance finally be at hand?<br>
|
||||
May Shilen help you strike true!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-1a.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-1a.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
As I told you before, I need more than 30 Gazkh fragments in order to restore this powerful weapon back to its original form...<br>
|
||||
Hunt <font color="LEVEL">Velociraptor and Pterosaur</font> in this area and bring back more than 30 fragments.
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-2.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-2.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
You have brought all the Gazkh fragments!<br>
|
||||
Shilen be praised! The power of the seal stones to guard that dangerous Sailren will be increased now that an Elrokian warrior again wields Gazkh.<br>
|
||||
You are indeed the chosen of Shilen!<br>
|
||||
The task is now yours. Are you ready to face the monsters within?<br>
|
||||
<a action="bypass -h Quest Q00641_AttackSailren 32109-2a.html">"I'm ready."</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-2a.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/32109-2a.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Shilen's Stone Statue:<br>
|
||||
Very well. By the power of Shilen, Gazkh has been restored.<br>
|
||||
It possesses the powers that can defeat Sailren.<br>
|
||||
You are now the true master of Gazkh.<br>
|
||||
Shilen has decreed that the one who can wield Gazkh can defeat Sailren. Go now and defeat that evil dinosaur! Save this island and its people.<br>
|
||||
Let me aid you one final time by giving you some additional guidance.
|
||||
</body></html>
|
138
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/Q00641_AttackSailren.java
vendored
Normal file
138
trunk/dist/game/data/scripts/quests/Q00641_AttackSailren/Q00641_AttackSailren.java
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* 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.Q00641_AttackSailren;
|
||||
|
||||
import quests.Q00126_TheNameOfEvil2.Q00126_TheNameOfEvil2;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Attack Sailren! (641)
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00641_AttackSailren extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int SHILENS_STONE_STATUE = 32109;
|
||||
// Items
|
||||
public static final int GAZKH_FRAGMENT = 8782;
|
||||
public static final int GAZKH = 8784;
|
||||
|
||||
public static int[] MOBS =
|
||||
{
|
||||
22196, // Velociraptor
|
||||
22197, // Velociraptor
|
||||
22198, // Velociraptor
|
||||
22218, // Velociraptor
|
||||
22223, // Velociraptor
|
||||
22199, // Pterosaur
|
||||
};
|
||||
|
||||
public Q00641_AttackSailren()
|
||||
{
|
||||
super(641, Q00641_AttackSailren.class.getSimpleName(), "Attack Sailren!");
|
||||
addStartNpc(SHILENS_STONE_STATUE);
|
||||
addTalkId(SHILENS_STONE_STATUE);
|
||||
addKillId(MOBS);
|
||||
registerQuestItems(GAZKH_FRAGMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "32109-1.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32109-2a.html":
|
||||
if (st.getQuestItemsCount(GAZKH_FRAGMENT) >= 30)
|
||||
{
|
||||
st.giveItems(GAZKH, 1);
|
||||
st.exitQuest(true, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
|
||||
if (partyMember != null)
|
||||
{
|
||||
final QuestState st = getQuestState(partyMember, false);
|
||||
if (st != null)
|
||||
{
|
||||
st.giveItems(GAZKH_FRAGMENT, 1);
|
||||
if (st.getQuestItemsCount(GAZKH_FRAGMENT) < 30)
|
||||
{
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
else
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
if (player.getLevel() < 77)
|
||||
{
|
||||
htmltext = "32109-0.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
st = player.getQuestState(Q00126_TheNameOfEvil2.class.getSimpleName());
|
||||
htmltext = ((st != null) && st.isCompleted()) ? "32109-0a.htm" : "32109-0b.htm";
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.isCond(1)) ? "32109-1a.html" : "32109-2.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user