'Kyle 1 Posted November 18, 2018 Report Share Posted November 18, 2018 This is for the Underwall Tunnel at the Grand Exchange. In your ObjectHandler, you will want to place these two methods (preferably under HandleOption5, somewhere): public static void climbTunnel(final Player player, final boolean goingIn) { if (player.getBoneDelay() > Utils.currentTimeMillis()) return; player.addBoneDelay(150); if (!goingIn) { player.addWalkSteps(3144, 3514, 0, false); player.setNextWorldTile(new WorldTile(3143, 3514, 0)); player.setNextAnimation(new Animation(2589)); } else { player.addWalkSteps(3138, 3516, 0, false); player.setNextWorldTile(new WorldTile(3139, 3516, 0)); player.setNextAnimation(new Animation(2589)); } player.getPackets().sendGameMessage("Climb into the tunnel..."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (!goingIn) { player.addBoneDelay(3000); //5sec-2sec=3sec walkTunnel(player, false); } else { player.addBoneDelay(3000); //5sec-2sec=3sec walkTunnel(player, true); } stop(); } }, 2); } public static void walkTunnel(final Player player, final boolean goingIn) { if (!goingIn) { player.setNextAnimation(new Animation(2591)); player.setNextWorldTile(new WorldTile(3139, 3516, 0)); } else { player.setNextAnimation(new Animation(2591)); player.setNextWorldTile(new WorldTile(3143, 3514, 0)); } player.getPackets().sendGameMessage((goingIn) ? "...and end up inside the Grand Exchange" : "...and end up outside the Grand Exchange."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { if (!goingIn) { player.addWalkSteps(3138, 3516, 0, false); } else { player.addWalkSteps(3144, 3514, 0, false); } stop(); } }); } Then, in your HandleOption1 method, inside ObjectHandler, add this: } else if (id == 9311 && object.getX() == 3139 && object.getY() == 3516) { climbTunnel(player, true); // GE Tunnel outside to inside } else if (id == 9312 && object.getX() == 3143 && object.getY() == 3514) { climbTunnel(player, false); // GE Tunnel inside to outside Link to comment Share on other sites More sharing options...
Origin 1,869 Posted June 10, 2020 Report Share Posted June 10, 2020 simple implementation but appreciate the contribution Link to comment Share on other sites More sharing options...
kooselscape 0 Posted July 9, 2020 Report Share Posted July 9, 2020 thanks man, will use this on my server! Link to comment Share on other sites More sharing options...
QueenEmsy 0 Posted April 13, 2022 Report Share Posted April 13, 2022 Really good implementation! Link to comment Share on other sites More sharing options...
khonqr 0 Posted April 14, 2022 Report Share Posted April 14, 2022 thanks! Link to comment Share on other sites More sharing options...
geraldpons97 0 Posted May 6, 2022 Report Share Posted May 6, 2022 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now