Minor Fantasy Isle rework.
This commit is contained in:
5
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-1.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-1.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
Kratei's Cube allows <font color="LEVEL">25 warriors who are level 70 and above to compete for 20 minutes</font> to see who is the strongest. Warriors advance through the rooms of the Cube, encountering hordes of monsters as they go. Defeat as many monsters and other warriors as possible within the time limit; whoever defeats the most wins.<br>
|
||||
If you are killed, you will be teleported back to the Match Manager after 10 seconds. If the match hasn't ended, you may re-enter. <font color="LEVEL">Doing so will not decrease your experience score.</font><br>The 20-minute competitions start exactly on each hour and half-hour, and you can normally register up until 3 minutes before they begin. (If there was no competition in the previous time slot, you can only register between 20-27 minutes after the hour or 50-57 minutes after the hour.) Registration and admission are impossible in the 3 minutes immediately before a competition begins.<br>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-2.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-2.html
vendored
Normal file
@@ -0,0 +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 Quest KrateisCube TryRegister">Register.</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-3.html
vendored
Normal file
6
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-3.html
vendored
Normal 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>
|
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-4.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-4.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
You are registered for the competition. Stay close to me and I will send you to the match manager when it's time for the competition to begin. Don't wander too far away!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-5.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-5.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
You are already registered.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-6.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-6.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
Your registration for this match has been canceled.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-7.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-7.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
Your level doesn't match the range you chose. Please select the correct range.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-8.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-8.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
Match preparations are under way... Registration for this match has now ended; the match will begin in 3 minutes.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-9.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503-9.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Kratei's Cube Entrance Manager:<br>
|
||||
You are too encumbered to enter! Perhaps you should discard some items first.
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503.html
vendored
Normal file
8
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/32503.html
vendored
Normal 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>
|
75
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/KrateisCube.java
vendored
Normal file
75
trunk/dist/game/data/scripts/ai/areas/FantasyIsle/KrateisCube/KrateisCube.java
vendored
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user