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>Vorbos:<br>
I miss her all the time. I must be in love. You're not mature enough to know love.<br>
(This quest may only be undertaken by characters Lv. 34 or above who have completed the quest "An Orc in Love.")
</body></html>

View File

@@ -1,6 +1,6 @@
<html><body>A Smitten Orc:<br>
Welcome back!<br>
I asked my friends. The shackles are made with strong magic.<br>
special Orc spells. You can never unbind them without something special.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10762_MarionetteSpirit 33966-02.htm">"Interesting. Go on."</Button>
<html><body>A Smitten Orc:<br>
Welcome back!<br>
I asked my friends. The shackles are made with strong magic.<br>
special Orc spells. You can never unbind them without something special.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10762_MarionetteSpirit 33966-02.htm">"Interesting. Go on."</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Vorbos:<br>
But I found ways. You need two keys to unshackle the chains.<br>
I need to get the first key. Will you help me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10762_MarionetteSpirit 33966-03.htm">"Anything for love."</Button>
<html><body>Vorbos:<br>
But I found ways. You need two keys to unshackle the chains.<br>
I need to get the first key. Will you help me?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10762_MarionetteSpirit 33966-03.htm">"Anything for love."</Button>
</body></html>

View File

@@ -1,7 +1,7 @@
<html><body>A Smitten Orc:<br>
You are nice! You even cheer for my love. Sniff.<br>
The first key will be found from killing <font color="LEVEL">Marionette Spirits</font>.<br>
Someone cruel had locked the key inside the Marionette Spirit and turned it into a puppet under a powerful spell.<br>
What's even more scary is that he made it impossible to get the key without killing the Marionette Spirit.<br>
But it's the only choice we have to save the spirits. Go kill <font color="LEVEL">Marionette Spirits</font> and get me <font color="LEVEL">Magic Chain Key 1.</font><br>
<html><body>A Smitten Orc:<br>
You are nice! You even cheer for my love. Sniff.<br>
The first key will be found from killing <font color="LEVEL">Marionette Spirits</font>.<br>
Someone cruel had locked the key inside the Marionette Spirit and turned it into a puppet under a powerful spell.<br>
What's even more scary is that he made it impossible to get the key without killing the Marionette Spirit.<br>
But it's the only choice we have to save the spirits. Go kill <font color="LEVEL">Marionette Spirits</font> and get me <font color="LEVEL">Magic Chain Key 1.</font>
</body></html>

View File

@@ -1,5 +1,7 @@
<html><body>Vorbos:<br>
You have the key? You are truly great!<br>
Thank you! Thank you! I'm closer to helping her now. Joy!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10762_MarionetteSpirit 33966-05.html">"So, am I done here?"</Button>
<html><body>A Smitten Orc:<br>
You are nice! You even cheer for my love. Sniff.<br>
The first key will be found from killing <font color="LEVEL">Marionette Spirits</font>.<br>
Someone cruel had locked the key inside the Marionette Spirit and turned it into a puppet under a powerful spell.<br>
What's even more scary is that he made it impossible to get the key without killing the Marionette Spirit.<br>
But it's the only choice we have to save the spirits. Go kill <font color="LEVEL">Marionette Spirits</font> and get me <font color="LEVEL">Magic Chain Key 1</font>!
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Vorbos:<br>
I will come back to you again after finding out where the other key is. Help me again then.<br>
I want to see her again...though she will never like me back.
<html><body>Vorbos:<br>
You have the key? You are truly great!<br>
Thank you! Thank you! I'm closer to helping her now. Joy!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10762_MarionetteSpirit 33966-06.html">"So, am I done here?"</Button>
</body></html>

View File

@@ -1,7 +1,4 @@
<html><body>A Smitten Orc:<br>
You are nice! You even cheer for my love. Sniff.<br>
The first key will be found from killing <font color="LEVEL">Marionette Spirits</font>.<br>
Someone cruel had locked the key inside the Marionette Spirit and turned it into a puppet under a powerful spell.<br>
What's even more scary is that he made it impossible to get the key without killing the Marionette Spirit.<br>
But it's the only choice we have to save the spirits. Go kill <font color="LEVEL">Marionette Spirits</font> and get me <font color="LEVEL">Magic Chain Key 1.</font><br>
<html><body>Vorbos:<br>
I will come back to you again after finding out where the other key is. Help me again then.<br>
I want to see her again...though she will never like me back.
</body></html>

View File

@@ -1,3 +0,0 @@
<html><body>Vorbos:<br>
(Quest only available to Ertheia characters Lv. 34 or above who have completed the quest "AnOrcInLove.")
</body></html>

View File

