L2JMobius
Free Users => Shares/Contributions => Archived User Contributions => Topic started by: slayerofdark on May 27, 2022, 12:50:38 PM
-
ChamberOfDelusionTower.java
/*
* 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
/*
* 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.
-
Nice, will check when have time.
Reminder to myself, check spawns.
-
Try this instead.
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);
}
}
-
Does not work.
-
Are you sure?
Based on this it should work.
// 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;
}
-
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.
-
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?
-
Tested myself and reached the last boss room with no warnings.
Changes committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/c1a7155c94604c9715afa1be101fd736c85aab44