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,7 @@
<html><body>Divine Messenger Lydia:<br>
Welcome. I'm sure glad to see you. We've got a harsh situation to deal with here. The bright light of the Gods has been turned into a curse!<br>
By the way, I can exchange Octavis' Accessories for something better for you. But keep in mind that the enchantment in the accessories will be reset.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Lydia Lydia-03.html">"I'll fight Octavis."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 2024">"I'd like to exchange Octavis' Accessories (necklaces, rings, earrings, and bracelets)."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Divine Messenger Lydia:<br>
Your party members are participating in battle. I'll move you to them.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest OctavisWarzone reenterInstance">"Thanks!"</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Divine Messenger Lydia:<br>
The master of Orbis Temple, Octavis... What are you going to do with him?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Lydia Lydia-04.html">"I will kill him." (participate in moderate battle)</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Lydia Lydia-05.html">"Is there a way to save his soul?" (participate in epic battle)</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Divine Messenger Lydia:<br>
He was truly brutal, yes... he was. If you kill him, you will be praised as a hero who saved this Orbis Temple.... But Octavis will resist fearfully. You'll need to take a big risk.<br>
What will you choose?<br>
<font color="LEVEL">(In order to challenge in Octavis Normal Battle, you need an association made up of level 95+ parties. A maximum of 35 players can participate simultaneously, and players can enter the instanced zone through the association leader.</font>)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest OctavisWarzone enterEasyInstance">"Say no more. I'm in."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Lydia Lydia-03.html">"I'll think about it."</Button>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Divine Messenger Lydia:<br>
That is... a truly difficult path, but Octavis might want this from the bottom of his heart.<br>
You will face dangerous situations you've never been in before, and you will be facing death in the face. But... this is an opportunity for a great hero...<br>
What will you do?<br>
<font color="LEVEL">(In order to challenge Octavis in an Epic Battle, you will need an association that is made up with characters level 97 or above. A maximum of 35 characters can participate in a battle at the same time.</font>)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest OctavisWarzone enterExtremeInstance">"I'll save his soul."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Lydia Lydia-03.html">"Let me think about it."</Button>
</body></html>

View File

@@ -0,0 +1,82 @@
/*
* 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.OrbisTemple.Lydia;
import com.l2jmobius.gameserver.instancemanager.InstanceManager;
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;
/**
* Lydia AI.
* @author St3eT
*/
public final class Lydia extends AbstractNpcAI
{
// NPCs
private static final int LYDIA = 32892;
// Misc
private static final int OCTAVIS_TEMPLATE_ID = 180;
private static final int OCTAVIS_EXTREME_TEMPLATE_ID = 181;
private Lydia()
{
addStartNpc(LYDIA);
addFirstTalkId(LYDIA);
addTalkId(LYDIA);
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = null;
final Instance instance = InstanceManager.getInstance().getPlayerInstance(player, false);
if ((instance != null) && ((instance.getTemplateId() == OCTAVIS_TEMPLATE_ID) || (instance.getTemplateId() == OCTAVIS_EXTREME_TEMPLATE_ID)))
{
htmltext = "Lydia-02.html";
}
else
{
htmltext = "Lydia-01.html";
}
return htmltext;
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "Lydia-03.html":
case "Lydia-04.html":
case "Lydia-05.html":
{
htmltext = event;
break;
}
}
return htmltext;
}
public static void main(String[] args)
{
new Lydia();
}
}

View File

