This commit is contained in:
9
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0.html
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Thank you! As a matter of fact, there are several Raid bosses around here. Which one can you defeat?<br>
|
||||
<font color="LEVEL">Ah! Of course you don't have to do so personally.</font> There is no rule that says a clan leader must take up the sword directly. <font color="LEVEL">You can order your clan members to defeat a Raid Boss, then bring me proof of the victory.</font><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-1.html">Daimon the White-Eyed</a><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-2.html">Hestia, Guardian Deity of the Hot Springs</a><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-3.html">Plague Golem</a><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-4.html">Demon's Agent Falston</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0a.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0a.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Our townsfolk live in mortal fear of the Raid Bosses in this area. It would be disastrous if they were to actually intrude into the village...<br>
|
||||
Our only hope is to obtain the assistance of a very powerful Clan Leader! Do you know one?<br>
|
||||
(This quest is only available to the Leaders of Clans of level 6 and above.)
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0b.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0b.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Your Clan's sterling reputation precedes you! How would you and your compatriots like to enhance your Clan's <font color="LEVEL">prestige</font>? I'm afraid we've fallen into a bad situation here...<br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0c.htm">"What's the problem?"</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0c.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-0c.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
The local townsfolk live in mortal fear of the <font color="LEVEL">Raid Bosses</font> in this area! It would be disastrous if they were to actually intrude into the village...<br>
|
||||
Would you and your friends please use your power to set the minds of our townsfolk at ease? Success would give an enormous boost to your Clan's prestige throughout the land! What do you think? Will you help us?<br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I'll do it."</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-1.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-1.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Very good! Slay <font color="LEVEL">Daimon the White-Eyed</font> and bring me his eyeballs.<br>
|
||||
<font color="LEVEL">And remember, you don't need to do the killing yourself! Just step aside and let your Clan members do the messy work!</font>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-1a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-1a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
<font color="LEVEL">Slay Daimon the White-Eyed</font> and bring me his eyeball.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan do the work for you!</font><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to try killing another Raid Boss."</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-1b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-1b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of Daimon the White-Eyed.<br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-5.html">"I want to quit this mission."</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-2.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-2.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Very good! Slay the <font color="LEVEL">Guardian Deity of Hot Springs Hestia</font> and bring me her Fairy Stone.<br>
|
||||
<font color="LEVEL">Of course, you won't need to get your hands bloody... Have your Clan members do the killing for you! All you need to do is collect and bring back the proof!</font>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-2a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-2a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Slay <font color="LEVEL">Guardian Deity of Hot Springs Hestia</font> and bring me her Fairy Stone.<br>
|
||||
<font color="LEVEL">Remember, you need not kill the Guardian Deity of Hot Springs Hestia with your own hands. Just stand back and let your Clan do the work for you!</font><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-5.html">"I want to try killing another Raid Boss."</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-2b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-2b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Hestia, Guardian Deity of the Hot Springs.<br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-5.html">"I want to quit this mission."</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-3.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-3.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Very good! Destroy the <font color="LEVEL">Plague Golem</font> and bring me the Nucleus from the Golem.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan do the work for you!</font>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-3a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-3a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Defeat the <font color="LEVEL">Plague Golem</font> and bring me the Nucleus of Lesser Golem.<br>
|
||||
<font color="LEVEL">Remember, you need not kill the Plague Golem with your own hands. Just stand back and let your Clan do the work for you!</font><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to try killing another Raid Boss."</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-3b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-3b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Plague Golem.<br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-5.html">"I want to quit this mission."</a>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-4.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-4.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Very good! Destroy <font color="LEVEL">Demon's Agent Falston</font> and bring me Falston's Fang.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan do the work for you!</font>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-4a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-4a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Excellent! Destroy <font color="LEVEL">Demon's Agent Falston</font> and bring me his Fang.<br>
|
||||
<font color="LEVEL">Remember, you need not kill Demon's Agent Falston with your own hands. Just stand back and let your Clan do the work for you!</font><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to try killing another Raid Boss."</a>
|
||||
</body></html>
|
||||
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-4b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-4b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Excellent! Destroy <font color="LEVEL">Demon's Agent Falston</font> and bring me his Fang.<br>
|
||||
<font color="LEVEL">Remember, you need not kill Demon's Agent Falston with your own hands. Just stand back and let your Clan do the work for you!</font><br>
|
||||
<a action="bypass -h Quest Q00509_AClansFame 31331-0.html">"I want to try killing another Raid Boss."</a>
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-5.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-5.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
What? You want to quit? Oh well, I guess you and your Clan have better things to do...
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-6.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/31331-6.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
You are no longer a clan lord -- I have nothing to ask of you. Go in peace.
|
||||
</body></html>
|
||||
199
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/Q00509_AClansFame.java
vendored
Normal file
199
trunk/dist/game/data/scripts/quests/Q00509_AClansFame/Q00509_AClansFame.java
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
/*
|
||||
* 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.Q00509_AClansFame;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.model.L2Clan;
|
||||
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;
|
||||
import com.l2jserver.gameserver.network.SystemMessageId;
|
||||
import com.l2jserver.gameserver.network.serverpackets.PledgeShowInfoUpdate;
|
||||
import com.l2jserver.gameserver.network.serverpackets.RadarControl;
|
||||
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
/**
|
||||
* A Clan's Fame (509)
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00509_AClansFame extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int VALDIS = 31331;
|
||||
|
||||
private static final Map<Integer, List<Integer>> REWARD_POINTS = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
REWARD_POINTS.put(1, Arrays.asList(25290, 8489, 1378)); // Daimon The White-Eyed
|
||||
REWARD_POINTS.put(2, Arrays.asList(25293, 8490, 1378)); // Hestia, Guardian Deity Of The Hot Springs
|
||||
REWARD_POINTS.put(3, Arrays.asList(25523, 8491, 1070)); // Plague Golem
|
||||
REWARD_POINTS.put(4, Arrays.asList(25322, 8492, 782)); // Demon's Agent Falston
|
||||
}
|
||||
|
||||
private static final int[] RAID_BOSS =
|
||||
{
|
||||
25290,
|
||||
25293,
|
||||
25523,
|
||||
25322
|
||||
};
|
||||
|
||||
public Q00509_AClansFame()
|
||||
{
|
||||
super(509, Q00509_AClansFame.class.getSimpleName(), "A Clan's Fame");
|
||||
addStartNpc(VALDIS);
|
||||
addTalkId(VALDIS);
|
||||
addKillId(RAID_BOSS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31331-0.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31331-1.html":
|
||||
st.set("raid", "1");
|
||||
player.sendPacket(new RadarControl(0, 2, 186304, -43744, -3193));
|
||||
break;
|
||||
case "31331-2.html":
|
||||
st.set("raid", "2");
|
||||
player.sendPacket(new RadarControl(0, 2, 134672, -115600, -1216));
|
||||
break;
|
||||
case "31331-3.html":
|
||||
st.set("raid", "3");
|
||||
player.sendPacket(new RadarControl(0, 2, 170000, -60000, -3500));
|
||||
break;
|
||||
case "31331-4.html":
|
||||
st.set("raid", "4");
|
||||
player.sendPacket(new RadarControl(0, 2, 93296, -75104, -1824));
|
||||
break;
|
||||
case "31331-5.html":
|
||||
st.exitQuest(true, true);
|
||||
break;
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
if (player.getClan() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
QuestState st = null;
|
||||
if (player.isClanLeader())
|
||||
{
|
||||
st = player.getQuestState(getName());
|
||||
}
|
||||
else
|
||||
{
|
||||
L2PcInstance pleader = player.getClan().getLeader().getPlayerInstance();
|
||||
if ((pleader != null) && player.isInsideRadius(pleader, 1500, true, false))
|
||||
{
|
||||
st = pleader.getQuestState(getName());
|
||||
}
|
||||
}
|
||||
|
||||
if ((st != null) && st.isStarted())
|
||||
{
|
||||
int raid = st.getInt("raid");
|
||||
if (REWARD_POINTS.containsKey(raid))
|
||||
{
|
||||
if ((npc.getId() == REWARD_POINTS.get(raid).get(0)) && !st.hasQuestItems(REWARD_POINTS.get(raid).get(1)))
|
||||
{
|
||||
st.rewardItems(REWARD_POINTS.get(raid).get(1), 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
L2Clan clan = player.getClan();
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = ((clan == null) || !player.isClanLeader() || (clan.getLevel() < 6)) ? "31331-0a.htm" : "31331-0b.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if ((clan == null) || !player.isClanLeader())
|
||||
{
|
||||
st.exitQuest(true);
|
||||
return "31331-6.html";
|
||||
}
|
||||
|
||||
int raid = st.getInt("raid");
|
||||
|
||||
if (REWARD_POINTS.containsKey(raid))
|
||||
{
|
||||
if (st.hasQuestItems(REWARD_POINTS.get(raid).get(1)))
|
||||
{
|
||||
htmltext = "31331-" + raid + "b.html";
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_FANFARE_1);
|
||||
st.takeItems(REWARD_POINTS.get(raid).get(1), -1);
|
||||
final int rep = REWARD_POINTS.get(raid).get(2);
|
||||
clan.addReputationScore(rep, true);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINT_S_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION).addInt(rep));
|
||||
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31331-" + raid + "a.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31331-0.html";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user