This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-0.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-0.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
The townspeople live in constant fear because of the Raid Bosses in this area. We must manufacture better arms and equipment for our guards to defeat this menace, but the materials are difficult to obtain...<br>
|
||||
If there were a strong clan nearby, I would ask its clan leader. Do you know of anyone in the area?<br>
|
||||
(Only clan leaders of clans level 5 and above can take on this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-1.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-1.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
I have heard of your clan's exploits. Would you and your members desire to come together and enhance <font color="LEVEL">your clan's prestige</font>? Any assistance you can provide us, be it large or small, would be greatly appreciated.<br>
|
||||
<a action="bypass -h Quest Q00510_AClansPrestige 31331-2.htm">"What kind of assistance do you need?"</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-2.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-2.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
We lack sufficient weapons and armor to properly equip the guards who safeguard us here. The local blacksmiths have agreed to manufacture what we need, but lack the necessary raw materials to do so. We have been searching for those materials, but without much success. I recently heard that the claws of the ferocious <font color="LEVEL">Tyrannosaurus</font>, a creature that inhabits the Primeval Isle, would be ideal for our purposes.<br>
|
||||
Would you consider using the power of your clan to collect those materials for us?<br>
|
||||
If you help us, I will help you enhance your clan's prestige throughout this land by spreading word of the great feat you have accomplished for us. Well? What say you?<br>
|
||||
<a action="bypass -h Quest Q00510_AClansPrestige 31331-3.html">Say yes.</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-3.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-3.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Thank you, thank you! Legend has it that these creatures are extremely vicious... Oh, but I'm sure they will pose no more trouble to such a powerful clan than a kitten with her claws! So, will you go to the Primeval Isle and slay a <font color="LEVEL">Tyrannosaurus</font>?<br>
|
||||
<font color="LEVEL">Naturally, we don't expect you personally to slay the creature.</font> There is no rule requiring a clan leader to brandish his own sword in these matters. <font color="LEVEL">Simply stay nearby and watch your clan members slay the Tyrannosaurus and return here with its claws. It's vital that the claw be undamaged, you understand, which means...uh, well, it's probably best that you capture the creature before slaying it. I hope that doesn't complicate the task for you!</font><br>
|
||||
I'll be here anxiously awaiting your good news.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-4.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-4.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Are you still here? Hurry to the Primeval Isle and bring back the <font color="LEVEL">Tyrannosaurus Claw</font> that I requested. Do you have any other business with me?<br>
|
||||
<a action="bypass -h Quest Q00510_AClansPrestige 31331-5.html">"No, nothing. I'll go get the material."</a><br>
|
||||
<a action="bypass -h Quest Q00510_AClansPrestige 31331-6.html">"I wish to stop now."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-5.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-5.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Then I'll leave it to you. The <font color="LEVEL">Tyrannosaurus</font> of the Primeval Isle is ferocious, but I will trust in you and your clan and wait. Be sure to <font color="LEVEL">capture</font> it and bring back a usable claw. Well, you know the way out. Thank you!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-6.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-6.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
You wish to quit? That's too bad, but I suppose it cannot be helped. Your clan must have concerns of its own...
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-7.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-7.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>
|
||||
Grand Magister Valdis:<br>
|
||||
Well done! We will make great use of the material that you and your clan brought back. What a tremendous feat, to capture and bring back that ferocious creature! As promised, I will spread word everywhere that the clan you lead brought down a <font color="LEVEL">Tyrannosaurus.</font><br>
|
||||
Could we possibly convince you to continue your efforts on our behalf?<br>
|
||||
<a action="bypass -h Quest Q00510_AClansPrestige 31331-5.html">"I will continue to go and get the material."</a><br>
|
||||
<a action="bypass -h Quest Q00510_AClansPrestige 31331-6.html">"I wish to stop now."</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-8.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/31331-8.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>
|
153
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/Q00510_AClansPrestige.java
vendored
Normal file
153
trunk/dist/game/data/scripts/quests/Q00510_AClansPrestige/Q00510_AClansPrestige.java
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* 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.Q00510_AClansPrestige;
|
||||
|
||||
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.SystemMessage;
|
||||
|
||||
/**
|
||||
* A Clan's Prestige (510)
|
||||
* @author Adry_85
|
||||
*/
|
||||
public class Q00510_AClansPrestige extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int VALDIS = 31331;
|
||||
// Quest Item
|
||||
private static final int TYRANNOSAURUS_CLAW = 8767;
|
||||
|
||||
private static final int[] MOBS =
|
||||
{
|
||||
22215,
|
||||
22216,
|
||||
22217
|
||||
};
|
||||
|
||||
public Q00510_AClansPrestige()
|
||||
{
|
||||
super(510, Q00510_AClansPrestige.class.getSimpleName(), "A Clan's Prestige");
|
||||
addStartNpc(VALDIS);
|
||||
addTalkId(VALDIS);
|
||||
addKillId(MOBS);
|
||||
}
|
||||
|
||||
@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-3.html":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "31331-6.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 = getQuestState(player, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
L2PcInstance pleader = player.getClan().getLeader().getPlayerInstance();
|
||||
if ((pleader != null) && player.isInsideRadius(pleader, 1500, true, false))
|
||||
{
|
||||
st = getQuestState(pleader, false);
|
||||
}
|
||||
}
|
||||
|
||||
if ((st != null) && st.isStarted())
|
||||
{
|
||||
st.rewardItems(TYRANNOSAURUS_CLAW, 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)) ? "31331-0.htm" : "31331-1.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if ((clan == null) || !player.isClanLeader())
|
||||
{
|
||||
st.exitQuest(true);
|
||||
return "31331-8.html";
|
||||
}
|
||||
|
||||
if (!st.hasQuestItems(TYRANNOSAURUS_CLAW))
|
||||
{
|
||||
htmltext = "31331-4.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
int count = (int) st.getQuestItemsCount(TYRANNOSAURUS_CLAW);
|
||||
int reward = (count < 10) ? (30 * count) : (59 + (30 * count));
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_FANFARE_1);
|
||||
st.takeItems(TYRANNOSAURUS_CLAW, -1);
|
||||
clan.addReputationScore(reward, true);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINT_S_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION).addInt(reward));
|
||||
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
|
||||
htmltext = "31331-7.html";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user