L2JMobius

High Five Chamber of Delution lvl 82 and lvl 84 bosses

slayerofdark · 8 · 6387

Offline slayerofdark

  • Heir
  • **
    • Posts: 23
ChamberOfDelusionTower.java
Code: [Select]
/*
 * 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 instances.ChambersOfDelusion;

import org.l2jmobius.gameserver.model.Location;

/**
 * Chamber of Delusion Tower.
 * @author GKR
 */
public class ChamberOfDelusionTower extends Chamber
{
// NPCs
private static final int ENTRANCE_GATEKEEPER = 32663;
private static final int ROOM_GATEKEEPER_FIRST = 32693;
private static final int ROOM_GATEKEEPER_LAST = 32701;
private static final int AENKINEL = 25695;
private static final int BOX = 18823;

// Misc
private static final Location[] ENTER_POINTS = new Location[]
{
new Location(-108976, -153372, -6688),
new Location(-108960, -152524, -6688),
new Location(-107088, -155052, -6688),
new Location(-107104, -154236, -6688),
new Location(-108048, -151244, -6688),
new Location(-107088, -152956, -6688),
new Location(-108992, -154604, -6688),
new Location(-108048, -154572, -6688),
new Location(-108048, -154572, -6688), // Raid room
};
private static final int INSTANCEID = 132; // this is the client number

private ChamberOfDelusionTower()
{
super(INSTANCEID, ENTRANCE_GATEKEEPER, ROOM_GATEKEEPER_FIRST, ROOM_GATEKEEPER_LAST, AENKINEL, BOX);
ROOM_ENTER_POINTS = ENTER_POINTS;
}

public static void main(String[] args)
{
new ChamberOfDelusionTower();
}
}
ChamberOfDelusionSquare.java
Code: [Select]
/*
 * 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 instances.ChambersOfDelusion;

import org.l2jmobius.gameserver.model.Location;

/**
 * Chamber of Delusion Square.
 * @author GKR
 */
public class ChamberOfDelusionSquare extends Chamber
{
// NPCs
private static final int ENTRANCE_GATEKEEPER = 32662;
private static final int ROOM_GATEKEEPER_FIRST = 32684;
private static final int ROOM_GATEKEEPER_LAST = 32692;
private static final int AENKINEL = 25694;
private static final int BOX = 18820;

// Misc
private static final Location[] ENTER_POINTS = new Location[]
{
new Location(-122368, -153388, -6688),
new Location(-122368, -152524, -6688),
new Location(-120480, -155116, -6688),
new Location(-120480, -154236, -6688),
new Location(-121440, -151212, -6688),
new Location(-120464, -152908, -6688),
new Location(-122368, -154700, -6688),
new Location(-121440, -154572, -6688),
new Location(-121440, -154572, -6688), // Raid room
};
private static final int INSTANCEID = 131;

private ChamberOfDelusionSquare()
{
super(INSTANCEID, ENTRANCE_GATEKEEPER, ROOM_GATEKEEPER_FIRST, ROOM_GATEKEEPER_LAST, AENKINEL, BOX);
ROOM_ENTER_POINTS = ENTER_POINTS;
}

public static void main(String[] args)
{
new ChamberOfDelusionSquare();
}
}
I just add 2 boss rooms, since the last one is never reachable, i do not know why but is something that works for me and my players.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16047
Nice, will check when have time.
Reminder to myself, check spawns.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16047
Try this instead.
Code: [Select]
Index: dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java
===================================================================
--- dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java (revision 10203)
+++ dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java (working copy)
@@ -225,7 +225,7 @@
  {
  while (newRoom == world.getParameters().getInt("currentRoom", 0)) // otherwise teleport to another room, except current
  {
- newRoom = getRandom(ROOM_ENTER_POINTS.length - 1);
+ newRoom = getRandom(ROOM_ENTER_POINTS.length);
  }
  }
 



Online Mobius

  • Distinguished King
  • *****
    • Posts: 16047
Are you sure?
Based on this it should work.
Code: [Select]
// Teleport to raid room 10 min or lesser before instance end time for Tower and Square Chambers
else if (isBigChamber() && ((inst.getInstanceEndTime() - System.currentTimeMillis()) < 600000))
{
newRoom = ROOM_ENTER_POINTS.length - 1;
}

// 10% chance for teleport to raid room if not here already for Northern, Southern, Western and Eastern Chambers
else if (!isBigChamber() && !isBossRoom(world) && (getRandom(100) < 10))
{
newRoom = ROOM_ENTER_POINTS.length - 1;
}


Offline slayerofdark

  • Heir
  • **
    • Posts: 23
It doesnt and destroy and other instances on chamber. When it goes to tp you in rb room error on system and stuck. need to restart and w8 5 minute to char unstuck. So it destroys the instances.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16047
It doesnt and destroy and other instances on chamber. When it goes to tp you in rb room error on system and stuck. need to restart and w8 5 minute to char unstuck. So it destroys the instances.

Can you post the error?