This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<html><body>Shannon:<br>
You're back already? Hmm... good.<br>
I hear you're strong and resilent, but are lacking somewhat in the more technical skills. Flair will bedazzle your opponents, friend.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10324_FindingMagisterGallint 32974-02.htm">"Can you teach me?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Shannon:<br>
We can only take on so many tasks, friend!<br>
(Only characters below level 20 who have already completed the "Effect of the Mysterious Power" quest, may start this quest)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Shannon:<br>
Can I? No, but I know who can.<br>
I will introduce you to a teacher, if you're willing to learn.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10324_FindingMagisterGallint 32974-03.htm">"I am!"</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Shannon:<br>
Enthusiasm! Good! You should go find <font color="LEVEL">Gallint</font> near the <font color="LEVEL">Administration Office</font> ! He'll teach you everything you need to know.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Shannon:<br>
What is it? Why are you still here?
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Shannon:<br>
Don't be so smug! You've only learnt a few skills!<br>
(You have already completed this quest)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Gallint:<br>
I'm very busy! I haven't gotten a single day's rest since I was dropped off on Talking Island! Why did you come?
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10324_FindingMagisterGallint 32980-02.html">"Shannon told me about you."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Gallint:<br>
Shannon? I taught her her skills many years ago, until she left to be taught by others.<br>
Look, I just don't have time to talk to you about these things - we're rebuilding Talking Island Village. You should come back soon though - can teach you skills once my work is done.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Gallint:<br>
What are you doing here?<br>
(This quest has already been completed)
</body></html>

View File

@@ -0,0 +1,124 @@
/*
* 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.Q10324_FindingMagisterGallint;
import quests.Q10323_TrainLikeItsReal.Q10323_TrainLikeItsReal;
import com.l2jserver.gameserver.enums.Race;
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.network.serverpackets.TutorialShowHtml;
/**
* Finding Magister Gallint (10324)
* @author ivantotov
*/
public final class Q10324_FindingMagisterGallint extends Quest
{
// NPCs
private static final int SHANNON = 32974;
private static final int GALLINT = 32980;
// Misc
private static final int MAX_LEVEL = 20;
public Q10324_FindingMagisterGallint()
{
super(10324, Q10324_FindingMagisterGallint.class.getSimpleName(), "Finding Magister Gallint");
addStartNpc(SHANNON);
addTalkId(SHANNON, GALLINT);
addCondMaxLevel(MAX_LEVEL, "32974-01a.htm");
addCondNotRace(Race.ERTHEIA, "32974-01a.htm");
addCondCompletedQuest(Q10323_TrainLikeItsReal.class.getSimpleName(), "32974-01a.htm");
}
@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 "32974-03.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "32974-02.htm":
{
htmltext = event;
break;
}
case "32980-02.html":
{
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_004_skill_01.htm", TutorialShowHtml.LARGE_WINDOW));
giveAdena(player, 110, true);
addExpAndSp(player, 3100, 5);
qs.exitQuest(false, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isCreated())
{
if (npc.getId() == SHANNON)
{
htmltext = "32974-01.htm";
}
}
else if (qs.isStarted())
{
if (npc.getId() == SHANNON)
{
htmltext = "32974-04.html";
}
else if (npc.getId() == GALLINT)
{
htmltext = "32980-01.html";
}
}
else if (qs.isCompleted())
{
if (npc.getId() == SHANNON)
{
htmltext = "32974-05.html";
}
else if (npc.getId() == GALLINT)
{
htmltext = "32980-03.html";
}
}
return htmltext;
}
}