Minor Fantasy Isle rework.

This commit is contained in:
MobiusDev 2016-06-12 12:03:21 +00:00
parent 3632bd9852
commit 794368f19e
41 changed files with 196 additions and 124 deletions

View File

@ -1,3 +1,3 @@
<html><body>Arena Manager:<br>
What's that? You want to enter by yourself? Sorry, kid -- it doesn't work that way. If you want to participate, go find yourself a team.
The event is not currently available.
</body></html>

View File

@ -1,9 +1,3 @@
<html><body>Arena Manager:<br>
This is a list of the teams planning to participate in this match. Impressive, aren't they? But don't be intimidated. Knowing your opponents and their capabilities is good strategy in fact.<br><br>
=== List of Participating Teams ===<br>
1. (Participating Team: <font color=00ffff></font> Team)<br>
2. (Participating Team: <font color=00ffff></font> Team)<br>
3. (Participating Team: <font color=00ffff></font> Team)<br>
4. (Participating Team: <font color=00ffff></font> Team)<br>
5. (Participating Team: <font color=00ffff></font> Team)
There are no teams participating in this match.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Arena Manager:<br>
You have no team registered for the match.
</body></html>

View File

@ -1,7 +1,7 @@
<html><body>Arena Manager:<br>
This arena is reserved for characters who are level 40-49. Only the victors survive! Are you confident enough to accept the challenge?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Register team.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 5">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">View participating teams.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">View game rules.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">View team with the most wins.</Button>

View File

@ -1,3 +1,3 @@
<html><body>Arena Manager:<br>
What's that? You want to enter by yourself? Sorry, kid -- it doesn't work that way. If you want to participate, go find yourself a team.
The event is not currently available.
</body></html>

View File

@ -1,9 +1,3 @@
<html><body>Arena Manager:<br>
This is a list of the teams planning to participate in this match. Impressive, aren't they? But don't be intimidated. Knowing your opponents and their capabilities is good strategy in fact.<br><br>
=== List of Participating Teams ===<br>
1. (Participating Team: <font color=00ffff></font> Team)<br>
2. (Participating Team: <font color=00ffff></font> Team)<br>
3. (Participating Team: <font color=00ffff></font> Team)<br>
4. (Participating Team: <font color=00ffff></font> Team)<br>
5. (Participating Team: <font color=00ffff></font> Team)
There are no teams participating in this match.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Arena Manager:<br>
You have no team registered for the match.
</body></html>

View File

@ -1,7 +1,7 @@
<html><body>Arena Manager:<br>
This arena is reserved for characters who are level 70-79. Only the victors survive! Are you confident enough to accept the challenge?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Register team.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 5">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">View participating teams.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">View game rules.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">View team with the most wins.</Button>

View File

@ -1,3 +1,3 @@
<html><body>Arena Manager:<br>
What's that? You want to enter by yourself? Sorry, kid -- it doesn't work that way. If you want to participate, go find yourself a team.
The event is not currently available.
</body></html>

View File

@ -1,9 +1,3 @@
<html><body>Arena Manager:<br>
This is a list of the teams planning to participate in this match. Impressive, aren't they? But don't be intimidated. Knowing your opponents and their capabilities is good strategy in fact.<br><br>
=== List of Participating Teams ===<br>
1. (Participating Team: <font color=00ffff></font> Team)<br>
2. (Participating Team: <font color=00ffff></font> Team)<br>
3. (Participating Team: <font color=00ffff></font> Team)<br>
4. (Participating Team: <font color=00ffff></font> Team)<br>
5. (Participating Team: <font color=00ffff></font> Team)
There are no teams participating in this match.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Arena Manager:<br>
You have no team registered for the match.
</body></html>

View File

@ -1,7 +1,7 @@
<html><body>Arena Manager:<br>
This arena is reserved for characters who are level 60-69. Only the victors survive! Are you confident enough to accept the challenge?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Register team.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 5">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">View participating teams.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">View game rules.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">View team with the most wins.</Button>

View File

@ -1,3 +1,3 @@
<html><body>Arena Manager:<br>
What's that? You want to enter by yourself? Sorry, kid -- it doesn't work that way. If you want to participate, go find yourself a team.
The event is not currently available.
</body></html>

View File

@ -1,9 +1,3 @@
<html><body>Arena Manager:<br>
This is a list of the teams planning to participate in this match. Impressive, aren't they? But don't be intimidated. Knowing your opponents and their capabilities is good strategy in fact.<br><br>
=== List of Participating Teams ===<br>
1. (Participating Team: <font color=00ffff></font> Team)<br>
2. (Participating Team: <font color=00ffff></font> Team)<br>
3. (Participating Team: <font color=00ffff></font> Team)<br>
4. (Participating Team: <font color=00ffff></font> Team)<br>
5. (Participating Team: <font color=00ffff></font> Team)
There are no teams participating in this match.
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Arena Manager:<br>
You have no team registered for the match.
</body></html>

