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

@@ -1,6 +1,6 @@
<html><body>High Prefect Drikus:<br>
Oh no! The orb! It's broken!<br>
This is the orb of ancestors that Dudamara's totem told me about! It was stolen by lesser Orcs a very long time ago.<br>
Does it belong to you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30505-02.html">"I'm not sure."</Button>
<html><body>High Prefect Drikus:<br>
Oh no! The orb! It's broken!<br>
This is the orb of ancestors that Dudamara's totem told me about! It was stolen by lesser Orcs a very long time ago.<br>
Does it belong to you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30505-02.html">"I'm not sure."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>High Prefect Drikus:<br>
Hmm... You sound doubtful! Obviously, this is the property of the Orcs! Only we are qualified to possess it!<br>
Tell this to whoever is competing with you for it! Once its ownership is decided, come back and talk to me.
<html><body>High Prefect Drikus:<br>
Hmm... You sound doubtful! Obviously, this is the property of the Orcs! Only we are qualified to possess it!<br>
Tell this to whoever is competing with you for it! Once its ownership is decided, come back and talk to me.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>High Prefect Drikus:<br>
When you decide who the owner is, send him to me.
<html><body>High Prefect Drikus:<br>
When you decide who the owner is, send him to me.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>High Prefect Drikus:<br>
Determine the owner. He must come to me alone.
<html><body>High Prefect Drikus:<br>
Determine the owner. He must come to me alone.
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Pet Manager Lundy:<br>
This stuff drives me crazy! What was he thinking?<br>
Hey, buddy, can I talk to you for a minute?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-01.htm">"Sure."</Button>
<html><body>Pet Manager Lundy:<br>
This stuff drives me crazy! What was he thinking?<br>
Hey, buddy, can I talk to you for a minute?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-01.htm">"Sure."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
Hmm, well, never mind. I was going to ask you for a favor, but on second thought, you're too young. Come back when you're older.<br>
(This quest may only be undertaken by characters of level 24 or above.)
<html><body>Pet Manager Lundy:<br>
Hmm, well, never mind. I was going to ask you for a favor, but on second thought, you're too young. Come back when you're older.<br>
(This quest may only be undertaken by characters of level 24 or above.)
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Pet Manager Lundy:<br>
Great! Will you do me a favor? I need a <font color="LEVEL">Work Hammer</font> immediately! I could buy one in any store around here, but I don't have the money!
<html><body>Pet Manager Lundy:<br>
Great! Will you do me a favor? I need a <font color="LEVEL">Work Hammer</font> immediately! I could buy one in any store around here, but I don't have the money!
</body></html>

View File

@@ -1,7 +1,7 @@
<html><body>Pet Manager Lundy:<br>
Is this Work Hammer for me? Thank you! You will be blessed!<br>
What? Money? I don't have any, silly!<br>
By the way, I need another favor! My son went to Talking Island seeking adventure! He'll be graduating soon, and I want to send him this Work Hammer as a graduation present.<br>
But there are some fearsome bandits laying in wait around here. You must kill them! <font color="LEVEL">Of course, I'll still need the Work Hammer.</font><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-03.html">"I'll do it."</Button>
<html><body>Pet Manager Lundy:<br>
Is this Work Hammer for me? Thank you! You will be blessed!<br>
What? Money? I don't have any, silly!<br>
By the way, I need another favor! My son went to Talking Island seeking adventure! He'll be graduating soon, and I want to send him this Work Hammer as a graduation present.<br>
But there are some fearsome bandits laying in wait around here. You must kill them! <font color="LEVEL">Of course, I'll still need the Work Hammer.</font><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-03.html">"I'll do it."</Button>
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Pet Manager Lundy:<br>
Please be a sport and bring me a Work Hammer! Think of it as charity!
<html><body>Pet Manager Lundy:<br>
Please be a sport and bring me a Work Hammer! Think of it as charity!
</body></html>

View File

@@ -1,6 +1,6 @@
<html><body>Pet Manager Lundy:<br>
Thank you! You are so generous!<br>
There are Maille Lizardmen around here. They always try to steal the things going out from this town.<br>
Wouldn't you be upset if your generosity, the Work Hammer, could not reach Talking Island because it was stolen by thieves?<br>
So, please take the Maille Lizardmen down. I would be grateful if you could take out the <font color="LEVEL">Maille Lizardman Guards, Maille Lizardman Scouts, and Maille Lizardmen</font>. Defeat 30 of them.
<html><body>Pet Manager Lundy:<br>
Thank you! You are so generous!<br>
There are Maille Lizardmen around here. They always try to steal the things going out from this town.<br>
Wouldn't you be upset if your generosity, the Work Hammer, could not reach Talking Island because it was stolen by thieves?<br>
So, please take the Maille Lizardmen down. I would be grateful if you could take out the <font color="LEVEL">Maille Lizardman Guards, Maille Lizardman Scouts, and Maille Lizardmen</font>. Defeat 30 of them.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Pet Manager Lundy:<br>
Do you think the hammer is too valuable? Then, that's OK. Let's talk about it next time.
<html><body>Pet Manager Lundy:<br>
Do you think the hammer is too valuable? Then, that's OK. Let's talk about it next time.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Pet Manager Lundy:<br>
You haven't destroyed 30 Maille Lizardmen yet, have you?
<html><body>Pet Manager Lundy:<br>
You haven't destroyed 30 Maille Lizardmen yet, have you?
</body></html>

