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 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Master Katalin:<br>
Surviving in all kinds of circumstances. That's my philosophy.<br>
(Quest only available for Ertheia characters Lv. 4 to 20 who have completed the quest "Do or Die.")
</body></html>

View File

@@ -1,6 +1,6 @@
<html><head><body>Master Katalin:<br>
Now, we will go to a specially designed Training Camp for a real combat training. There are fake monsters in the Training Camp to simulate a real-life training for you.<br>
I will be with you, so it won't be dangerous. You can ease up.<br>
Shall we begin?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10736_ASpecialPower 33943-02.html">"Sure."</Button>
<html><body>Master Katalin:<br>
Now, we will go to a specially designed Training Camp for a real combat training. There are fake monsters in the Training Camp to simulate a real-life training for you.<br>
I will be with you, so it won't be dangerous. You can ease up.<br>
Shall we begin?<br>
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10736_ASpecialPower 33943-02.htm">"Sure."</button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><head><body>Master Katalin:<br>
Good! Let's get started!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FaeronTrainingGrounds2 enter_instance">"Here we go."</Button>
<html><body>Master Katalin:<br>
Good! Let's get started!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FaeronTrainingGrounds2 enter_instance">"Here we go."</button>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><head><body>Master Katalin:<br>
I can feel a more powerful warrior's aura than when you entered.<br>
You can now leave the town after getting a few things.
<html><body>Master Katalin:<br>
It's not a good habit to leave while training. You need to focus when you're back in there.<br>
Are you ready?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FaeronTrainingGrounds2 enter_instance">"I'm ready."</button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><head><body>Master Katalin:<br>
It's not a good habit to leave while training. You need to focus when you're back in there.<br>
Are you ready<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FaeronTrainingGrounds2 enter_instance">"I'm ready"</Button>
<html><body>Master Katalin:<br>
It's not a good habit to leave while training. You need to focus when you're back in there.<br>
Are you ready?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FaeronTrainingGrounds2 enter_instance">"I'm ready."</button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Master Katalin:<br>
I can feel a more powerful warrior's aura than when you entered.<br>
You can now leave the town after getting a few things.
</body></html>

View File

@@ -1,4 +0,0 @@
<html><head><body>Master Katalin:<br>
The monsters are here.<br>
Stay focused in battle and take care not to get hurt.
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Master Katalin:<br>
Focus on your battle!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10736_ASpecialPower 33945-03.html">"More monsters please."</Button>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><head><body>Master Katalin:<br>
It's good to see you train hard.<br>
But for your safety, there's a limit to the number of monsters at once.
</body></html>

View File

@@ -1,7 +0,0 @@
<html><head><body>Master Katalin:<br>
Different from the Training Dummies?<br>
Take these <font color="LEVEL">Soulshots</font>. They have no grade, but as you get stronger and get better weapons, you can use Grade D, C, B, A, S, S-80, and eventually R. It's very important in the Material Realm.<br>
<font color="LEVEL">Activate Soulshots</font>.<br>
I will prepare the next set of monsters. Tell me when you have activated the Soulshots.<br>
(How to Enable Auto-Use Soulshot or Spiritshot: Open your <font color="LEVEL">Inventory. Click and Drag</font> Soulshot/Spiritshot into your Shortcut Bar. Right Click the Soulshot/Spiritshot Shortcut Icon to use it automatically.)
</body></html>

View File

@@ -1,3 +0,0 @@
<html><head><body>Master Katalin:<br>
Okay, here we go again.
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Master Katalin:<br>
Do you know what just happened? You were able to use a lot of abilities when you were in the Wind Spirit Realm. But as you came through the Dimensional Rift, your abilities were locked.<br>
But you just unlocked one of those abilities. They call them <font color="LEVEL">Skills</font> here.<br>
As you train more, you will be able to get more skills back.<br>
Shall we fight a more powerfull enemy with your new skill?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10736_ASpecialPower 33945-07.html">"Okay."</Button>
</body></html>

View File

@@ -1,3 +0,0 @@
<html><body>Master Katalin:<br>
This battle won't be easy without your <font color="LEVEL">Skills</font>!<br>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>Master Katalin:<br>
Good work! I am proud of you.<br>
We're done. Let's get out.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FaeronTrainingGrounds2 exit_instance">"Okay."</Button>
</body></html>

View File

