From 2005be0948b196a2654b6316c1337353014e96a0 Mon Sep 17 00:00:00 2001 From: Gptaqbc <56596815+Gptaqbc@users.noreply.github.com> Date: Fri, 20 Dec 2019 11:42:15 -0500 Subject: [PATCH] Random stuff 3 (#307) * Make ::update automatically restart server as well * Add bank area checks back since previously you could open a bank, and as long as you didn't open another interface you could abuse it * Fix noclip (NEEDS TESTING) * Revert "Fix noclip (#302)" This reverts commit 521ae52e4ca17a4732f1718ab767502f8a293468. * ::clip command removed, fixed a typo, reordered some stuff, fixed a bug with others cannon -Removed the clip command from the client; -Fixed a typo in a dialogue; -Fixed mud battlestaff nto working as runes (water and earth); -Fixed a bug with other cannons near you preventing you from setting down a cannon. Somehow your player would glitch himself and make it impossible to spawn a cannon at certain spot; * Snow improvement Nothing major Co-authored-by: Daniel Ginovker --- 2006Redone Client/src/ClientSettings.java | 3 --- 2006Redone Client/src/Flo.java | 6 +++++- .../src/com/rebotted/net/packets/impl/Commands.java | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/2006Redone Client/src/ClientSettings.java b/2006Redone Client/src/ClientSettings.java index b57f81a9..918528e7 100644 --- a/2006Redone Client/src/ClientSettings.java +++ b/2006Redone Client/src/ClientSettings.java @@ -34,7 +34,4 @@ public class ClientSettings { public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443"); public static final BigInteger RSA_EXPONENT = new BigInteger("65537"); - - public final static Boolean SNOW = true; - } diff --git a/2006Redone Client/src/Flo.java b/2006Redone Client/src/Flo.java index c6d5e579..bcd0e2ee 100644 --- a/2006Redone Client/src/Flo.java +++ b/2006Redone Client/src/Flo.java @@ -2,6 +2,9 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) +import java.util.Calendar; +import java.util.GregorianCalendar; + public final class Flo { public static void unpackConfig(StreamLoader streamLoader) { @@ -25,7 +28,8 @@ public final class Flo { return; } else if (i == 1) { anInt390 = stream.read3Bytes(); - if (ClientSettings.SNOW) { + Calendar date = new GregorianCalendar(); + if ((date.get(Calendar.MONTH) + 1) == 12) { anInt390 = 0xffffff; } method262(anInt390); diff --git a/2006Redone Server/src/com/rebotted/net/packets/impl/Commands.java b/2006Redone Server/src/com/rebotted/net/packets/impl/Commands.java index e2d09399..17df9a74 100644 --- a/2006Redone Server/src/com/rebotted/net/packets/impl/Commands.java +++ b/2006Redone Server/src/com/rebotted/net/packets/impl/Commands.java @@ -149,8 +149,8 @@ public class Commands implements PacketType { else { player.isSnowy = true; player.getPacketSender().walkableInterface(11877); + player.getPacketSender().sendMessage("Happy Holidays! Type ::snow to disable/enable! (Auto-disabling in certain area)"); } - player.getPacketSender().sendMessage("Happy Holidays! Type ::snow to disable/enable! (Auto-disabling in certain area)"); } break; case "withdrawshop":