This commit is contained in:
11
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0.html
vendored
Normal file
11
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Thank you! There are several Raid Bosses near the village. Which one can you defeat?<br>
|
||||
<font color="LEVEL">Remember, you don't have to kill the Raid Boss by yourself.</font> There is no rule that says the clan leader has to use his sword. <font color="LEVEL">If your clan members defeat the Raid Boss, simply bring back proof of your victory.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-1.html">Palibati Queen Themis</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-2.html">Shilen's Priest Hisilrome</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-3.html">Gargoyle Lord Tiphon</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-4.html">Last Lesser Giant Glaki</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-5.html">Rahha</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-6.html">Flamestone Giant</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0a.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0a.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
The townsfolk of Aden Castle live in mortal fear of the Raid Bosses in this area. If they were to actually make it into the village...<br>
|
||||
I must find a Clan Leader who leads a very powerful Clan. Can you recommend anyone?<br>
|
||||
(Only Clan Leaders of Clans of level 5 and above may undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0b.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0b.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
It hasn't been long since I saw you, but your Clan has certainly grown! Would you and your Clan be interested in raising your <font color="LEVEL">reputation</font>? We could really use some help here!<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0c.htm">"What's the problem?"</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0c.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-0c.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
The townsfolk of Aden Castle live in mortal fear of the <font color="LEVEL">Raid Bosses</font> in this area. If they were to actually make it into the village... Naturally, we have guards posted, but there aren't any guarantees!<br>
|
||||
Please, use the power of your Clan to set the townsfolk free from fear! Help us and we'll raise your Clan's reputation by spreading the word far and wide of your good deed! Will you help us?<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I'll do it."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-1.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-1.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter <font color="LEVEL">Palibati Queen Themis</font> and bring me her scale!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Palibati Queen Themis and then bring her scale to me.</font>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-1a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-1a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very well! Slay <font color="LEVEL">Palibati Queen Themis</font> and bring me her scale.<br>
|
||||
<font color="LEVEL">Remember, you don't have to kill Palibati Queen Themis yourself.</font> There's no rule that says a Clan Leader must get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Palibati Queen Themis and then bring me back her scale.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want a new mission."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-1b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-1b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan has defeated Palibati Queen Themis.<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-7.html">Quit</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-2.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-2.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Then kill <font color="LEVEL">Shillien Priest Hisilrome</font> and bring me his heart.<br>
|
||||
<font color="LEVEL">As I mentioned before, you don't have to kill Hisilrome yourself.</font> There is no rule that says the clan leader has to use his sword personally. <font color="LEVEL">If your clan members defeat Hisilrome, simply bring back proof of the victory.</font>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-2a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-2a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Kill <font color="LEVEL">Shillien Priest Hisilrome</font> and bring me his heart.<br>
|
||||
<font color="LEVEL">A word of advice: you don't have to kill Hisilrome yourself.</font> There is no rule that says the clan leader has to use his sword personally. <font color="LEVEL">If your clan members defeat Hisilrome, simply bring back proof of the victory.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">Quit this mission and take on a new one.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-2b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-2b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Well done! I'll tell everyone how bravely your clan defeated Shillien Priest Hisilrome.<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">Choose another Raid Boss to fight.</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-7.html">Say you want to quit.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-3.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-3.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Fine! Then go and kill <font color="LEVEL">Gargoyle Lord Tiphon</font> and bring me the Tiphon Shard.<br>
|
||||
<font color="LEVEL">As I have said, you don't have to kill Gargoyle Lord Tiphon yourself.</font> There's no rule that says the Clan Leader has to get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Gargoyle Lord Tiphon and then bring me its Tiphon Shard.</font>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-3a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-3a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Fine! Then go and kill <font color="LEVEL">Gargoyle Lord Tiphon</font> and bring me the Tiphon Shard.<br>
|
||||
<font color="LEVEL">Just so we're clear, I'll tell you this once more. You don't have to kill Gargoyle Lord Tiphon yourself.</font> There's no rule that says a Clan Leader must get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Gargoyle Lord Tiphon and then bring back the Tiphon Shard to me.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want a new mission."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-3b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-3b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Thank you. I'll spread the word of your brave Clan's defeat of the Gargoyle Lord Tiphon.<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I'll keep slaying Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-7.html">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-4.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-4.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very well, go and kill <font color="LEVEL">Last Lesser Giant Glaki</font> and bring me Glaki's Nucleus.<br>
|
||||
<font color="LEVEL">As I have said, you don't have to kill Last Lesser Giant Glaki yourself.</font> There's no rule that says the Clan Leader has to get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Last Lesser Giant Glaki and then bring me back Glaki's Nucleus.</font>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-4a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-4a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very well, go and kill the <font color="LEVEL">Last Lesser Giant Glaki</font> and bring me Glaki's Nucleus.<br>
|
||||
<font color="LEVEL">Remember, you don't have to kill the Last Lesser Giant Glaki yourself.</font> There's no rule that says a Clan Leader must get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Last Lesser Giant Glaki and then bring me back Glaki's Nucleus.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want a new mission."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-4b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-4b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Thank you. I'll spread the word of your brave Clan's defeat of Last Lesser Giant Glaki.<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I'll keep slaying Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-7.html">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-5.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-5.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Go defeat <font color="LEVEL">Rahha</font> and bring me Rahha's Fang.<br>
|
||||
<font color="LEVEL">As I have said, you don't have to kill Rahha yourself.</font> There's no rule that says the Clan Leader has to get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Rahha and then bring back Rahha's Fang.</font>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-5a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-5a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very well, go and kill <font color="LEVEL">Rahha</font> and bring me Rahha's Fang.<br>
|
||||
<font color="LEVEL">Just so we're clear, I'll tell you this once more. You don't have to kill Rahha yourself.</font> There's no rule that says a Clan Leader must get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Rahha and then bring me back Rahha's Fang.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want a new mission."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-5b.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-5b.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Thank you. I'll spread the word of your brave Clan's defeat of Rahha.<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-6.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-6.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very well, go and kill the <font color="LEVEL">Flamestone Giant</font> and bring me the Nucleus of Flamestone Giant.<br>
|
||||
<font color="LEVEL">As I have said, you don't have to kill Flamestone Giant yourself.</font> There's no rule that says the Clan Leader has to get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Flamestone Giant and then bring me the Nucleus of Flamestone Giant.</font>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-6a.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-6a.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Very well, go and kill the <font color="LEVEL">Flamestone Giant</font> and bring me the Nucleus of Flamestone Giant.<br>
|
||||
<font color="LEVEL">Remember, you don't have to kill Flamestone Giant yourself.</font> There's no rule that says a Clan Leader must get his hands bloody! <font color="LEVEL">Just stand in a safe place and watch your Clan kill Flamestone Giant and then bring me back the Nucleus of Flamestone Giant.</font><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want a new mission."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-6b.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-6b.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan has defeated the Flamestone Giant.<br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-0.html">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q00508_AClansReputation 30868-7.html">Quit</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-7.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-7.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
You're quitting? That's too bad, but I can't help it. I'm sure that you and your Clan know what you're doing.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-8.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/30868-8.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
Sir Eric Rodemai:<br>
|
||||
Now that you are no longer a clan lord, I have nothing to ask of you. Go in peace.
|
||||
</body></html>
|
212
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/Q00508_AClansReputation.java
vendored
Normal file
212
trunk/dist/game/data/scripts/quests/Q00508_AClansReputation/Q00508_AClansReputation.java
vendored
Normal file
@@ -0,0 +1,212 @@
|
||||
/*
|
||||
* 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.Q00508_AClansReputation;
|
||||
|
||||
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 Reputation (508)<br>
|
||||
* Original Jython script by chris_00, @katmai and DrLecter.
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00508_AClansReputation extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int SIR_ERIC_RODEMAI = 30868;
|
||||
|
||||
private static final Map<Integer, List<Integer>> REWARD_POINTS = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
REWARD_POINTS.put(1, Arrays.asList(25252, 8277, 560)); // Palibati Queen Themis
|
||||
REWARD_POINTS.put(2, Arrays.asList(25478, 14883, 584)); // Shilen's Priest Hisilrome
|
||||
REWARD_POINTS.put(3, Arrays.asList(25255, 8280, 602)); // Gargoyle Lord Tiphon
|
||||
REWARD_POINTS.put(4, Arrays.asList(25245, 8281, 784)); // Last Lesser Giant Glaki
|
||||
REWARD_POINTS.put(5, Arrays.asList(25051, 8282, 558)); // Rahha
|
||||
REWARD_POINTS.put(6, Arrays.asList(25524, 8494, 768)); // Flamestone Giant
|
||||
}
|
||||
|
||||
private static final int[] RAID_BOSS =
|
||||
{
|
||||
25252,
|
||||
25478,
|
||||
25255,
|
||||
25245,
|
||||
25051,
|
||||
25524
|
||||
};
|
||||
|
||||
public Q00508_AClansReputation()
|
||||
{
|
||||
super(508, Q00508_AClansReputation.class.getSimpleName(), "A Clan's Reputation");
|
||||
addStartNpc(SIR_ERIC_RODEMAI);
|
||||
addTalkId(SIR_ERIC_RODEMAI);
|
||||
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 "30868-0.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "30868-1.html":
|
||||
st.set("raid", "1");
|
||||
player.sendPacket(new RadarControl(0, 2, 192376, 22087, -3608));
|
||||
break;
|
||||
case "30868-2.html":
|
||||
st.set("raid", "2");
|
||||
player.sendPacket(new RadarControl(0, 2, 168288, 28368, -3632));
|
||||
break;
|
||||
case "30868-3.html":
|
||||
st.set("raid", "3");
|
||||
player.sendPacket(new RadarControl(0, 2, 170048, -24896, -3440));
|
||||
break;
|
||||
case "30868-4.html":
|
||||
st.set("raid", "4");
|
||||
player.sendPacket(new RadarControl(0, 2, 188809, 47780, -5968));
|
||||
break;
|
||||
case "30868-5.html":
|
||||
st.set("raid", "5");
|
||||
player.sendPacket(new RadarControl(0, 2, 117760, -9072, -3264));
|
||||
break;
|
||||
case "30868-6.html":
|
||||
st.set("raid", "6");
|
||||
player.sendPacket(new RadarControl(0, 2, 144600, -5500, -4100));
|
||||
break;
|
||||
case "30868-7.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() < 5)) ? "30868-0a.htm" : "30868-0b.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if ((clan == null) || !player.isClanLeader())
|
||||
{
|
||||
st.exitQuest(true);
|
||||
return "30868-8.html";
|
||||
}
|
||||
|
||||
int raid = st.getInt("raid");
|
||||
|
||||
if (REWARD_POINTS.containsKey(raid))
|
||||
{
|
||||
if (st.hasQuestItems(REWARD_POINTS.get(raid).get(1)))
|
||||
{
|
||||
htmltext = "30868-" + 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 = "30868-" + raid + "a.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30868-0.html";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user