@@ -1,268 +1,155 @@
/*
* 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.Q10736_ASpecialPower;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.base.ClassId;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
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.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import quests.Q10734_DoOrDie.Q10734_DoOrDie;
/**
* @author Sdw
*/
public class Q10736_ASpecialPower extends Quest
{
// NPC's
private static final int KATALIN = 33943;
private static final int KATALIN_2 = 33945;
private static final int FLOATO = 27526;
private static final int RATEL = 27527;
// Misc
private static final int MIN_LEVEL = 4;
private static final int MAX_LEVEL = 20;
// Items
private static final ItemHolder SOULSHOTS_TRAINING = new ItemHolder(1835, 150);
private static final ItemHolder SOULSHOTS_REWARD = new ItemHolder(1835, 500);
// Locations
private static final Location MOB_1 = new Location(-75112, 240760, -3615);
private static final Location MOB_2 = new Location(-75016, 240456, -3628);
private static final int KILL_COUNT_ID = 0;
public Q10736_ASpecialPower()
{
super(10735, Q10736_ASpecialPower.class.getSimpleName(), "A Special Power");
addStartNpc(KATALIN);
addTalkId(KATALIN, KATALIN_2);
addKillId(FLOATO, RATEL);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_quest.html");
addCondRace(Race.ERTHEIA, "no_quest.html");
addCondClassId(ClassId.ERTHEIA_FIGHTER, "no_quest.html");
addCondCompletedQuest(Q10734_DoOrDie.class.getSimpleName(), "no_quest.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 "33943-02.html":
{
qs.startQuest();
htmltext = event;
break;
}
case "33945-03.html":
{
htmltext = event;
showOnScreenMsg(player, NpcStringId.ATTACK_THE_MONSTER, ExShowScreenMessage.TOP_CENTER, 4500);
break;
}
case "showscreen_1":
{
showOnScreenMsg(player, NpcStringId.AUTOMATE_SOULSHOT_AS_SHOWN_IN_THE_TUTORIAL, ExShowScreenMessage.TOP_CENTER, 4500);
break;
}
case "33945-07.html":
{
if (qs.isCond(5))
{
qs.setCond(6);
showOnScreenMsg(player, NpcStringId.FIGHT_USING_SKILLS, ExShowScreenMessage.TOP_CENTER, 4500);
addSpawn(RATEL, MOB_1, false, 0, false, player.getInstanceId());
addSpawn(RATEL, MOB_2, false, 0, false, player.getInstanceId());
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = qs.isCompleted() ? getAlreadyCompletedMsg(player) : getNoQuestMsg(player);
switch (npc.getId())
{
case KATALIN:
{
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "33943-01.htm";
break;
}
case State.STARTED:
{
switch (qs.getCond())
{
case 1:
{
htmltext = "33943-02.html";
break;
}
case 2:
case 3:
case 4:
case 5:
case 6:
{
htmltext = "33943-04.html";
break;
}
case 7:
{
htmltext = "33943-03.html";
giveAdena(player, 900, true);
rewardItems(player, SOULSHOTS_REWARD);
addExpAndSp(player, 3154, 0);
qs.exitQuest(false, true);
break;
}
}
break;
}
}
break;
}
case KATALIN_2:
{
switch (qs.getCond())
{
case 1:
{
showOnScreenMsg(player, NpcStringId.ATTACK_THE_MONSTER, ExShowScreenMessage.TOP_CENTER, 4500);
qs.setCond(2, true);
addSpawn(FLOATO, MOB_1, false, 0, false, player.getInstanceId());
addSpawn(FLOATO, MOB_2, false, 0, false, player.getInstanceId());
htmltext = "33945-01.html";
break;
}
case 2:
case 4:
case 6:
{
htmltext = "33945-02.html";
break;
}
case 3:
{
if (qs.getInt("ss") == 1)
{
addSpawn(FLOATO, MOB_1, false, 0, false, player.getInstanceId());
addSpawn(FLOATO, MOB_2, false, 0, false, player.getInstanceId());
showOnScreenMsg(player, NpcStringId.ATTACK_THE_MONSTER, ExShowScreenMessage.TOP_CENTER, 4500);
htmltext = "33945-05.html";
qs.setCond(4, true);
}
else
{
giveItems(player, SOULSHOTS_TRAINING);
showOnScreenMsg(player, NpcStringId.SOULSHOT_HAVE_BEEN_ADDED_TO_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500);
startQuestTimer("showscreen_1", 4500, npc, player);
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_003_bullet_01.htm", TutorialShowHtml.LARGE_WINDOW));
htmltext = "33945-04.html";
qs.set("ss", 1);
}
break;
}
case 5:
{
htmltext = "33945-06.html";
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_004_skill_01.htm", TutorialShowHtml.LARGE_WINDOW));
break;
}
case 7:
{
htmltext = "33945-08.html";
break;
}
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs != null)
{
final int cond = qs.getCond();
if (npc.getId() == FLOATO)
{
if ((cond == 2) || (cond == 4))
{
final int value = qs.getMemoStateEx(KILL_COUNT_ID) + 1;
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (value >= 2)
{
qs.setCond(cond + 1, true);
qs.setMemoStateEx(KILL_COUNT_ID, 0);
}
else
{
qs.setMemoStateEx(KILL_COUNT_ID, value);
}
}
}
else if ((npc.getId() == RATEL) && (cond == 6))
{
final int value = qs.getMemoStateEx(KILL_COUNT_ID) + 1;
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (value >= 2)
{
qs.setCond(cond + 1, true);
qs.setMemoStateEx(KILL_COUNT_ID, 0);
showOnScreenMsg(killer, NpcStringId.TALK_TO_AYANTHE_TO_LEAVE_THE_TRAINING_GROUNDS, ExShowScreenMessage.TOP_CENTER, 4500);
}
else
{
qs.setMemoStateEx(KILL_COUNT_ID, value);
}
}
}
return super.onKill(npc, killer, isSummon);
}
}
/*
* 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.Q10736_ASpecialPower;
import java.util.HashSet;
import java.util.Set;
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.base.ClassId;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
import com.l2jmobius.gameserver.model.holders.NpcLogListHolder;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import quests.Q10734_DoOrDie.Q10734_DoOrDie;
/**
* A Special Power (10736)
* @author Sdw
*/
public final class Q10736_ASpecialPower extends Quest
{
// NPC
private static final int KATALIN = 33943;
// Monsters
private static final int FLOATO = 27526;
private static final int FLOATO2 = 27531;
private static final int RATEL = 27527;
// Items
private static final ItemHolder SOULSHOTS_REWARD = new ItemHolder(1835, 500);
// Misc
private static final int MIN_LEVEL = 4;
private static final int MAX_LEVEL = 20;
public static final int KILL_COUNT_VAR = 0;
public Q10736_ASpecialPower()
{
super(10735);
addStartNpc(KATALIN);
addTalkId(KATALIN);
addCondRace(Race.ERTHEIA, "");
addCondClassId(ClassId.ERTHEIA_FIGHTER, "");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33943-00.htm");
addCondCompletedQuest(Q10734_DoOrDie.class.getSimpleName(), "33943-00.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && event.equals("33943-02.htm"))
{
qs.startQuest();
return event;
}
return null;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
htmltext = "33943-01.htm";
break;
case State.STARTED:
{
switch (qs.getCond())
{
case 1:
{
htmltext = "33943-03.html";
break;
}
case 2:
case 3:
case 4:
case 5:
case 6:
{
htmltext = "33943-04.html";
break;
}
case 7:
{
if (!isSimulated)
{
giveAdena(player, 900, true);
rewardItems(player, SOULSHOTS_REWARD);
addExpAndSp(player, 3154, 0);
qs.exitQuest(false, true);
}
htmltext = "33943-05.html";
break;
}
}
break;
}
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
return htmltext;
}
@Override
public Set<NpcLogListHolder> getNpcLogList(L2PcInstance player)
{
final Set<NpcLogListHolder> holder = new HashSet<>();
final QuestState qs = getQuestState(player, false);
if (qs != null)
{
int npcId = -1;
switch (qs.getCond())
{
case 2:
npcId = FLOATO;
break;
case 4:
npcId = FLOATO2;
break;
case 6:
npcId = RATEL;
break;
}
if (npcId != -1)
{
holder.add(new NpcLogListHolder(npcId, false, qs.getMemoStateEx(KILL_COUNT_VAR)));
}
}
return holder;
}
}

View File

@@ -1 +0,0 @@
<html><body>You either don't meet this NPC's minimum quest requirements, or your level is too low to start this quest.</body></html>