View File

@ -1,7 +1,7 @@
<html><body>Arena Manager:<br>
This arena is reserved for characters who are level 50-59. Only the victors survive! Are you confident enough to accept the challenge?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Register team.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 5">Cancel team registration.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">View participating teams.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">View game rules.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">View team with the most wins.</Button>

View File

@ -1,6 +0,0 @@
<html><body>Kratei's Cube Entrance Manager:<br>
What level are you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Register 1">Level 70-75.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Register 2">Level 76-79.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Register 3">Level 80.</Button>
</body></html>

View File

@ -1,8 +0,0 @@
<html><body>Kratei's Cube Entrance Manager:<br>
Welcome to Kratei's Cube! Only the strongest win here.<br>
Do you feel lucky?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Learn more about Kratei's Cube.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TryEnter">Enter Kratei's Cube.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Cancel">Cancel registration for Kratei's Cube competition.<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_goto 12109">Teleport to Fantasy Isle.</Button>
</body></html>

View File

@ -1,4 +1,4 @@
<html><body>Kratei's Cube Entrance Manager:<br>
A match is already in progress. Would you like to register for the next match?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TryRegister">Register.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube TryRegister">Register.</Button>
</body></html>

View File

@ -0,0 +1,6 @@
<html><body>Kratei's Cube Entrance Manager:<br>
What level are you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube Register1">Level 70-75.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube Register2">Level 76-79.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube Register3">Level 80.</Button>
</body></html>

View File

@ -0,0 +1,8 @@
<html><body>Kratei's Cube Entrance Manager:<br>
Welcome to Kratei's Cube! Only the strongest win here.<br>
Do you feel lucky?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube 32503-1.html">Learn more about Kratei's Cube.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube TryEnter">Enter Kratei's Cube.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest KrateisCube Cancel">Cancel registration for Kratei's Cube competition.</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest KrateisCube teleportToFantasyIsland">Teleport to Fantasy Isle.</Button>
</body></html>

View File

@ -0,0 +1,75 @@
/*
* 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.FantasyIsle.KrateisCube;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import ai.AbstractNpcAI;
/**
* Kratei's Cube AI
* @author Mobius
*/
public final class KrateisCube extends AbstractNpcAI
{
// NPC
private static final int MANAGER = 32503; // Kratei's Cube Entrance Manager
// Location
private static final Location FANTASY_TELEPORT = new Location(-59193, -56893, -2034);
public KrateisCube()
{
addStartNpc(MANAGER);
addFirstTalkId(MANAGER);
addTalkId(MANAGER);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "32503-1.html":
case "32503-2.html":
case "32503-3.html":
{
htmltext = event;
break;
}
case "teleportToFantasyIsland":
{
player.teleToLocation(FANTASY_TELEPORT);
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return npc.getId() + ".html";
}
public static void main(String[] args)
{
new KrateisCube();
}
}

View File

@ -1,8 +1,8 @@
<html><body>Stadium Manager:<br>
Select the stadium appropriate for your level.<br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 1">Level 40-49</a><br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 2">Level 50-59</a><br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 3">Level 60-69</a><br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 4">Level 70-79</a><br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 5">No level limit</a>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 1">Level 40-49</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 2">Level 50-59</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 3">Level 60-69</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 4">Level 70-79</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 5">No level limit</Button>
</body></html>

View File

@ -1,6 +1,6 @@
<html><body>Stadium Manager:<br>
What would you like to do?<br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 32491-1.htm">Hear about the game.</a><br>
<a action="bypass -h Quest TeleportToUndergroundColiseum 32491-2.htm">Move to the stadium.</a><br>
<a action="bypass -h Quest TeleportToUndergroundColiseum return">Move to Fantasy Isle.</a>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 32491-1.htm">Hear about the game.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum 32491-2.htm">Move to the stadium.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TeleportToUndergroundColiseum return">Move to Fantasy Isle.</Button>
</body></html>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="KrateisCube">
<group>
<npc id="32503" x="-70596" y="-71064" z="-1416" respawnTime="60sec" /> <!-- Kratei's Cube Entrance Manager -->
</group>
</spawn>
</list>

View File

@ -608,6 +608,7 @@
<node X="-88871" Y="-77664" />
<node X="-43060" Y="-43491" />
</zone>
<!-- Does not exist on Underground.
<zone name="Fantasy Isle Magic Zone" type="EffectZone" shape="Cuboid" minZ="-4324" maxZ="3097">
<stat name="chance" val="100" />
<stat name="default_enabled" val="true" />
@ -617,7 +618,7 @@
<stat name="skillIdLvl" val="22300-1;" />
<node X="-88871" Y="-77664" />
<node X="-43060" Y="-43491" />
</zone>
</zone> -->
<zone name="Keucereus" id="11040" type="TownZone" shape="Cuboid" minZ="1080" maxZ="3210">
<stat name="townId" val="33" />
<node X="-187342" Y="238059" />