Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
Hum, has the time come? Your name is quite well-known throughout these parts. They say your star is rising, and that we can entrust you with our clan's future. Those that are an a new stage normnally seek new strength. It is time you demonstrated that you are worthy of such expectations.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-02.htm">"I'm ready!"</button>
|
||||
<html><body>Grand Master Brome:<br>
|
||||
This continent is filled with nightmares, with weak creatures meeting their horrible ends. The destiny of the Kamael Clan is bound up with all the living creatures in this land, and we need young people like you need to play your part.<br>
|
||||
I know that you have reached the limit of your strength. My duty is to help you find your path. Will you accept this aid?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-02.htm">"Yes, I'm ready!"</Button>
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
I have been given a divine revelation of a new destiny for all who are qualified to represent the Kamael Clan. I judge you to be qualified in all aspects.<br>
|
||||
Our Kamael Clan is in a dire situation, and we need more candidates like you if we are to redeem ourselves for following the Goddess of Destruction. If you are ready to receive new powers and restore honor to our clan, accept this mission.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-03.htm">"What's the mission?"</button>
|
||||
<html><body>Grand Master Brome:<br>
|
||||
Even the Kamael Clan has limits. However, you need not worry. It is my life's duty to help those like you to find your destiny.<br>
|
||||
First, however, you must face a trial, to ensure that you are ready. Will you accept this challenge?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-03.htm">"What's the challenge?"</Button>
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
You have surely heard of the Seal of Shilen, near to Aden Castle? The Goddess or Destruction has opened her evil eyes, and is strengthening her dark powers. She has already filled that place with evil energy, and her spirits are looking for an opportunity to take over Aden Castle.<br>
|
||||
The Vanguard went to the underground lair where they believe the Spirits are coming from, but nothing has been heard from them in days. We are about to deploy a search team, and we would like you to accept the mission.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-04.htm">"I accept with pride."</button>
|
||||
<html><body>Grand Master Brome:<br>
|
||||
You have heard of Shilen's Seal, near Aden Castle, yes? The Goddess of Destruction has opened her evil eyes, and is strengthening her dark powers. The seal is oozing evil energy, and many new monsters have swarmed out, looking for an opportunity to take over Aden Castle.<br>
|
||||
The Aden Vanguard has gone to the underground lair near the seal to take up the fight, but we haven't heard from them in far too long. We would like you to undertake a search, and, if necessary, a rescue.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-04.htm">"I accept, with pride."</Button>
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
A person of your abilities, I don't doubt that you are well suited for this mission. From here, head toward the Seal of Shilen and the Cemetery, and look for the vanguard near the Evil Incubator. Don't forget that every step you take could change the future of our clan.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-05.html">"Count me in."</button>
|
||||
<html><head><body>Grand Master Brome:<br>
|
||||
Remember, your destiny is blocked until you face this challenge.<br>Go now to Shilen's Seal and find Aden Vanguard. Help them to fulfill their mission.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-05.htm>">"Count me in."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-05.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-05.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
I'll explain the mission again. First, go to Shilen's Seal and find the Vanguard that Aden sent. The quartermaster will probably be waiting for you. Then, help them complete their mission.
|
||||
</body></html>
|
||||
@@ -1,3 +0,0 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
I'll explain again about the mission. First, go to Shilen's Seal and the Cemetary, find the vanguard, and help them. The quartermaster will probably be waiting for you.
|
||||
</body></html>
|
||||
@@ -1,6 +1,3 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
Adolph has told me all about you. You were truly a sight to behold, I see. Well, it's time for you to be granted a new path, perhaps.<br>
|
||||
I'll tell you more if you wish. Otherwise, I have a gift for you.<br>
|
||||
<!-- <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate transfer_info">"Yeah, I do want to know more."</Button> -->
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-07.html">"No no, just give me the stuff, and I'll transfer."</Button>
|
||||
<html><body>Grand Master Brome:<br>
|
||||
I'll explain the mission again. First, go to Shilen's Seal and find the Vanguard that Aden sent. The quartermaster will probably be waiting for you. Then, help them complete their mission.
|
||||
</body></html>
|
||||
@@ -1,4 +1,6 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
So, you are ready? Absolutely sure?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-08.html">"I'm ready."</Button>
|
||||
<html><body>Grand Master Brome:<br>
|
||||
Hardships always test us, but we come out the stronger for them. Well done.<br>
|
||||
Now, let us celebrate your new destiny. Would you like to know more? I also have a gift for you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate nextClassInfo">"Yeah, I do want to know more."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 32221-08.html">"No no, just give me the stuff, and I'll transfer."</Button>
|
||||
</body></html>
|
||||
@@ -1,3 +1,4 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
New destiny will open up your path.
|
||||
<html><body>Grand Master Brome:<br>
|
||||
Are you prepared for your new destiny?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate classTransfer">"I'm ready."</Button>
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
You will walk on the new path of destiny from now on. I will prove it.
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-10.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-10.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Grand Master Brom:<br>
|
||||
To complete this mission, you need to go back to your previous class.
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-11.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-11.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
Are you prepared to take the ordeal of destiny? Look within yourself to find out.<br>
|
||||
(Only level 76+ Berserkers, Soul Breakers, and Arbalesters who have completed the 2nd Class Transfer can take this quest.)
|
||||
</body></html>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-12.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/32221-12.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
There is nothing more I can help you with.<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/33147-01.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/33147-01.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Aden Vanguard Member:<br>
|
||||
Grand Master Oltran sent you to help, right? Great. The Captain ordered me to direct you to the underground crypt when you arrived. The soldiers are already there, battling monsters. Please hurry, they're going to need all the help they can get.<br>
|
||||
Powerful monsters are encamped there right now. So let me teleport you there. Otherwise, it would be too dangerous.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EvilIncubator enterInstance">"I won't keep him waiting."</Button>
|
||||
</body></html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<html><body>Aden Vanguard Member:<br>
|
||||
High priest Orven, sent you to help, right? Great. The Captain ordered me to direct you to the underground crypt when you arrived. The soldiers are already there, battling monsters. Please hurry, they're going to need all the help they can get.<br>
|
||||
Powerfull monsters are encamped there right now. So let me teleport you there. Otherwise, it would be too dangerous.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IncubatorOfEvil enter_instance">"Enter"</button>
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Finally I've been waiting for Aden to send me backup for ages. Captain Adolph and his soldiers all went to the underground Evil Incubator to see about the monsters that have been flooding out of it, and I need help.<br>
|
||||
Can you help?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 33407-02.html">"That's what I'm here for."</button>
|
||||
<html><body>Quartermaster:<br>
|
||||
Finally! I've been waiting for Aden to send me backup for ages. Captain Adolph and his soldiers all went to the underground Evil Incubator to see about the monsters that have been flooding out of it, and I need help.<br>
|
||||
Can you help?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 33407-02.html">"That's what I'm here for."</Button>
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
So many monsters have broken through our lines, Captain Adolph and his men have pushed them back through a valiant fight, but casualties were unavoidable.<br>
|
||||
We must pay the dead the respect of bringing their personal possessions back to their families, but we have no numbers to spare. Please, could you bring back 4 keepsakes from the bodies of Aden Vanguard Members in the Cemetary?<br>
|
||||
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your best bet would be to check the corners or the square guarded by the Grave Guards. It's between the Seal or Shilen and the Cemetary.
|
||||
<html><body>Quartermaster:<br>
|
||||
So many monsters have broken through our lines. Captain Adolph and his men have pushed them back through a valiant fight, but casualties were unavoidable.<br>
|
||||
We must pay the dead the respect of bringing their personal possessions back to their families, but we have no numbers to spare. Please, could you bring back 4 keepsakes from the bodies of Aden Vanguard Members in the Cemetary?<br1>
|
||||
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your best bet would be to check the corners of the square guarded by the Grave Guards. It's between the Seal of Shilen and the Cemetary.
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Many Aden Vanguard Members have died at the Cemetary. Please bring back 4 keepsakes from their bodies.<br>
|
||||
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your be bet would be to check the corners of the square guarded by the Grave Guards. It's between the Seal of Shilen and the Cemetary.
|
||||
<html><body>Quartermaster:<br>
|
||||
Many Aden Vanguard Members have died at the Cemetary. Please bring back 4 keepsakes from their bodies.<br1>
|
||||
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your best bet would be to check the corners of the square guarded by the Grave Guards. It's between the Seal of Shilen and the Cemetary.
|
||||
</body></html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Yes, these are our fallen comrades' dog tags. Thank you. I'm sure the families will appreciate your hard work. Our heroes deserve to be remembered.<br>
|
||||
Now, I don't think there's much else for you to do here. I'm worried about captain Adolph and the soldiers that went ahead to the monsters' base. I'm sure they could use some help there.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 33407-05.html">"I'll find the captain."</button>
|
||||
<html><body>Quartermaster:<br>
|
||||
Yes, these are our fallen comrades' dog tags. Thank you. I'm sure the families will appreciate your hard work. Our heroes deserve to be remembered.<br>
|
||||
Now, I don't think there's much else for you to do here. I'm worried about captain Adolph and the soldiers that went ahead to the monsters' base. I'm sure they could use some help there.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate 33407-05.html">"I'll find the captain."</Button>
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Captain Adolph's team is in the underground crypt near the Cemetery, fighting monsters that resurrected through Shilen. Go and help him if you can. Powerful creatures are blocking the entrance to the crypt, so you'd better teleport through the Aden Vanguard Member standing behind me.<br>
|
||||
Good luck, warrior of Aden.
|
||||
<html><body>Quartermaster:<br>
|
||||
Captain Adolph's team is in the underground crypt near the Cemetery, fighting monsters that resurrected through Shilen. Go and help him if you can. Powerful creatures are blocking the entrance to the crypt, so you'd better teleport through the Aden Vanguard Member standing behind me.<br>
|
||||
Good luck, warrior of Aden.
|
||||
</body></html>
|
||||
@@ -1,329 +1,111 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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.Q10346_DayOfDestinyKamaelsFate;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerLevelChanged;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExQuestNpcLogList;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
|
||||
/**
|
||||
* Day of Destiny: Kamael's Fate (10346)
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q10346_DayOfDestinyKamaelsFate extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int OLTRAN = 32221;
|
||||
private static final int QUARTERMASTER = 33407;
|
||||
private static final int DEAD_SOLDIER_1 = 33166;
|
||||
private static final int DEAD_SOLDIER_2 = 33167;
|
||||
private static final int DEAD_SOLDIER_3 = 33168;
|
||||
private static final int DEAD_SOLDIER_4 = 33169;
|
||||
private static final int VANGUARD_MEMBER = 33165;
|
||||
// Items
|
||||
private static final int DEAD_SOLDIER_TAGS = 17753;
|
||||
// Rewards
|
||||
private static final int STEEL_DOOR_GUILD_COIN = 37045;
|
||||
private static final int M_SOULSHOT_S = 22576;
|
||||
private static final int M_SPIRITSHOT_S = 22607;
|
||||
// Requirement
|
||||
private static final int MIN_LEVEL = 76;
|
||||
|
||||
public Q10346_DayOfDestinyKamaelsFate()
|
||||
{
|
||||
super(10346, Q10346_DayOfDestinyKamaelsFate.class.getSimpleName(), "Day of Destiny: Kamael's Fate");
|
||||
addStartNpc(OLTRAN);
|
||||
addTalkId(OLTRAN, QUARTERMASTER, DEAD_SOLDIER_1, DEAD_SOLDIER_2, DEAD_SOLDIER_3, DEAD_SOLDIER_4, VANGUARD_MEMBER);
|
||||
registerQuestItems(DEAD_SOLDIER_TAGS);
|
||||
addCondMinLevel(MIN_LEVEL, "no_level.html");
|
||||
addCondRace(Race.KAMAEL, "no_race.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "32221-02.htm":
|
||||
case "32221-03.htm":
|
||||
case "32221-04.htm":
|
||||
case "32221-06.html":
|
||||
case "32221-07.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "32221-05.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setCond(2); // arrow hack
|
||||
qs.setCond(1);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33407-02.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "dead_collect.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
if (qs.get("" + npc.getId()) == null)
|
||||
{
|
||||
qs.set("" + npc.getId(), 1);
|
||||
giveItems(player, DEAD_SOLDIER_TAGS, 1);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
|
||||
}
|
||||
final int count = qs.getMemoState() + 1;
|
||||
if (count >= 4)
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
qs.unset("" + DEAD_SOLDIER_1);
|
||||
qs.unset("" + DEAD_SOLDIER_2);
|
||||
qs.unset("" + DEAD_SOLDIER_3);
|
||||
qs.unset("" + DEAD_SOLDIER_4);
|
||||
htmltext = "dead_complete.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
qs.setMemoState(count);
|
||||
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
|
||||
log.addItem(DEAD_SOLDIER_TAGS, count);
|
||||
player.sendPacket(log);
|
||||
htmltext = event;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33407-05.html":
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
takeItems(player, DEAD_SOLDIER_TAGS, -1);
|
||||
qs.setCond(4, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "transfer_info":
|
||||
{
|
||||
if (qs.isCond(13))
|
||||
{
|
||||
switch (player.getClassId().getId())
|
||||
{
|
||||
// TODO: Return detail htmls.
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "32221-08.html":
|
||||
{
|
||||
if (qs.isCond(13))
|
||||
{
|
||||
switch (player.getClassId().getId())
|
||||
{
|
||||
// Berserker -> Doombringer
|
||||
case 127:
|
||||
{
|
||||
player.setBaseClassId(131);
|
||||
player.setClassId(131);
|
||||
break;
|
||||
}
|
||||
// Soul Breaker -> Soul Hound (Male)
|
||||
case 128:
|
||||
{
|
||||
player.setBaseClassId(132);
|
||||
player.setClassId(132);
|
||||
break;
|
||||
}
|
||||
// Soul Breaker -> Soul Hound (Female)
|
||||
case 129:
|
||||
{
|
||||
player.setBaseClassId(133);
|
||||
player.setClassId(133);
|
||||
break;
|
||||
}
|
||||
// Arbalester -> Trickster
|
||||
case 130:
|
||||
{
|
||||
player.setBaseClassId(134);
|
||||
player.setClassId(134);
|
||||
break;
|
||||
}
|
||||
}
|
||||
rewardItems(player, STEEL_DOOR_GUILD_COIN, 87);
|
||||
rewardItems(player, M_SOULSHOT_S, 1);
|
||||
rewardItems(player, M_SPIRITSHOT_S, 1);
|
||||
addExpAndSp(player, 2050000, 0);
|
||||
player.broadcastUserInfo();
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case OLTRAN:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "32221-05.html";
|
||||
}
|
||||
else if (qs.isCond(13))
|
||||
{
|
||||
htmltext = "32221-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case QUARTERMASTER:
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "33407-01.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
htmltext = "33407-03.html";
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
htmltext = "33407-04.html";
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
htmltext = "33407-05.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DEAD_SOLDIER_1:
|
||||
case DEAD_SOLDIER_2:
|
||||
case DEAD_SOLDIER_3:
|
||||
case DEAD_SOLDIER_4:
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
if (qs.get("" + npc.getId()) != null)
|
||||
{
|
||||
htmltext = "dead_collect.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "dead_soldier.html";
|
||||
}
|
||||
}
|
||||
else if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "dead_complete.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case VANGUARD_MEMBER:
|
||||
{
|
||||
if ((qs.getCond() > 3) && (qs.getCond() < 13))
|
||||
{
|
||||
htmltext = "33165-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.CREATED:
|
||||
{
|
||||
if ((npc.getId() == OLTRAN) && !player.isSubClassActive() && !player.isDualClassActive() && (player.getClassId().level() == 2))
|
||||
{
|
||||
htmltext = "32221-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@RegisterEvent(EventType.ON_PLAYER_LEVEL_CHANGED)
|
||||
@RegisterType(ListenerRegisterType.GLOBAL)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
if ((player.getLevel() >= MIN_LEVEL) && (player.getRace() == Race.KAMAEL))
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||
html.setHtml(HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "scripts/quests/Q10346_DayOfDestinyKamaelsFate/announce.html"));
|
||||
player.sendPacket(html);
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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.Q10346_DayOfDestinyKamaelsFate;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
import quests.ThirdClassTransferQuest;
|
||||
|
||||
/**
|
||||
* Day of Destiny: Kamael's Fate (10346)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q10346_DayOfDestinyKamaelsFate extends ThirdClassTransferQuest
|
||||
{
|
||||
// NPC
|
||||
private static final int BROME = 32221;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 76;
|
||||
private static final Race START_RACE = Race.KAMAEL;
|
||||
|
||||
public Q10346_DayOfDestinyKamaelsFate()
|
||||
{
|
||||
super(10346, MIN_LEVEL, START_RACE);
|
||||
addStartNpc(BROME);
|
||||
addTalkId(BROME);
|
||||
addCondMinLevel(MIN_LEVEL, "32221-11.html");
|
||||
addCondRace(START_RACE, "32221-11.html");
|
||||
addCondInCategory(CategoryType.THIRD_CLASS_GROUP, "32221-12.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "32221-02.htm":
|
||||
case "32221-03.htm":
|
||||
case "32221-04.htm":
|
||||
case "32221-08.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "32221-05.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
st.set("STARTED_CLASS", player.getClassId().getId());
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
htmltext = super.onAdvEvent(event, npc, player);
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
if (npc.getId() == BROME)
|
||||
{
|
||||
if (st.getState() == State.CREATED)
|
||||
{
|
||||
htmltext = "32221-01.htm";
|
||||
}
|
||||
else if (st.getState() == State.STARTED)
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "32221-06.html";
|
||||
}
|
||||
else if (st.isCond(13))
|
||||
{
|
||||
htmltext = "32221-07.html";
|
||||
}
|
||||
}
|
||||
}
|
||||
return (!htmltext.equals(getNoQuestMsg(player)) ? htmltext : super.onTalk(npc, player, isSimulated));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<html><body scroll="no">
|
||||
<!-- Decoration Table -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
|
||||
<tr><td>
|
||||
<table border="0" cellpadding="2" cellspacing="0">
|
||||
<tr><td height="12"><!-- Empty Space --></td></tr>
|
||||
<tr><td height="20" align="center"><font style="subtitle">[ Doombringer ]</font></td></tr>
|
||||
<!-- Image -->
|
||||
<tr><td align="center" height="166">
|
||||
<table border="0" cellpadding="6" cellspacing="1">
|
||||
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Kamael.K301_001" width="256" height="150"></td></tr></table>
|
||||
</td></tr>
|
||||
<!-- Description -->
|
||||
<tr><td height="8"><!-- Empty Space --></td></tr>
|
||||
<tr><td align="center">
|
||||
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
|
||||
<font style="subtitle">Characteristics</font><br1>
|
||||
Doombringers' skills may be few, but are enough. Their powerful attacks and buffs pack enough punch to be feared in PvP, and their use of Stun skills to follow with a lethal blow is a sight to behold.<br1>
|
||||
</td></tr></table>
|
||||
<!-- Previous and Next buttons -->
|
||||
<center><table border=0 cellpadding=1 cellspacing=0>
|
||||
<tr><td>
|
||||
<button width=100 height=28 action="bypass -h Q10346_DayOfDestinyKamaelsFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
|
||||
</td></tr>
|
||||
</table></center>
|
||||
</td></tr></table>
|
||||
</td></tr>
|
||||
</table><!-- Decoration Table End -->
|
||||
</body></html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<html><body scroll="no">
|
||||
<!-- Decoration Table -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
|
||||
<tr><td>
|
||||
<table border="0" cellpadding="2" cellspacing="0">
|
||||
<tr><td height="12"><!-- Empty Space --></td></tr>
|
||||
<tr><td height="20" align="center"><font style="subtitle">[ Soul Hound ]</font></td></tr>
|
||||
<!-- Image -->
|
||||
<tr><td align="center" height="166">
|
||||
<table border="0" cellpadding="6" cellspacing="1">
|
||||
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Kamael.K304_001" width="256" height="150"></td></tr></table>
|
||||
</td></tr>
|
||||
<!-- Description -->
|
||||
<tr><td height="8"><!-- Empty Space --></td></tr>
|
||||
<tr><td align="center">
|
||||
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
|
||||
<font style="subtitle">Characteristics</font><br1>
|
||||
Soul Hounds' many ranged attacks and self-defense skills provide great endurance in battle. Though their magic damage is lower than others, their dogged attacks including the physical and the magical wear down an unsuspecting enemy.<br1>
|
||||
</td></tr></table>
|
||||
<!-- Previous and Next buttons -->
|
||||
<center><table border=0 cellpadding=1 cellspacing=0>
|
||||
<tr><td>
|
||||
<button width=100 height=28 action="bypass -h Q10346_DayOfDestinyKamaelsFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
|
||||
</td></tr>
|
||||
</table></center>
|
||||
</td></tr></table>
|
||||
</td></tr>
|
||||
</table><!-- Decoration Table End -->
|
||||
</body></html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<html><body scroll="no">
|
||||
<!-- Decoration Table -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
|
||||
<tr><td>
|
||||
<table border="0" cellpadding="2" cellspacing="0">
|
||||
<tr><td height="12"><!-- Empty Space --></td></tr>
|
||||
<tr><td height="20" align="center"><font style="subtitle">[ Soul Hound ]</font></td></tr>
|
||||
<!-- Image -->
|
||||
<tr><td align="center" height="166">
|
||||
<table border="0" cellpadding="6" cellspacing="1">
|
||||
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Kamael.K302_001" width="256" height="150"></td></tr></table>
|
||||
</td></tr>
|
||||
<!-- Description -->
|
||||
<tr><td height="8"><!-- Empty Space --></td></tr>
|
||||
<tr><td align="center">
|
||||
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
|
||||
<font style="subtitle">Characteristics</font><br1>
|
||||
Soul Hounds' many ranged attacks and self-defense skills provide great endurance in battle. Though their magic damage is lower than others, their dogged attacks including the physical and the magical wear down an unsuspecting enemy.<br1>
|
||||
</td></tr></table>
|
||||
<!-- Previous and Next buttons -->
|
||||
<center><table border=0 cellpadding=1 cellspacing=0>
|
||||
<tr><td>
|
||||
<button width=100 height=28 action="bypass -h Q10346_DayOfDestinyKamaelsFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
|
||||
</td></tr>
|
||||
</table></center>
|
||||
</td></tr></table>
|
||||
</td></tr>
|
||||
</table><!-- Decoration Table End -->
|
||||
</body></html>
|
||||
@@ -1,3 +0,0 @@
|
||||
<html><body>I don't talk to youngsters. Come back when you've grown up a bit more.<br>
|
||||
(This quest can only be taken by a character of level 76 or above.)
|
||||
</body></html>
|
||||
@@ -1 +0,0 @@
|
||||
<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><body>Grand Master Brome:<br>
|
||||
So the Goddess of Death has opened her malicious eyes, at last. Shilen's vile creatures are rampaging all over Aden Castle. I heard a vanguard force from Aden Castle set out to eradicate those monsters and found an underground lair near the <font color="LEVEL">Seal of Shilen</font>. But the problem is that we haven't heard anything from them since then. So we're arranging to send a search party after them, and I hope you who of renown could help us with this mission. If you do, I'll help you gain greater powers.<br>
|
||||
I shall be waiting for you in the <font color="LEVEL">Kamael Guild</font> in the <font color="LEVEL">Town of Aden</font>. Do not be led astray from your fated duty.<br>
|
||||
(When your level is <font color="LEVEL">76</font> or higher, you can complete the <font color="LEVEL">third class transfer</font>)<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate close_window">Close Window.</Button>
|
||||
<html><body>Grand Master Brome:<br>
|
||||
So the Goddess of Death has opened her malicious eyes, at last. Shilen's vile creatures are rampaging all over Aden Castle. I heard a vanguard force from Aden Castle set out to eradicate those monsters and found an underground lair near the <font color="LEVEL">Seal of Shilen</font>. But the problem is that we haven't heard anything from them since then. So we're arranging to send a search party after them, and I hope you who of renown could help us with this mission. If you do, I'll help you gain greater powers.<br>
|
||||
I shall be waiting for you in the <font color="LEVEL">Kamael Guild</font> in the <font color="LEVEL">Town of Aden</font>. Do not be led astray from your fated duty.<br>
|
||||
(When your level is <font color="LEVEL">76</font> or higher, you can complete the <font color="LEVEL">third class transfer</font>)<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close Window.</Button>
|
||||
</body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<html><body>Aden Vanguard Corpse:<br>
|
||||
(It looks like this is one of the fallen soldiers the Vanguard quartermaster was talking about.)<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate dead_collect.html">Collect his belongings</button>
|
||||
<html><body>Aden Vanguard Corpse:<br>
|
||||
(It looks like this is one of the fallen soldiers the Vanguard Quartermaster was talking about.)<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10346_DayOfDestinyKamaelsFate collectTag">Collect his belongings</Button>
|
||||
</body></html>
|
||||
@@ -1,3 +1,3 @@
|
||||
<html><body>Aden Vanguard Corpse:<br>
|
||||
(You collected the dog tag from this soldier.)
|
||||
<html><body>Aden Vanguard Corpse:<br>
|
||||
(You collected the dog tag from this soldier.)
|
||||
</body></html>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/vanguard-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10346_DayOfDestinyKamaelsFate/vanguard-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Aden Vanguard Corpse 1:<br>
|
||||
Already collected.
|
||||
</body></html>
|
||||
@@ -1,3 +1,3 @@
|
||||
<html><body>Aden Vanguard Corpse:<br>
|
||||
(You collected a dog tag from the corpse. You now have all you need and can return to the Aden Supplier.)
|
||||
<html><body>Aden Vanguard Corpse:<br>
|
||||
(You collected a dog tag from the corpse. You now have all you need and can return to the Aden Supplier.)
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user