Removed krateisCube html folder.

This commit is contained in:
MobiusDev
2018-04-07 01:35:38 +00:00
parent 4030e2cbbc
commit e3929f2cfb
13 changed files with 91 additions and 15 deletions

View File

@@ -1,6 +0,0 @@
<html><body>Kratei's Cube Entrance Manager:<br>
What level are you?<br>
<a action="bypass -h npc_%objectId%_Register 1">Level 70-75.</a><br>
<a action="bypass -h npc_%objectId%_Register 2">Level 76-79.<br>
<a action="bypass -h npc_%objectId%_Register 3">Level 80.</a>
</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>
<a action="bypass -h npc_%objectId%_Chat 1">Learn more about Kratei's Cube.</a><br>
<a action="bypass -h npc_%objectId%_TryEnter">Enter Kratei's Cube.</a><br>
<a action="bypass -h npc_%objectId%_Cancel">Cancel registration for Kratei's Cube competition.<br>
<a action="bypass -h npc_%objectId%_goto 12109">Teleport to Fantasy Isle.</a>
</body></html>

View File

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

View File

@@ -0,0 +1,6 @@
<html><body>Kratei's Cube Entrance Manager:<br>
What level are you?<br>
<a action="bypass -h Quest KrateisCube Register1">Level 70-75.</a><br>
<a action="bypass -h Quest KrateisCube Register2">Level 76-79.</a><br>
<a action="bypass -h Quest KrateisCube Register3">Level 80.</a>
</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>
<a action="bypass -h Quest KrateisCube 32503-1.html">Learn more about Kratei's Cube.</a><br>
<a action="bypass -h Quest KrateisCube TryEnter">Enter Kratei's Cube.</a><br>
<a action="bypass -h Quest KrateisCube Cancel">Cancel registration for Kratei's Cube competition.</a><br>
<a action="bypass -h Quest KrateisCube teleportToFantasyIsland">Teleport to Fantasy Isle.</a>
</body></html>

View File

@@ -0,0 +1,76 @@
/*
* 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()
{
super(KrateisCube.class.getSimpleName(), "Krateis Cube");
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();
}
}