View File

@@ -1,7 +1,7 @@
<html><body>Pet Manager Lundy:<br>
You defeated them! Good job!<br>
By the way, what are those shiny things? Wow, can I see one?<br>
Hmm... It looks like a head. What if we put it together?<br>
Like so...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-06.html">"Hm..."</Button>
<html><body>Pet Manager Lundy:<br>
You defeated them! Good job!<br>
By the way, what are those shiny things? Wow, can I see one?<br>
Hmm... It looks like a head. What if we put it together?<br>
Like so...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-06.html">"Hm..."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
Hmm... What misterious beads! I heard that Drikus is collecting things like this.<br>
I shined them up a bit. Would you take them and investigate?
<html><body>Pet Manager Lundy:<br>
Hmm... What misterious beads! I heard that Drikus is collecting things like this.<br>
I shined them up a bit. Would you take them and investigate?
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Pet Manager Lundy:<br>
Hmmm...? Where is the bead? Did you see it?
<html><body>Pet Manager Lundy:<br>
Hmmm...? Where is the bead? Did you see it?
<body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Pet Manager Lundy:<br>
What did High Prefect Drikus say?<br>
Why haven't you seen him yet! Go!
<html><body>Pet Manager Lundy:<br>
What did High Prefect Drikus say?<br>
Why haven't you seen him yet! Go!
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Pet Manager Lundy:<br>
Oh really? The owner? Honestly, you can take the credit! Why are you so interested in that bead?<br>
I think you should choose something else! Drikus may not get around to fixing it for a long time...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-09.html">"Whatever."</Button>
<html><body>Pet Manager Lundy:<br>
Oh really? The owner? Honestly, you can take the credit! Why are you so interested in that bead?<br>
I think you should choose something else! Drikus may not get around to fixing it for a long time...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00044_HelpTheSon 30827-09.html">"Whatever."</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Pet Manager Lundy:<br>
Excellent! I'll give you one of my most valuable possessions.<br>
There are very few of these, even among the very rich, and today you become one of the chosen few owners!<br>
Please accept this <font color="LEVEL">pet exchange ticket</font>. Your new pet is a very popular breed from the north. Raise it carefully! It is very, very rare!
<html><body>Pet Manager Lundy:<br>
Excellent! I'll give you one of my most valuable possessions.<br>
There are very few of these, even among the very rich, and today you become one of the chosen few owners!<br>
Please accept this <font color="LEVEL">pet exchange ticket</font>. Your new pet is a very popular breed from the north. Raise it carefully! It is very, very rare!
</body></html>

View File