@@ -0,0 +1,101 @@
/*
* 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.OrbisTemple;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import ai.AbstractNpcAI;
/**
* Orbis Temple Statues AI.
* @author Mobius
*/
public final class OrbisTempleStatues extends AbstractNpcAI
{
// Npcs
private static final int VICTIM_1 = 22911;
private static final int VICTIM_2 = 22912;
private static final int VICTIM_3 = 22913;
private static final int GUARD_1 = 22914;
private static final int GUARD_2 = 22915;
private static final int GUARD_3 = 22916;
private static final int THROWER_1 = 22917;
private static final int THROWER_2 = 22918;
private static final int THROWER_3 = 22919;
private static final int ANCIENT_HERO = 22925;
private static final int CHIEF_CURATOR = 22927;
// Items
private static final int SWORD = 15280;
private static final int SPEAR = 17372;
public OrbisTempleStatues()
{
addSpawnId(VICTIM_1, VICTIM_2, VICTIM_3, GUARD_1, GUARD_2, GUARD_3, THROWER_1, THROWER_2, THROWER_3, ANCIENT_HERO, CHIEF_CURATOR);
addAttackId(VICTIM_1, VICTIM_2, VICTIM_3, GUARD_1, GUARD_2, GUARD_3, THROWER_1, THROWER_2, THROWER_3);
}
@Override
public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isPet)
{
switch (npc.getId())
{
case VICTIM_1:
case VICTIM_2:
case VICTIM_3:
case GUARD_1:
case GUARD_2:
case GUARD_3:
{
if (npc.isImmobilized())
{
npc.setIsImmobilized(false);
npc.setRHandId(SWORD);
}
break;
}
case THROWER_1:
case THROWER_2:
case THROWER_3:
{
if (npc.isImmobilized())
{
npc.setIsImmobilized(false);
npc.setRHandId(SPEAR);
}
break;
}
}
return super.onAttack(npc, attacker, damage, isPet);
}
@Override
public String onSpawn(L2Npc npc)
{
npc.setRandomWalking(false);
if (npc.getId() < ANCIENT_HERO)
{
npc.setIsImmobilized(true);
}
return super.onSpawn(npc);
}
public static void main(String[] args)
{
new OrbisTempleStatues();
}
}

View File

@@ -0,0 +1,97 @@
/*
* 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.OrbisTemple;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.L2Character;
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
import ai.AbstractNpcAI;
/**
* Orbis Temple teleport AI.
* @author Mobius
*/
public final class OrbisTempleTeleports extends AbstractNpcAI
{
// Zones
private static final int ZONE_ID_1 = 200201;
private static final int ZONE_ID_2 = 200202;
private static final int ZONE_ID_3 = 200203;
private static final int ZONE_ID_4 = 200204;
private static final int ZONE_ID_5 = 200205;
private static final int ZONE_ID_6 = 200206;
// Teleport Locations
private static final Location TELEPORT_LOC_1 = new Location(198022, 90032, -192);
private static final Location TELEPORT_LOC_2 = new Location(213983, 53250, -8176);
private static final Location TELEPORT_LOC_3 = new Location(215056, 50467, -8416);
private static final Location TELEPORT_LOC_4 = new Location(213799, 53253, -14432);
private static final Location TELEPORT_LOC_5 = new Location(211137, 50501, -14624);
private static final Location TELEPORT_LOC_6 = new Location(211641, 115547, -12736);
private OrbisTempleTeleports()
{
addEnterZoneId(ZONE_ID_1, ZONE_ID_2, ZONE_ID_3, ZONE_ID_4, ZONE_ID_5, ZONE_ID_6);
}
@Override
public String onEnterZone(L2Character character, L2ZoneType zone)
{
if (character.isPlayer())
{
switch (zone.getId())
{
case ZONE_ID_1:
{
character.teleToLocation(TELEPORT_LOC_2);
break;
}
case ZONE_ID_2:
{
character.teleToLocation(TELEPORT_LOC_1);
break;
}
case ZONE_ID_3:
{
character.teleToLocation(TELEPORT_LOC_4);
break;
}
case ZONE_ID_4:
{
character.teleToLocation(TELEPORT_LOC_3);
break;
}
case ZONE_ID_5:
{
character.teleToLocation(TELEPORT_LOC_6);
break;
}
case ZONE_ID_6:
{
character.teleToLocation(TELEPORT_LOC_5);
break;
}
}
}
return super.onEnterZone(character, zone);
}
public static void main(String[] args)
{
new OrbisTempleTeleports();
}
}