|
These were released in my server, however not everyone downloads things. Also this will explain how to enable them.
Worldpacketsdecoder.java
Loader.javaCode://packetId KEY_TYPED_PACKET = 1; Look for -> } else if (packetId == KEY_TYPED_PACKET) { Add: int keyPressed = stream.readByte(); switch(keyPressed) { case 0: System.out.println("Happy Debugging!"); break; }
Code:public static boolean DISABLE_USELESS_PACKETS = true;//false = enables useless packets (such as keybinds) Turn to false.
Credits:
Lucifer (KShan) for the idea.
Ridiculous (packetId)
haha this is awesome man, thanks for this
If anyone knows where in the client fkeys are handled, please pm me
Badly coded but idea how you could do it, also need to disable the regular fkey method, i guess in client?Code:} else if (packetId == KEY_TYPED_PACKET) { int keyPressed = stream.readByte(); switch (keyPressed) { case 1: if (player.f1 == -1) return; for (int i = 0; i < 15; i++) { if (player.f1 != i) continue; if (player.f1 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 2: if (player.f2 == -1) return; for (int i = 0; i < 15; i++) { if (player.f2 != i) continue; if (player.f2 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 3: if (player.f3 == -1) return; for (int i = 0; i < 15; i++) { if (player.f3 != i) continue; if (player.f3 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 4: if (player.f4 == -1) return; for (int i = 0; i < 15; i++) { if (player.f4 != i) continue; if (player.f4 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 5: if (player.f5 == -1) return; for (int i = 0; i < 15; i++) { if (player.f5 != i) continue; if (player.f5 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 6: if (player.f6 == -1) return; for (int i = 0; i < 15; i++) { if (player.f6 != i) continue; if (player.f6 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 7: if (player.f7 == -1) return; for (int i = 0; i < 15; i++) { if (player.f7 != i) continue; if (player.f7 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 8: if (player.f8 == -1) return; for (int i = 0; i < 15; i++) { if (player.f8 != i) continue; if (player.f8 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 9: if (player.f9 == -1) return; for (int i = 0; i < 15; i++) { if (player.f9 != i) continue; if (player.f9 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 10: if (player.f10 == -1) return; for (int i = 0; i < 15; i++) { if (player.f10 != i) continue; if (player.f10 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 11: if (player.f11 == -1) return; for (int i = 0; i < 15; i++) { if (player.f11 != i) continue; if (player.f11 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 12: if (player.f12 == -1) return; for (int i = 0; i < 15; i++) { if (player.f12 != i) continue; if (player.f12 == i) { player.getInterfaceManager().openGameTab(i); } } break; case 13: player.getInterfaceManager().closeScreenInterface(); return; default: System.out.println(keyPressed); }
Also Escape = close interfaces
Commands
Im still testing shit out then im gonna write cleaner code.Code:case "resetfkeys": player.f1 = 4; player.f2 = 5; player.f3 = 6; player.f4 = 7; player.f5 = 0; player.f6 = -1; player.f7 = -1; player.f8 = -1; player.f9 = -1; player.f10 = -1; player.f11 = -1; player.f12 = -1; player.getPackets().sendGameMessage("All fkeys has been reset."); return true; case "changefkey": int key = Integer.valueOf(cmd[1]); int toKey = Integer.valueOf(cmd[2]); switch (key) { case 1: player.f1 = toKey; break; case 2: player.f2 = toKey; break; case 3: player.f3 = toKey; break; case 4: player.f4 = toKey; break; case 5: player.f5 = toKey; break; case 6: player.f6 = toKey; break; case 7: player.f7 = toKey; break; case 8: player.f8 = toKey; break; case 9: player.f9 = toKey; break; case 10: player.f10 = toKey; break; case 11: player.f11 = toKey; break; case 12: player.f12 = toKey; break; } player.getPackets().sendGameMessage("Usage: ::changefkey 1-12 1-15"); player.getPackets() .sendGameMessage("0:CombatStyles, 1:Achievements, 2:Skills, 3:Quests, 4:Inventory, " + "5:Equipment, 6:Prayer, 7:Spellbook, 8:Summoning/Squeal of Fortune, 9:Friendlist, " + "10:Friendchat, 11:Clanchat, 12:Settings, 13:Emotes, 14:Music, 15:Notes"); return true;
For people that're planning on using this, might want to edit your method2371 in Class247 to this:
Or else, you're going to have problems such as random packets causing your player to walk, open dev console, etc etcCode:public static void method2371(byte i) { try { //Class360.method4300(-1349846936); //ClientScriptsExecutor.aClass374_Sub1_4125.method4626(2074664377); //ClientScriptsExecutor.aClass374_Sub2_4121.method4626(2003457775); if (-1625219821 * client.anInt8687 > 0) { Class298_Sub36 class298_sub36 = Class18.method359( OutcommingPacket.aClass198_1994, client.aClass25_8711.aClass449_330, (byte) 79); class298_sub36.aClass298_Sub53_Sub2_7396.writeShort( 2089055308 * client.anInt8687, 16711935); for (int i_9_ = 0; i_9_ < client.anInt8687 * -1625219821; i_9_++) { Interface16 interface16 = client.anInterface16Array8688[i_9_]; long l = (interface16.method216(-1501300299) - -4339417020449565913L * ClientScriptsExecutor.aLong4123); if (l > 16777215L) l = 16777215L; ClientScriptsExecutor.aLong4123 = (interface16.method216(-2043012774) * -7881601697932874601L); class298_sub36.aClass298_Sub53_Sub2_7396.writeByte( interface16.method218((byte) -114)); class298_sub36.aClass298_Sub53_Sub2_7396.putTriByte( (int) l, (byte) 52); } client.aClass25_8711.method390(class298_sub36, (byte) -79); } /*if (ClientScriptsExecutor.anInt4120 * -2116412357 > 0) ClientScriptsExecutor.anInt4120 -= -1604952845; if (client.aBoolean8763 && ClientScriptsExecutor.anInt4120 * -2116412357 <= 0) { ClientScriptsExecutor.anInt4120 = -2034285828; client.aBoolean8763 = false; Class298_Sub36 class298_sub36 = Class18.method359( OutcommingPacket.MOVE_CAMERA_PACKET, client.aClass25_8711.aClass449_330, (byte) 50); class298_sub36.aClass298_Sub53_Sub2_7396.writeShort128( (int) client.aFloat8757 >> 3); class298_sub36.aClass298_Sub53_Sub2_7396.writeShortLE( (int) client.aFloat8949 >> 3, 1908840395); client.aClass25_8711.method390(class298_sub36, (byte) -20); } if (ClientScriptsExecutor.aBoolean4122 != Class422_Sub7.aBoolean8385) { ClientScriptsExecutor.aBoolean4122 = Class422_Sub7.aBoolean8385; Class298_Sub36 class298_sub36 = Class18.method359( OutcommingPacket.aClass198_2063, client.aClass25_8711.aClass449_330, (byte) 90); class298_sub36.aClass298_Sub53_Sub2_7396.writeByte( Class422_Sub7.aBoolean8385 ? 1 : 0); client.aClass25_8711.method390(class298_sub36, (byte) -44); } if (!client.aBoolean8666) { Class298_Sub36 class298_sub36 = Class18.method359( OutcommingPacket.aClass198_2003, client.aClass25_8711.aClass449_330, (byte) 9); class298_sub36.aClass298_Sub53_Sub2_7396.writeByte(0); int i_10_ = (385051775 * class298_sub36.aClass298_Sub53_Sub2_7396.index); RsByteBuffer class298_sub53 = Class422_Sub25.aClass298_Sub48_8425 .method3542(-49990428); class298_sub36.aClass298_Sub53_Sub2_7396.writeBytes( class298_sub53.buffer, 0, 385051775 * class298_sub53.index, (short) -16962); class298_sub36.aClass298_Sub53_Sub2_7396 .method3649( (class298_sub36.aClass298_Sub53_Sub2_7396.index * 385051775) - i_10_, (byte) -113); client.aClass25_8711.method390(class298_sub36, (byte) -84); client.aBoolean8666 = true; }*/ } catch (RuntimeException runtimeexception) { throw Class346.method4175(runtimeexception, new StringBuilder() .append("ki.d(").append(')').toString()); } }
http://i.imgur.com/UiOlNtY.png
I'm not really sure if you know what "good code" is :L
That's not good code either? thats from 2013?
Stop bitching, don't care if you been nerding out, sitting home alone programming rsps your whole life.
And why do you even have avalon source downloaded if it has so bad codes in it? whats the point when you are so much better at coding?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |