Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245098 additions and 2892944 deletions
@@ -0,0 +1,6 @@
<html><body>Jinia:<br>
We must be prepared before confronting Freya. As the winter cold swells around the castle, she becomes even stronger. We can use blitz tactics and strike her before her power matures fully. Then again, if we wait until she is at full strength, I'm sure the reward will be greater. I leave the choice to you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-06.html">Challenge Freya.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-07.html">Challenge Freya in the extreme cold.</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>
@@ -0,0 +1,5 @@
<html><body>Jinia:<br>
This place is so cold I can't feel my nose. I'm sure it's so red, I could lead a pack of flying reindeer.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia check">"We need a way to stop Freya."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-05.html">"We're ready now."</Button>
</body></html>
@@ -0,0 +1,3 @@
<html><body>Jinia:<br>
Remember, Sirra gave us the Frozen Core. They should be power enough.
</body></html>
@@ -0,0 +1,3 @@
<html><body>Jinia:<br>
It's a piece of Frozen Core. But even you might not be able to derive all of its power. Whatever happens be careful, you won't be able to use it very often.
</body></html>
@@ -0,0 +1,5 @@
<html><body>Jinia:<br>
We must be prepared before confronting Freya. As the winter cold swells around the castle, she becomes even stronger. We can use blitz tactics and strike her before her power matures fully. Then again, if we wait until she is at full strength, I'm sure the reward will be greater. I leave the choice to you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-06.html">Challenge Freya.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-07.html">Challenge Freya in the extreme cold.</Button>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
Be careful. Should anything happen, we'll try to help you.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IceQueensCastleBattle enterEasy">"Thanks, Jinia."</Button>
</body></html>
@@ -0,0 +1,5 @@
<html><body>Jinia:<br>
Her power is without equal. She truly is a frozen goddess. Are you sure you're ready?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IceQueensCastleBattle enterHardcore">"It's now or never."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-08.html">"Perhaps I'll think again."</Button>
</body></html>
@@ -0,0 +1,3 @@
<html><body>Jinia:<br>
Alright, waking her is not something you can simply undo. Let me know when you're ready.
</body></html>
@@ -0,0 +1,4 @@
<html><body>Jinia:<br>
You're here! I've been waiting for you. All our preparations are complete. Shall we depart?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-10.html">"Yes, I'm ready."</Button>
</body></html>
@@ -0,0 +1,5 @@
<html><body>Jinia:<br>
Alright, we'll depart now. Keep those nerves of steel!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest IceQueensCastleBattle enterEasy">Enter the Ice Queen's Castle.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Jinia 32781-11.html">"Wait a moment, I'm not ready."</Button>
</body></html>
@@ -0,0 +1,3 @@
<html><body>Jinia:<br>
Alright, understood. Preparations must be thorough. Just let me know when you're ready to go.
</body></html>
@@ -0,0 +1,106 @@
/*
* 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 ai.areas.FreyasGarden.Jinia;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.QuestState;
import ai.AbstractNpcAI;
import quests.Q10286_ReunionWithSirra.Q10286_ReunionWithSirra;
/**
* Jinia AI.
* @author Adry_85
*/
public final class Jinia extends AbstractNpcAI
{
// NPC
private static final int JINIA = 32781;
// Items
private static final int FROZEN_CORE = 15469;
private static final int BLACK_FROZEN_CORE = 15470;
// Misc
private static final int MIN_LEVEL = 82;
private Jinia()
{
addStartNpc(JINIA);
addFirstTalkId(JINIA);
addTalkId(JINIA);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
switch (event)
{
case "32781-10.html":
case "32781-11.html":
{
htmltext = event;
break;
}
case "check":
{
if (hasAtLeastOneQuestItem(player, FROZEN_CORE, BLACK_FROZEN_CORE))
{
htmltext = "32781-03.html";
}
else
{
final QuestState qs = player.getQuestState(Q10286_ReunionWithSirra.class.getSimpleName());
if ((qs != null) && qs.isCompleted())
{
giveItems(player, FROZEN_CORE, 1);
}
else
{
giveItems(player, BLACK_FROZEN_CORE, 1);
}
htmltext = "32781-04.html";
}
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = player.getQuestState(Q10286_ReunionWithSirra.class.getSimpleName());
if ((qs != null) && (player.getLevel() >= MIN_LEVEL))
{
if (qs.isCond(5) || qs.isCond(6))
{
return "32781-09.html";
}
else if (qs.isCond(7))
{
return "32781-01.html";
}
}
return "32781-02.html";
}
public static void main(String[] args)
{
new Jinia();
}
}
@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
This is the way to the Ice Queen's Throne room, where she awaits. As I've told you, Freya is powerful beyond all comprehension and can destroy you with a mere thought. I keep telling other would-be heroes this, but they keep going anyway. It's actually getting rather fun. But I'm SURE you're different than they were! You shall succeed where they failed. Hahahaha...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IceQueensCastleBattle openDoor">Open door</Button>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
Beyond this door the Ice Queen Freya is making ice sculptures from foolish adventurers. You're not trying to join them, are you? Tsk tsk. The smart ones run screaming about now.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IceQueensCastleBattle portInside">I will go in.</Button>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
This is the way to the Ice Queen's Throne room, where she awaits. As I've told you, Freya is powerful beyond all comprehension and can destroy you with a mere thought. I keep telling other would-be heroes this, but they keep going anyway. It's actually getting rather fun. But I'm SURE you're different than they were! You shall succeed where they failed. Hahahaha...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IceQueensCastleBattle openDoor">Open door</Button>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
Beyond this door the Ice Queen Freya is making ice sculptures from foolish adventurers. You're not trying to join them, are you? Tsk tsk. The smart ones run screaming about now.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IceQueensCastleBattle portInside">I will go in.</Button>
</body></html>
@@ -0,0 +1,4 @@
<html><body>Sirra:<br>
I'm the great Sirra, Master Elven Magician and chamberlain to her majesty, the Ice Queen Freya. Some call me the Ice Fairy. No doubt you've heard of me.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>
@@ -0,0 +1,64 @@
/*
* 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 ai.areas.FreyasGarden.Sirra;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.instancezone.Instance;
import ai.AbstractNpcAI;
/**
* Sirra AI.
* @author St3eT
*/
public final class Sirra extends AbstractNpcAI
{
// NPC
private static final int SIRRA = 32762;
// Misc
private static final int FREYA_INSTID = 139;
private static final int FREYA_HARD_INSTID = 144;
private Sirra()
{
addFirstTalkId(SIRRA);
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
final Instance world = npc.getInstanceWorld();
if (world != null)
{
if ((world.getTemplateId() == FREYA_INSTID))
{
return (world.isStatus(0)) ? "32762-easy.html" : "32762-easyfight.html";
}
else if ((world.getTemplateId() == FREYA_HARD_INSTID))
{
return (world.isStatus(0)) ? "32762-hard.html" : "32762-hardfight.html";
}
}
return "32762.html";
}
public static void main(String[] args)
{
new Sirra();
}
}