Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: dist/game/data/html/guard/31340.htm
- ===================================================================
- --- dist/game/data/html/guard/31340.htm (revision 9327)
- +++ dist/game/data/html/guard/31340.htm (working copy)
- @@ -4,6 +4,7 @@
- <a action="Link guard/kamaroka_level.htm">Look at the list of Kamaloka.</a><br>
- <a action="bypass -h npc_%objectId%_Quest Kamaloka">Enter Kamaloka.</a><br>
- <a action="bypass -h npc_%objectId%_Chat 4">"Do you know anything about the ominous rumor I heard?"</a><br>
- +<a action="bypass -h npc_%objectId%_multisell 300">Purchase item with marks</a><br>
- <a action="bypass -h npc_%objectId%_TerritoryStatus">Ask about the local lord and tax rate.</a><br>
- <a action="bypass -h npc_%objectId%_Quest">Quest</a>
- </body></html>
- \ No newline at end of file
- Index: dist/game/data/multisell/300.xml
- ===================================================================
- --- dist/game/data/multisell/300.xml (revision 0)
- +++ dist/game/data/multisell/300.xml (working copy)
- @@ -0,0 +1,63 @@
- +<?xml version="1.0" encoding="UTF-8"?>
- +<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="40" id="21750" />
- + <!-- Pablo's Box -->
- + <production count="1" id="21753" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="10" id="21750" />
- + <!-- Bronze Bracelet -->
- + <production count="1" id="9590" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="23" id="21750" />
- + <!-- Steel Bracelet -->
- + <production count="1" id="9591" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="70" id="21750" />
- + <!-- Mithril Bracelet -->
- + <production count="1" id="9592" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="2" id="21750" />
- + <!-- Rune Jewelry Box - Talisman -->
- + <production count="1" id="21752" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="1" id="21750" />
- + <!-- Memento Mori -->
- + <production count="10" id="9814" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="1" id="21750" />
- + <!-- Dragon Heart -->
- + <production count="10" id="9815" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="1" id="21750" />
- + <!-- Earth Egg -->
- + <production count="10" id="9816" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="1" id="21750" />
- + <!-- Nonliving Nucleus -->
- + <production count="10" id="9817" />
- + </item>
- + <item>
- + <!-- Blue Elmore Coin -->
- + <ingredient count="1" id="21750" />
- + <!-- Angelic Essence -->
- + <production count="10" id="9818" />
- + </item>
- +</list>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-00.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-00.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-00.htm (working copy)
- @@ -0,0 +1,4 @@
- +<html><body>Captain Mathias:<br>
- +I cannot trust your skill level. In order to receive this important mission, you need more experience.<br>
- +This is a life-risking task. (Only characters above level 80 can undertake this quest.)
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-01.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-01.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-01.htm (working copy)
- @@ -0,0 +1,5 @@
- +<html><body>Captain Mathias:<br>
- +Have you noticed the Red Moon as of Late? A bad omen to be sure. When that moon rises it tends to cause creatures to become more aggressive. I don't know maybe it has something to do with the color of blood.<br>
- +The king tries to hide it but I know he is troubled by the rise in monster related attacks. Unfortunately our forces are scarce as is and I cannot afford to send any of my troops out to handle the problem.<br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-02.htm">"That is a problem. I might be the solution."</a>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-02.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-02.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-02.htm (working copy)
- @@ -0,0 +1,6 @@
- +<html><body>Captain Mathias:<br>
- +You? Well, I suppose... those scars aren't for show, now are they? It looks like you can handle yourself in a fight.<br>
- +We have had reports of monsters near <font color="LEVEL">Rune and Goddard</font> that have been the cause of these recent attacks. <br>
- +I'm not going to lie, it will be dangerous, but I will be able to reward you for your efforts... that is if you are still interested.<br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-03.htm">"Hmmm, likely to be killed... sure why not."</a>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-03.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-03.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-03.htm (working copy)
- @@ -0,0 +1,7 @@
- +<html><body>Captain Mathias:<br>
- +Alright, there are three high priority targets.<br>
- +In Goddard, the Varka Silenos and Ketra Orcs Leaders have been rallying their troops. We need someone to go in there and eliminate the cause of their hostility.<br>
- +In the swamps near Rune, there is the Cannibalistic Stakato Chief... apparently it's got a taste for it's own kind. Creates a chemically induced state that causes it to go on a rampage. We need it taken out.<br>
- +Lastly, there is Anais in the Monastery of Silence. Our Intel is sketchy on the exact nature of this threat only that they need to be eliminated.<br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-04.htm">"Well then, what I'm I waiting for."</a>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-04.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-04.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-04.htm (working copy)
- @@ -0,0 +1,6 @@
- +<html><body>Captain Mathias:<br>
- +Wait a second. I like to keep tabs on who is doing what for me. I want to know what your plan of attack is. Which target do you plan on addressing?<br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-06.htm">The Ketra Orcs and the Varka Silenos</a><br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-08.htm">The Cannibalistic Stakato Chief</a><br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-10.htm">Anais</a>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-05.html
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-05.html (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-05.html (working copy)
- @@ -0,0 +1,7 @@
- +<html><body>Captain Mathias:<br>
- +Thanks for agreeing to help.<br>
- +I would like to know where you are planning to go. Which of the monsters I mentioned will you go to suppress?<br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-06.htm">The Ketra Orcs and the Varka Silenos</a><br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-08.htm">The Cannibalistic Stakato Chief</a><br>
- +<a action="bypass -h Quest Q00902_ReclaimOurEra 31340-10.htm">Anais</a>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-06.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-06.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-06.htm (working copy)
- @@ -0,0 +1,4 @@
- +<html><body>Captain Mathias:<br>
- +So, you want to take a shot at the Varka Silenos and the Ketra Orcs?<br>
- +You are going to want to kill their leaders. The ones to hunt are <font color="LEVEL">Shadith, Moss, Horus, Hekaton, Tayr, and Braki.</font> You don't need to kill them all... killing 1 should send the message. Oh, and once you are done... bring back their <font color="LEVEL">Shattered Bones.</font> as proof you have completed the assignment.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-07.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-07.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-07.htm (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Captain Mathias:<br>
- +The Ketra Orcs and the Varka Silenos are sworn enemies. Capturing just <font color="LEVEL">one of the leader monsters</font> will be considered meeting the suppression goal.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-08.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-08.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-08.htm (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Captain Mathias:<br>
- +The Stakatos have become more aggressive lately. This is probably due to their Leader who has a taste of their own kind. Consuming the flesh of the Stakato seems to produce a chemical that causes intense aggression. It sends them in a fury to attack all those around. We don't have a scientific name for him, we just call it the <font color="LEVEL">Cannibalistic Stakato Chief.</font> Once you have taken care of this creature be sure to remove and bring me back the <font color="LEVEL">Cannibalistic Stakato Chief's Claw</font> as proof you have finished the assignment.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-09.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-09.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-09.htm (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Captain Mathias:<br>
- +The Stakato Nest, where the Cannibalistic Stakato Chief lives, is a very dangerous place. Please be careful.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-10.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-10.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-10.htm (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Captain Mathias:<br>
- +The Monastery of Silence, Eh? The creature you seek is <font color="LEVEL">Anais</font>. A very powerful creature, so be careful. Just a tip... the Monks there don't like weapons. Your best off not brandishing your weapon until you find what you are looking for. Rumor has it Anais can be found near the Holy Grail. IF you know where that is, you know where to find Anais. Bring me <font color="LEVEL">Anais's Scroll</font> once you have taken care of that little problem.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-11.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-11.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-11.htm (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Captain Mathias:<br>
- +If you wish to defeat Anais in the Monastery of Silence, you will first need to walk a dangerous path. Be careful.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-12.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-12.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-12.htm (working copy)
- @@ -0,0 +1,3 @@
- +<html><body>Captain Mathias:<br>
- +Here is your reward.
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-completed.htm
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-completed.htm (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/31340-completed.htm (working copy)
- @@ -0,0 +1,4 @@
- +<html><body><br>
- +This quest can be completed only once a day.
- + This quest resets everyday at 6:30 am.<br>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/quests/Q00902_ReclaimOurEra/Q00902_ReclaimOurEra.java
- ===================================================================
- --- dist/game/data/scripts/quests/Q00902_ReclaimOurEra/Q00902_ReclaimOurEra.java (revision 0)
- +++ dist/game/data/scripts/quests/Q00902_ReclaimOurEra/Q00902_ReclaimOurEra.java (working copy)
- @@ -0,0 +1,230 @@
- +/*
- + * This program 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.
- + *
- + * This program 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.Q00902_ReclaimOurEra;
- +
- +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.QuestState.QuestType;
- +import com.l2jserver.gameserver.model.quest.State;
- +import com.l2jserver.gameserver.util.Util;
- +
- +/**
- + * Reclaim Our Era (902)
- + * @author Gladicek, lion
- + */
- +public class Q00902_ReclaimOurEra extends Quest
- +{
- + // NPC
- + private static final int MATHIAS = 31340; // Captain Mathias in Rune Castle Town
- +
- + // Quest Items
- + private static final int SHATTERED_BONES = 21997;
- + private static final int STAKATO_LEADER_CLAW = 21998;
- + private static final int ANAIS_SCROLL = 21999;
- +
- + // Reward Items
- + private static final int BLUE_ELMORE_COIN = 21750;
- +
- + // Raid Bosses
- + private static final int[] KETRA_AND_VARKA =
- + {
- + 25309, // Varka's Hero Shadith
- + 25312, // Varka's Commander Mos
- + 25315, // Varka's Chief Horus
- + 25299, // Ketra's Hero Hekaton
- + 25302, // Ketra's Commander Tayr
- + 25305 // Ketra's Chief Brakki
- + };
- +
- + private static final int[] STAKATO_NEST =
- + {
- + 25667, // Cannibalistic Stakato Chief
- + 25668, // Cannibalistic Stakato Chief
- + 25669, // Cannibalistic Stakato Chief
- + 25670 // Cannibalistic Stakato Chief
- + };
- +
- + private static final int ANAIS = 25701;
- +
- + // Misc
- + private static final int MIN_LEVEL = 80;
- +
- + @Override
- + public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
- + {
- + // Check for party, if player have it then reward them too
- + if (player.isInParty())
- + {
- + for (L2PcInstance ply : player.getParty().getMembers())
- + {
- + giveItem(npc, ply);
- + }
- + }
- + // Reward player without party
- + else
- + {
- + giveItem(npc, player);
- + }
- +
- + return super.onKill(npc, player, isPet);
- + }
- +
- + private void giveItem(L2Npc npc, L2PcInstance player)
- + {
- + final QuestState st = player.getQuestState(getName());
- + // If player have quest + is in radius then he can receive item from boss
- + if ((st != null) && (st.isStarted()) && player.isInsideRadius(npc, 2500, false, false))
- + {
- + // Ketra/Varka bosses
- + if (st.isCond(2) && Util.contains(KETRA_AND_VARKA, npc.getNpcId()))
- + {
- + st.giveItems(SHATTERED_BONES, 1);
- + st.setCond(5, true);
- + }
- + // Stakato bosses
- + else if (st.isCond(3) && Util.contains(STAKATO_NEST, npc.getNpcId()))
- + {
- + st.giveItems(STAKATO_LEADER_CLAW, 1);
- + st.setCond(5, true);
- + }
- + // Monastery of Silence boss (Anais)
- + else if (st.isCond(4) && (npc.getNpcId() == ANAIS))
- + {
- + st.giveItems(ANAIS_SCROLL, 1);
- + st.setCond(5, true);
- + }
- + }
- + }
- +
- + @Override
- + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
- + {
- + final QuestState st = player.getQuestState(getName());
- + if (st == null)
- + {
- + return null;
- + }
- +
- + String htmltext = event;
- + if (npc.getNpcId() == MATHIAS)
- + {
- + switch (event)
- + {
- + case "31340-02.htm":
- + case "31340-03.htm":
- + break;
- + case "31340-04.htm":
- + st.startQuest();
- + break;
- + case "31340-06.htm":
- + st.setCond(2, true);
- + break;
- + case "31340-08.htm":
- + st.setCond(3, true);
- + break;
- + case "31340-10.htm":
- + st.setCond(4, true);
- + break;
- + default:
- + htmltext = null;
- + break;
- + }
- + }
- + return htmltext;
- + }
- +
- + @Override
- + public String onTalk(L2Npc npc, L2PcInstance player)
- + {
- + String htmltext = getNoQuestMsg(player);
- + final QuestState st = player.getQuestState(getName());
- + if (st == null)
- + {
- + return htmltext;
- + }
- +
- + switch (st.getState())
- + {
- + case State.CREATED:
- + htmltext = (player.getLevel() >= MIN_LEVEL) ? "31340-01.htm" : "31340-00.htm";
- + break;
- + case State.COMPLETED:
- + htmltext = "31340-completed.htm";
- + break;
- + case State.STARTED:
- + switch (st.getCond())
- + {
- + case 2:
- + htmltext = "31340-07.htm";
- + break;
- + case 3:
- + htmltext = "31340-09.htm";
- + break;
- + case 4:
- + htmltext = "31340-11.htm";
- + break;
- + case 5:
- + boolean finishQuest = false;
- + if (st.hasQuestItems(SHATTERED_BONES))
- + {
- + st.giveAdena(134038, true);
- + finishQuest = true;
- + }
- + else if (st.hasQuestItems(STAKATO_LEADER_CLAW))
- + {
- + st.giveAdena(210119, true);
- + finishQuest = true;
- + }
- + else if (st.hasQuestItems(ANAIS_SCROLL))
- + {
- + st.giveAdena(348155, true);
- + finishQuest = true;
- + }
- +
- + if (finishQuest)
- + {
- + st.giveItems(BLUE_ELMORE_COIN, 1);
- + st.exitQuest(QuestType.DAILY, true);
- + htmltext = "31340-12.htm";
- + }
- + break;
- + default:
- + htmltext = "31340-05.html";
- + break;
- + }
- + break;
- + }
- + return htmltext;
- + }
- +
- + public Q00902_ReclaimOurEra(int questId, String name, String descr)
- + {
- + super(questId, name, descr);
- + addStartNpc(MATHIAS);
- + addTalkId(MATHIAS);
- + addKillId(KETRA_AND_VARKA);
- + addKillId(STAKATO_NEST);
- + addKillId(ANAIS);
- +
- + registerQuestItems(SHATTERED_BONES, STAKATO_LEADER_CLAW, ANAIS_SCROLL);
- + }
- +
- + public static void main(String[] args)
- + {
- + new Q00902_ReclaimOurEra(902, Q00902_ReclaimOurEra.class.getSimpleName(), "Reclaim Our Era");
- + }
- +}
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment