Updated Baium.
Contributed by Edoo.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<html><body>Researcher Keplon:<br>
|
||||
Don't do this to me! I would love to give them out to you, but I am not so well off to give them out for nothing.
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>Researcher Euclie:<br>
|
||||
No way, no. I can't give it out for free. I didn't get this for free either.
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>Researcher Pithgon:<br>
|
||||
If you have no Adena, I have no interest trading with you. Sorry.
|
||||
</body></html>
|
@@ -1,143 +0,0 @@
|
||||
/*
|
||||
* 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.TowerOfInsolence.ToIVortex;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
|
||||
import ai.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Tower of Insolence Vortex teleport AI.<br>
|
||||
* Updated to High Five by pmq.<br>
|
||||
* Reworked by xban1x.
|
||||
* @author Plim
|
||||
*/
|
||||
public class ToIVortex extends AbstractNpcAI
|
||||
{
|
||||
// NPCs
|
||||
private static final int KEPLON = 30949;
|
||||
private static final int EUCLIE = 30950;
|
||||
private static final int PITHGON = 30951;
|
||||
private static final int DIMENSION_VORTEX_1 = 30952;
|
||||
private static final int DIMENSION_VORTEX_2 = 30953;
|
||||
private static final int DIMENSION_VORTEX_3 = 30954;
|
||||
// Items
|
||||
private static final int GREEN_DIMENSION_STONE = 4401;
|
||||
private static final int BLUE_DIMENSION_STONE = 4402;
|
||||
private static final int RED_DIMENSION_STONE = 4403;
|
||||
private static final Map<String, Integer> TOI_FLOOR_ITEMS = new HashMap<>();
|
||||
// Locations
|
||||
private static final Map<String, Location> TOI_FLOORS = new HashMap<>();
|
||||
// Misc
|
||||
private static final Map<String, Integer> DIMENSION_TRADE = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
TOI_FLOORS.put("1", new Location(114356, 13423, -5096));
|
||||
TOI_FLOORS.put("2", new Location(114666, 13380, -3608));
|
||||
TOI_FLOORS.put("3", new Location(111982, 16028, -2120));
|
||||
TOI_FLOORS.put("4", new Location(114636, 13413, -640));
|
||||
TOI_FLOORS.put("5", new Location(114152, 19902, 928));
|
||||
TOI_FLOORS.put("6", new Location(117131, 16044, 1944));
|
||||
TOI_FLOORS.put("7", new Location(113026, 17687, 2952));
|
||||
TOI_FLOORS.put("8", new Location(115571, 13723, 3960));
|
||||
TOI_FLOORS.put("9", new Location(114649, 14144, 4976));
|
||||
TOI_FLOORS.put("10", new Location(118507, 16605, 5984));
|
||||
|
||||
TOI_FLOOR_ITEMS.put("1", GREEN_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("2", GREEN_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("3", GREEN_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("4", BLUE_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("5", BLUE_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("6", BLUE_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("7", RED_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("8", RED_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("9", RED_DIMENSION_STONE);
|
||||
TOI_FLOOR_ITEMS.put("10", RED_DIMENSION_STONE);
|
||||
|
||||
DIMENSION_TRADE.put("GREEN", GREEN_DIMENSION_STONE);
|
||||
DIMENSION_TRADE.put("BLUE", BLUE_DIMENSION_STONE);
|
||||
DIMENSION_TRADE.put("RED", RED_DIMENSION_STONE);
|
||||
}
|
||||
|
||||
private ToIVortex()
|
||||
{
|
||||
addStartNpc(KEPLON, EUCLIE, PITHGON, DIMENSION_VORTEX_1, DIMENSION_VORTEX_2, DIMENSION_VORTEX_3);
|
||||
addTalkId(KEPLON, EUCLIE, PITHGON, DIMENSION_VORTEX_1, DIMENSION_VORTEX_2, DIMENSION_VORTEX_3);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
final int npcId = npc.getId();
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "1":
|
||||
case "2":
|
||||
case "3":
|
||||
case "4":
|
||||
case "5":
|
||||
case "6":
|
||||
case "7":
|
||||
case "8":
|
||||
case "9":
|
||||
case "10":
|
||||
{
|
||||
final Location loc = TOI_FLOORS.get(event);
|
||||
final int itemId = TOI_FLOOR_ITEMS.get(event);
|
||||
if (hasQuestItems(player, itemId))
|
||||
{
|
||||
takeItems(player, itemId, 1);
|
||||
player.teleToLocation(loc, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
return "no-stones.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GREEN":
|
||||
case "BLUE":
|
||||
case "RED":
|
||||
{
|
||||
if (player.getAdena() >= 10000)
|
||||
{
|
||||
takeItems(player, Inventory.ADENA_ID, 10000);
|
||||
giveItems(player, DIMENSION_TRADE.get(event), 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
return npcId + "no-adena.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onAdvEvent(event, npc, player);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new ToIVortex();
|
||||
}
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
<html><body>Dimensional Vortex:<br>
|
||||
You do not have the Dimensional Stone required for teleportation.
|
||||
</body></html>
|
3
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952-01.html
vendored
Normal file
3
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952-01.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><head><body>Dimensional Vortex:<br>
|
||||
The Dimensional Vortex emits a faint light which twinkles out. The vortex becomes inactive. It seems like, in order to go to the place where the Dimensional Vortex is leading, you will need some special object.
|
||||
</body></html>
|
5
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952-02.html
vendored
Normal file
5
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Dimensional Vortex:<br>
|
||||
The Dimensional Vortex emits a faint light, in the midst of which an image appears. A giant that normally appears as a stone statue has come alive and is fighting with many people. Even angels have joined the fray. It seems that the angels are angry at the humans who have broken the seal of the stone statue.<br>
|
||||
It appears impossible to cross over to that place right now. You have no choice but to wait until the fight is over.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Baium 30952-04.html">Ask about the stone statue that has come alive.</button>
|
||||
</body></html>
|
5
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952-03.html
vendored
Normal file
5
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Dimensional Vortex:<br>
|
||||
The Dimensional Vortex emits a faint light, in the midst of which an image appears. A large, open space... but the gigantic, human-like stone statue is no longer there.<br>
|
||||
It seems that while the statue is not visible, one could cross over to that place.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Baium 30952-04.html">Ask about the stone statue.</button>
|
||||
</body></html>
|
@@ -1,7 +1,7 @@
|
||||
<html><body>Angelic Vortex:<br>
|
||||
In ancient times a mighty emperor named Baium became so enamored of his own power that he began to fancy himself a god. He conscripted all of his people to build an awesome tower that reached almost to heaven.<br>
|
||||
The gods were not amused. They struck him down, cursed him with immortality and imprisoned him in his own tower for eternity! A statue of the foolish emperor stands there to this day.<br>
|
||||
Occasionally, the old emperor himself is woken up by those who seek his power. Unfortunately, when Baium is disturbed, so are the angels who guard him.<br>
|
||||
Although the angels are certainly no friend of Baium, they regard Humans with equal disdain.<font color="LEVEL"> Ultimate success against Baium depends upon the defeat of the guardian angels.</font><br>
|
||||
This is all I can tell you. Good luck!
|
||||
<html><body>Dimensional Vortex:<br>
|
||||
In ancient times a mighty emperor named Baium became so enamored of his own power that he began to fancy himself a god. He conscripted all of his people to build an awesome tower that reached almost to heaven.<br>
|
||||
The gods were not amused. They struck him down, cursed him with immortality and imprisoned him in his own tower for eternity! A statue of the foolish emperor stands there to this day.<br>
|
||||
Occasionally, the old emperor himself is woken up by those who seek his power. Unfortunately, when Baium is disturbed, so are the angels who guard him.<br>
|
||||
Although the angels are certainly no friend of Baium, they regard Humans with equal disdain.<font color="LEVEL"> Ultimate success against Baium depends upon the defeat of the guardian angels.</font><br>
|
||||
This is all I can tell you. Good luck!
|
||||
</body></html>
|
3
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952.html
vendored
Normal file
3
L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Baium/30952.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Dimensional Vortex:<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Baium enter">Move to Baium</Button>
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><head><body>Angelic Vortex:<br>
|
||||
The Angelic Vortex emits a faint light which twinkles out. The vortex becomes inactive. It seems like, in order to go to the place where the Angelic Vortex is leading, you will need some special object.
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>Angelic Vortex:<br>
|
||||
The Angelic Vortex emits a faint light, in the midst of which an image appears. A giant that normally appears as a stone statue has come alive and is fighting with many people. Even angels have joined the fray. It seems that the angels are angry at the humans who have broken the seal of the stone statue.<br>
|
||||
It appears impossible to cross over to that place right now. You have no choice but to wait until the fight is over.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Baium 31862-04.html">Ask about the stone statue that has come alive.</button>
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>Angelic Vortex:<br>
|
||||
The Angelic Vortex emits a faint light, in the midst of which an image appears. A large, open space... but the gigantic, human-like stone statue is no longer there.<br>
|
||||
It seems that while the statue is not visible, one could cross over to that place.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Baium 31862-04.html">Ask about the stone statue.</button>
|
||||
</body></html>
|
@@ -1,4 +0,0 @@
|
||||
<html><body>Angelic Vortex:<br>
|
||||
The Angelic Vortex emits a faint light, and in the midst of the light an image appears. In the deepest part of a spacious area, a gigantic stone statue is visible. The statue has a human-like appearance and is in a seated position, as though it was being held by some invisible force against its will.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Baium enter">Go where the Angelic Vortex leads.</button>
|
||||
</body></html>
|
@@ -48,6 +48,7 @@ import ai.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Baium AI.
|
||||
* Updated to Prelude Of War Edoo.<br>
|
||||
* @author St3eT
|
||||
*/
|
||||
public class Baium extends AbstractNpcAI
|
||||
@@ -55,7 +56,7 @@ public class Baium extends AbstractNpcAI
|
||||
// NPCs
|
||||
private static final int BAIUM = 29020; // Baium
|
||||
private static final int BAIUM_STONE = 29025; // Baium
|
||||
private static final int ANG_VORTEX = 31862; // Angelic Vortex
|
||||
private static final int DIMENSION_VORTEX_1 = 30952; // Dimensional Vortex
|
||||
private static final int ARCHANGEL = 29021; // Archangel
|
||||
private static final int TELE_CUBE = 31842; // Teleportation Cubic
|
||||
// Skills
|
||||
@@ -69,8 +70,6 @@ public class Baium extends AbstractNpcAI
|
||||
private static final SkillHolder HEAL_OF_BAIUM = new SkillHolder(4135, 1); // Baium Heal
|
||||
private static final SkillHolder BAIUM_PRESENT = new SkillHolder(4136, 1); // Baium's Gift
|
||||
private static final SkillHolder ANTI_STRIDER = new SkillHolder(4258, 1); // Hinder Strider
|
||||
// Items
|
||||
private static final int FABRIC = 4295; // Blooded Fabric
|
||||
// Zone
|
||||
private static final NoRestartZone zone = ZoneManager.getInstance().getZoneById(70051, NoRestartZone.class); // Baium zone
|
||||
// Status
|
||||
@@ -104,9 +103,9 @@ public class Baium extends AbstractNpcAI
|
||||
|
||||
private Baium()
|
||||
{
|
||||
addFirstTalkId(ANG_VORTEX);
|
||||
addTalkId(ANG_VORTEX, TELE_CUBE, BAIUM_STONE);
|
||||
addStartNpc(ANG_VORTEX, TELE_CUBE, BAIUM_STONE);
|
||||
addFirstTalkId(DIMENSION_VORTEX_1);
|
||||
addTalkId(DIMENSION_VORTEX_1, TELE_CUBE, BAIUM_STONE);
|
||||
addStartNpc(DIMENSION_VORTEX_1, TELE_CUBE, BAIUM_STONE);
|
||||
addAttackId(BAIUM, ARCHANGEL);
|
||||
addKillId(BAIUM);
|
||||
addSeeCreatureId(BAIUM);
|
||||
@@ -169,7 +168,7 @@ public class Baium extends AbstractNpcAI
|
||||
{
|
||||
switch (event)
|
||||
{
|
||||
case "31862-04.html":
|
||||
case "30952-04.html":
|
||||
{
|
||||
return event;
|
||||
}
|
||||
@@ -178,19 +177,14 @@ public class Baium extends AbstractNpcAI
|
||||
String htmltext = null;
|
||||
if (getStatus() == DEAD)
|
||||
{
|
||||
htmltext = "31862-03.html";
|
||||
htmltext = "30952-03.html";
|
||||
}
|
||||
else if (getStatus() == IN_FIGHT)
|
||||
{
|
||||
htmltext = "31862-02.html";
|
||||
}
|
||||
else if (!hasQuestItems(player, FABRIC))
|
||||
{
|
||||
htmltext = "31862-01.html";
|
||||
htmltext = "30952-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
takeItems(player, FABRIC, 1);
|
||||
player.teleToLocation(TELEPORT_IN_LOC);
|
||||
}
|
||||
return htmltext;
|
||||
|
Reference in New Issue
Block a user