@@ -1,226 +1,212 @@
/*
* 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.Q00044_HelpTheSon;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Help The Son! (44)<br>
* Original Jython script by zerghase.
* @author malyelfik
*/
public class Q00044_HelpTheSon extends Quest
{
// NPCs
private static final int LUNDY = 30827;
private static final int DRIKUS = 30505;
// Monsters
private static final int MAILLE_GUARD = 20921;
private static final int MAILLE_SCOUT = 20920;
private static final int MAILLE_LIZARDMAN = 20919;
// Items
private static final int WORK_HAMMER = 168;
private static final int GEMSTONE_FRAGMENT = 7552;
private static final int GEMSTONE = 7553;
private static final int PET_TICKET = 7585;
public Q00044_HelpTheSon()
{
super(44, Q00044_HelpTheSon.class.getSimpleName(), "Help The Son!");
addStartNpc(LUNDY);
addTalkId(LUNDY, DRIKUS);
addKillId(MAILLE_GUARD, MAILLE_LIZARDMAN, MAILLE_SCOUT);
registerQuestItems(GEMSTONE, GEMSTONE_FRAGMENT);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return getNoQuestMsg(player);
}
String htmltext = event;
switch (event)
{
case "30827-01.htm":
{
qs.startQuest();
break;
}
case "30827-03.html":
{
if (hasQuestItems(player, WORK_HAMMER))
{
takeItems(player, WORK_HAMMER, 1);
qs.setCond(2, true);
}
else
{
htmltext = "30827-03a.html";
}
break;
}
case "30827-06.html":
{
if (getQuestItemsCount(player, GEMSTONE_FRAGMENT) == 30)
{
takeItems(player, GEMSTONE_FRAGMENT, -1);
giveItems(player, GEMSTONE, 1);
qs.setCond(4, true);
}
else
{
htmltext = "30827-06a.html";
}
break;
}
case "30505-02.html":
{
if (hasQuestItems(player, GEMSTONE))
{
takeItems(player, GEMSTONE, -1);
qs.setCond(5, true);
}
else
{
htmltext = "30505-02a.html";
}
break;
}
case "30827-09.html":
{
giveItems(player, PET_TICKET, 1);
qs.exitQuest(false, true);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState qs = getQuestState(player, false);
if ((qs != null) && qs.isCond(2))
{
giveItems(player, GEMSTONE_FRAGMENT, 1);
if (getQuestItemsCount(player, GEMSTONE_FRAGMENT) == 30)
{
qs.setCond(3, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
if (qs == null)
{
return htmltext;
}
switch (npc.getId())
{
case LUNDY:
{
switch (qs.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= 24) ? "30827-00.htm" : "30827-00a.html";
break;
}
case State.STARTED:
{
switch (qs.getCond())
{
case 1:
{
htmltext = hasQuestItems(player, WORK_HAMMER) ? "30827-02.html" : "30827-02a.html";
break;
}
case 2:
{
htmltext = "30827-04.html";
break;
}
case 3:
{
htmltext = "30827-05.html";
break;
}
case 4:
{
htmltext = "30827-07.html";
break;
}
case 5:
{
htmltext = "30827-08.html";
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
break;
}
case DRIKUS:
{
if (qs.isStarted())
{
switch (qs.getCond())
{
case 4:
{
htmltext = "30505-01.html";
break;
}
case 5:
{
htmltext = "30505-03.html";
break;
}
}
}
break;
}
}
return htmltext;
}
}
/*
* 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.Q00044_HelpTheSon;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Help The Son! (44)
* @author malyelfik
*/
public final class Q00044_HelpTheSon extends Quest
{
// NPCs
private static final int LUNDY = 30827;
private static final int DRIKUS = 30505;
// Monsters
private static final int MAILLE_GUARD = 20921;
private static final int MAILLE_SCOUT = 20920;
private static final int MAILLE_LIZARDMAN = 20919;
// Items
private static final int WORK_HAMMER = 168;
private static final int GEMSTONE_FRAGMENT = 7552;
private static final int GEMSTONE = 7553;
private static final int PET_TICKET = 7585;
// Misc
private static final int MIN_LVL = 24;
public Q00044_HelpTheSon()
{
super(44);
addStartNpc(LUNDY);
addTalkId(LUNDY, DRIKUS);
addKillId(MAILLE_GUARD, MAILLE_LIZARDMAN, MAILLE_SCOUT);
registerQuestItems(GEMSTONE, GEMSTONE_FRAGMENT);
addCondMinLevel(MIN_LVL, "30827-00a.html");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = event;
switch (event)
{
case "30827-01.htm":
{
st.startQuest();
break;
}
case "30827-03.html":
{
if (hasQuestItems(player, WORK_HAMMER))
{
takeItems(player, WORK_HAMMER, 1);
st.setCond(2, true);
}
else
{
htmltext = "30827-03a.html";
}
break;
}
case "30827-06.html":
{
if (getQuestItemsCount(player, GEMSTONE_FRAGMENT) == 30)
{
takeItems(player, GEMSTONE_FRAGMENT, -1);
giveItems(player, GEMSTONE, 1);
st.setCond(4, true);
}
else
{
htmltext = "30827-06a.html";
}
break;
}
case "30505-02.html":
{
if (hasQuestItems(player, GEMSTONE))
{
takeItems(player, GEMSTONE, -1);
st.setCond(5, true);
}
else
{
htmltext = "30505-02a.html";
}
break;
}
case "30827-09.html":
{
giveItems(player, PET_TICKET, 1);
st.exitQuest(false, true);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(2))
{
giveItems(player, GEMSTONE_FRAGMENT, 1);
if (getQuestItemsCount(player, GEMSTONE_FRAGMENT) == 30)
{
st.setCond(3, true);
}
else
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
switch (npc.getId())
{
case LUNDY:
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = "30827-00.htm";
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 1:
htmltext = (hasQuestItems(player, WORK_HAMMER)) ? "30827-02.html" : "30827-02a.html";
break;
case 2:
htmltext = "30827-04.html";
break;
case 3:
htmltext = "30827-05.html";
break;
case 4:
htmltext = "30827-07.html";
break;
case 5:
htmltext = "30827-08.html";
break;
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
break;
}
case DRIKUS:
{
if (st.isStarted())
{
if (st.isCond(4))
{
htmltext = "30505-01.html";
}
else if (st.isCond(5))
{
htmltext = "30505-03.html";
}
}
break;
}
}
return htmltext;
}
}