@@ -1,164 +1,124 @@
/*
* 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.Q10762_MarionetteSpirit;
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.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.serverpackets.ExQuestNpcLogList;
import com.l2jmobius.gameserver.util.Util;
import quests.Q10761_AnOrcInLove.Q10761_AnOrcInLove;
/**
* Marionette Spirit (10762)
* @author Stayway
*/
public class Q10762_MarionetteSpirit extends Quest
{
// NPC
private static final int VORBOS = 33966;
// Monster
private static final int MARIONETTE_SPIRIT = 23418;
// Items
private static final ItemHolder GUILD_COIN = new ItemHolder(37045, 5);
private static final int MAGIC_CHAIN_KEY_1 = 39488;
// Rewards
private static final int EXP_REWARD = 896996;
private static final int SP_REWARD = 215;
// Other
private static final int MIN_LEVEL = 34;
public Q10762_MarionetteSpirit()
{
super(10762, Q10762_MarionetteSpirit.class.getSimpleName(), "Marionette Spirit");
addStartNpc(VORBOS);
addTalkId(VORBOS);
addKillId(MARIONETTE_SPIRIT);
registerQuestItems(MAGIC_CHAIN_KEY_1);
addCondRace(Race.ERTHEIA, "noErtheia.html");
addCondMinLevel(MIN_LEVEL, "no_level.htm");
addCondCompletedQuest(Q10761_AnOrcInLove.class.getSimpleName(), "restriction.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 "33966-02.htm":
{
htmltext = event;
break;
}
case "33966-03.htm": // start the quest
{
qs.startQuest();
qs.set(Integer.toString(MARIONETTE_SPIRIT), 0);
htmltext = event;
break;
}
case "33966-05.html":
{
if (qs.isCond(2))
{
giveItems(player, GUILD_COIN);
addExpAndSp(player, EXP_REWARD, SP_REWARD);
qs.unset(Integer.toString(MARIONETTE_SPIRIT));
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 = null;
switch (qs.getState())
{
case State.CREATED:
{
if (player.getRace() != Race.ERTHEIA)
{
htmltext = "noErtheia.html";
}
else
{
htmltext = "33966-01.htm";
}
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "33966-06.html";
}
else if (qs.isCond(2))
{
htmltext = "33966-04.html";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if ((qs != null) && qs.isStarted() && qs.isCond(1) && Util.checkIfInRange(1500, npc, qs.getPlayer(), false))
{
giveItemRandomly(killer, npc, MAGIC_CHAIN_KEY_1, 1, 1, 1.0, true);
int kills = qs.getInt(Integer.toString(MARIONETTE_SPIRIT));
kills++;
qs.set(Integer.toString(MARIONETTE_SPIRIT), kills);
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
log.addNpc(MARIONETTE_SPIRIT, kills);
killer.sendPacket(log);
if (kills >= 1)
{
qs.setCond(2);
}
}
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.Q10762_MarionetteSpirit;
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.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import quests.Q10761_AnOrcInLove.Q10761_AnOrcInLove;
/**
* Marionette Spirit (10762)
* @author malyelfik
*/
public final class Q10762_MarionetteSpirit extends Quest
{
// NPC
private static final int VORBOS = 33966;
// Monster
private static final int MARIONETTE_SPIRIT = 23418;
// Items
private static final int MAGIC_CHAIN_KEY = 39488;
// Misc
private static final int MIN_LEVEL = 34;
private static final int DROP_RATE = 70;
public Q10762_MarionetteSpirit()
{
super(10762);
addStartNpc(VORBOS);
addTalkId(VORBOS);
addKillId(MARIONETTE_SPIRIT);
addCondRace(Race.ERTHEIA, "33966-00.htm");
addCondMinLevel(MIN_LEVEL, "33966-00.htm");
addCondCompletedQuest(Q10761_AnOrcInLove.class.getSimpleName(), "33966-00.htm");
registerQuestItems(MAGIC_CHAIN_KEY);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "33966-02.htm":
break;
case "33966-03.htm":
{
qs.startQuest();
break;
}
case "33966-06.html":
{
if (qs.isCond(2))
{
giveStoryQuestReward(player, 5);
addExpAndSp(player, 896996, 215);
qs.exitQuest(false, true);
}
break;
}
default:
htmltext = null;
}
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.CREATED:
htmltext = "33966-01.htm";
break;
case State.STARTED:
htmltext = (qs.isCond(1)) ? "33966-04.html" : "33966-05.html";
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && (DROP_RATE > getRandom(100)))
{
giveItems(killer, MAGIC_CHAIN_KEY, 1);
qs.setCond(2, true);
}
return super.onKill(npc, killer, isSummon);
}
}

View File

@@ -1,3 +0,0 @@
<html><body>You don't meet level requirements<br>
(Quest available from level 34 and above)
</body></html>

View File

@@ -1,3 +0,0 @@
<html><body>Vorbos:<br>
(Quest only available to Ertheia characters Lv. 34 or above who have completed the quest "AnOrcInLove.")
</body></html>