Jump to content

Search the Community

Showing results for tags 'packet'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 34 results

  1. I have noticed they are nothing source are perfect (exept maybe rsc ones) I think the game code is send in server to the game so exept if its a source code leak the base are a recreation of the code but yasteryear i have found this thread on gbatemp (warning no rs linked) [URL="https://gbatemp.net/threads/save-nintendo-wifi-a-project-to-save-online-servers-for-wii-and-ds-games.362716/"]https://gbatemp.net/threads/save-nintendo-wifi-a-project-to-save-online-servers-for-wii-and-ds-games.362716/[/URL] in this thread they capture packet from online server i think if is possible with rs is can be useful right?
  2. Hi, I basically want to change the interface on the spellbook that has text on varrock teleport to something like "Training teleports", how might i do this using the setstring packet?
  3. When i click the money it does not work.... Anyone know the packet id for it? [img]http://www.upload.ee/image/3817691/Screen_Shot_2014-01-10_at_11.34.28_pm.png[/img] [code] /** * Button click */ public void buttonClick(int buttonId) { switch(buttonId) { case 95185: selectedSlot = 1; openInterface("Buy"); break; case 95191: selectedSlot = 1; openInterface("Sell"); break; case 95203: selectedSlot = 2; openInterface("Buy"); break; case 95206: selectedSlot = 2; openInterface("Sell"); break; case 95194: selectedSlot = 3; openInterface("Buy"); break; case 95209: selectedSlot = 3; openInterface("Sell"); break; case 95188: selectedSlot = 4; openInterface("Buy"); break; case 95212: selectedSlot = 4; openInterface("Sell"); break; case 95197: selectedSlot = 5; openInterface("Buy"); break; case 95215: selectedSlot = 5; openInterface("Sell"); break; case 95200: selectedSlot = 6; openInterface("Buy"); break; case 95218: selectedSlot = 6; openInterface("Sell"); break; case 96078: c.sendConfig(6, -1, -1, -1); break; case 96174: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Sell"); break; case 96074: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } completeOffer("Buy"); break; case 96082: case 96182: c.getPA().showInterface(24500); break; case 96030: case 96130: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 0) { selectedAmount--; updateGE(selectedItemId, selectedPrice); } break; case 96034: case 96134: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96038: case 96138: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedAmount != 2147483647) { selectedAmount++; updateGE(selectedItemId, selectedPrice); } break; case 96042: case 96142: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long a = selectedAmount; long total = a+10; if(total < 2147483647) { selectedAmount += 10; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96046: case 96146: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long l = selectedAmount; long t = l+100; if(t < 2147483647) { selectedAmount += 100; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96050: case 96150: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long h = selectedAmount; long d = h+1000; if(d < 2147483647) { selectedAmount += 1000; updateGE(selectedItemId, selectedPrice); } else { selectedAmount = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96058: case 96158: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 1) { selectedPrice *= 0.95; updateGE(selectedItemId, selectedPrice); if(selectedPrice < 1) { selectedPrice = 1; updateGE(selectedItemId, selectedPrice); } } break; case 96070: case 96170: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } long k = selectedPrice; k *= 1.05; if(k <= 2147483647) { selectedPrice *= 1.05; if(selectedPrice < 21) selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; updateGE(selectedItemId, selectedPrice); } break; case 96062: case 96162: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice = c.getShops().getItemShopValue(selectedItemId); updateGE(selectedItemId, selectedPrice); break; case 96086: case 96186: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } selectedPrice--; if(selectedPrice == 0) selectedPrice = 1; updateGE(selectedItemId, selectedPrice); break; case 96089: case 96189: if(selectedItemId == 0) { c.sendMessage("You must choose an item first."); return; } if(selectedPrice != 2147483647) { selectedPrice++; updateGE(selectedItemId, selectedPrice); } else { selectedPrice = 2147483647; } break; case 95223: selectedSlot = 1; openCollect(selectedSlot, true); break; case 95227: selectedSlot = 2; openCollect(selectedSlot, true); break; case 95231: selectedSlot = 3; openCollect(selectedSlot, true); break; case 95235: selectedSlot = 4; openCollect(selectedSlot, true); break; case 95239: selectedSlot = 5; openCollect(selectedSlot, true); break; case 95243: selectedSlot = 6; openCollect(selectedSlot, true); break; case 213230: case 209254: openGrandExchange(true); break; case 95221: abortOffer(1, true); break; case 95225: abortOffer(2, true); break; case 95229: abortOffer(3, true); break; case 95233: abortOffer(4, true); break; case 95237: abortOffer(5, true); break; case 95241: abortOffer(6, true); break; case 214016: case 210040: abortOffer(selectedSlot, true); openCollect(selectedSlot, false); break; } }[/code]
  4. This is used in certain content areas including the Barrows minigame. It makes your entire minimap completely black and you are unable to click inside the minimap area to walk during black-out mode. I am going to be showing you how to add this to RuneSource and you can easily convert the outstream methods to match your own. The reason I'm posting this is that I have been made aware that most sources do not offer this by default and to add it for yourself you must read and understand the parsePacket and drawMinimap client sided methods. I have come up with these methods myself. I use dynamic buffer sizing on my framework ( second snippet ) and I have said that the size of the buffer is 2 for runesource (1 for the header, 1 to send the byte) Open your ActionSender and add the following.. [CODE] public ActionSender sendMinimapBlackout(int val) { StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(2); out.writeHeader(player.getEncryptor(), 99); out.writeByte(val); player.send(out.getBuffer()); return this; } [/CODE] Or non Rune-Source related sources, please convert the following to suit your server ... [CODE] /** * Sends a config to the client to enable/disable minimap black-out. * * [MENTION=75098]Para[/MENTION]m value The configuration value. */ public void sendHiddenMinimapState(int value) { PacketBuilder builder = new PacketBuilder(99); builder.put(value); player.getSession().write(builder.build()); } [/CODE] The above code block can be found within Harmony : [url]http://www.runelocus.com/forums/showthread.php?93808-Harmony-Rapid-Lightweight-Framework[/url] For a 474 Server, change the opcode to [B]5[/B] instead of [B]99[/B] The parameter will take the following values to my understanding : [LIST] [*][COLOR=#FF0000]-1 / 0[/COLOR] - shows your regular minimap. [*][COLOR=#008000]2[/COLOR] - does not show the minimap, 'black-out' mode [/LIST] [CENTER] BEFORE - STATE OF - 0 / -1 [IMG]http://i.imgur.com/RuZ1L6u.png[/IMG] AFTER - STATE OF 2 [IMG]http://i.imgur.com/vC7umm0.png[/IMG] [/CENTER] Example of usage : [CODE] sendMinimapBlackout(2); [/CODE]
  5. I have added full magic on ground packet including tele grab which you need to do yourself (the actual spell). WorldPacketsDecoder: [CODE]else if (packetId == MAGIC_ON_GROUND_PACKET) { MagicOnGroundPacketHandler.handlePacket(player, stream, packetId); }[/CODE] Create [B]new file[/B] in com.rs.net.decoders.handlers. [CODE]package com.enso.net.decoders.handlers; import com.enso.game.item.Item; import com.enso.game.player.Player; import com.enso.game.player.content.MagicAbility; import com.enso.io.InputStream; /** * * [MENTION=52317]auth[/MENTION]or Fuzen Seth * [MENTION=3199]Sin[/MENTION]ce 9.12.2013 * [MENTION=33707]Cat[/MENTION]egory Represents a player using magic spell to a ground item. */ public class MagicOnGroundPacketHandler { /** * Tele grab spell id. */ public static final int TELE_GRAB = 44; /** * The regular spellbook. */ public static final int REGULAR_SPELLBOOK = 190; /** * The ancient spellbook. */ public static final int ANCIENT_SPELLBOOK = -1; /** * The lunar spellbook. */ public static final int LUNAR_SPELLBOOK = -1; /** * We handle the magic on ground packet. * [MENTION=75098]Para[/MENTION]m player * [MENTION=75098]Para[/MENTION]m stream * [MENTION=75098]Para[/MENTION]m packetId */ public static final void handlePacket(Player player, InputStream stream, int packetId) { int inventoryInter = stream.readInt() >> 16; int itemId = stream.readShort(); int junk = stream.readShort(); int itemSlot = stream.readShortLE(); int interfaceSet = stream.readIntV1(); int spellId = interfaceSet & 0xFFF; int magicInter = interfaceSet >> 16; Item item = new Item(itemId); switch (inventoryInter) { case REGULAR_SPELLBOOK: switch (spellId) { /** * Teleportation grab * Takes a item from ground by using magic. */ case TELE_GRAB: MagicAbility.preformTeleGrab(player, item); break; } break; default: if (player.isDeveloperMode()) System.out.println("Item:" + itemId + "slot:" + itemSlot + "spell:" + spellId + "i:" + interfaceSet + "l:" + magicInter + "x:" + junk + "k:" + inventoryInter); } } } [/CODE] Enjoy, [B]don't forget to replace imports from 'enso' to 'rs'.[/B]
  6. [CODE]package org.apollo.net.release.r751; import org.apollo.game.event.impl.LogoutEvent; import org.apollo.game.event.impl.OpenInterfaceEvent; import org.apollo.game.event.impl.PlayerSynchronizationEvent; import org.apollo.game.event.impl.RegionChangeEvent; import org.apollo.game.event.impl.SendRunScriptEvent; import org.apollo.game.event.impl.SendWindowPaneEvent; import org.apollo.game.event.impl.ServerMessageEvent; import org.apollo.game.event.impl.SetInterfaceComponentEvent; import org.apollo.game.event.impl.SetInterfaceItemModelEvent; import org.apollo.game.event.impl.SetInterfaceNpcModelEvent; import org.apollo.game.event.impl.SetInterfacePlayerModelEvent; import org.apollo.game.event.impl.UpdateItemsEvent; import org.apollo.game.event.impl.UpdateSkillEvent; import org.apollo.game.event.impl.UpdateSlottedItemsEvent; import org.apollo.net.meta.PacketMetaDataGroup; import org.apollo.net.release.Release; import org.apollo.net.release.r751.LogoutEventEncoder; import org.apollo.net.release.r751.OpenInterfaceEventEncoder; import org.apollo.net.release.r751.PlayerSynchronizationEventEncoder; import org.apollo.net.release.r751.RegionChangeEventEncoder; import org.apollo.net.release.r751.SendRunScriptEventEncoder; import org.apollo.net.release.r751.SendWindowPaneEventEncoder; import org.apollo.net.release.r751.ServerMessageEventEncoder; import org.apollo.net.release.r751.SetInterfaceComponentEventEncoder; import org.apollo.net.release.r751.SetInterfaceItemModelEventEncoder; import org.apollo.net.release.r751.SetInterfaceNpcModelEventEncoder; import org.apollo.net.release.r751.SetInterfacePlayerModelEventEncoder; import org.apollo.net.release.r751.UpdateItemsEventEncoder; import org.apollo.net.release.r751.UpdateSkillEventEncoder; import org.apollo.net.release.r751.UpdateSlottedItemsEventEncoder; public class Release751 extends Release { private static final int[] PACKET_LENGTHS = new int[256]; static { PACKET_LENGTHS[84] = 6; PACKET_LENGTHS[70] = -1; PACKET_LENGTHS[2] = -1; PACKET_LENGTHS[12] = 3; PACKET_LENGTHS[4] = 8; PACKET_LENGTHS[5] = -1; PACKET_LENGTHS[50] = -2; PACKET_LENGTHS[7] = 16; PACKET_LENGTHS[8] = -1; PACKET_LENGTHS[9] = 0; PACKET_LENGTHS[10] = 3; PACKET_LENGTHS[11] = -1; PACKET_LENGTHS[32] = -1; PACKET_LENGTHS[13] = 4; PACKET_LENGTHS[85] = 11; PACKET_LENGTHS[15] = 4; PACKET_LENGTHS[27] = 3; PACKET_LENGTHS[1] = -2; PACKET_LENGTHS[18] = 8; PACKET_LENGTHS[26] = 1; PACKET_LENGTHS[20] = 7; PACKET_LENGTHS[95] = 3; PACKET_LENGTHS[22] = 8; PACKET_LENGTHS[52] = 3; PACKET_LENGTHS[24] = 2; PACKET_LENGTHS[25] = 7; PACKET_LENGTHS[78] = 3; PACKET_LENGTHS[37] = 11; PACKET_LENGTHS[28] = 6; PACKET_LENGTHS[101] = -1; PACKET_LENGTHS[30] = -1; PACKET_LENGTHS[31] = -2; PACKET_LENGTHS[73] = 9; PACKET_LENGTHS[33] = 8; PACKET_LENGTHS[34] = 8; PACKET_LENGTHS[35] = 4; PACKET_LENGTHS[36] = 8; PACKET_LENGTHS[21] = 1; PACKET_LENGTHS[38] = 9; PACKET_LENGTHS[39] = 4; PACKET_LENGTHS[40] = -2; PACKET_LENGTHS[19] = 2; PACKET_LENGTHS[23] = -1; PACKET_LENGTHS[43] = -2; PACKET_LENGTHS[44] = -1; PACKET_LENGTHS[45] = 9; PACKET_LENGTHS[46] = -1; PACKET_LENGTHS[47] = -2; PACKET_LENGTHS[51] = 2; PACKET_LENGTHS[49] = 3; PACKET_LENGTHS[55] = 15; PACKET_LENGTHS[83] = 8; PACKET_LENGTHS[53] = 3; PACKET_LENGTHS[54] = -1; PACKET_LENGTHS[56] = 6; PACKET_LENGTHS[58] = 16; PACKET_LENGTHS[107] = 5; PACKET_LENGTHS[91] = 7; PACKET_LENGTHS[16] = 8; PACKET_LENGTHS[60] = 0; PACKET_LENGTHS[61] = 9; PACKET_LENGTHS[62] = 8; PACKET_LENGTHS[63] = 12; PACKET_LENGTHS[64] = 3; PACKET_LENGTHS[57] = 7; PACKET_LENGTHS[74] = 4; PACKET_LENGTHS[67] = 17; PACKET_LENGTHS[17] = -1; PACKET_LENGTHS[71] = -1; PACKET_LENGTHS[69] = 3; PACKET_LENGTHS[42] = -1; PACKET_LENGTHS[72] = -1; PACKET_LENGTHS[80] = 4; PACKET_LENGTHS[59] = 9; PACKET_LENGTHS[75] = 9; PACKET_LENGTHS[76] = -1; PACKET_LENGTHS[77] = 3; PACKET_LENGTHS[6] = -1; PACKET_LENGTHS[79] = -1; PACKET_LENGTHS[65] = 7; PACKET_LENGTHS[81] = 3; PACKET_LENGTHS[82] = 15; PACKET_LENGTHS[100] = 3; PACKET_LENGTHS[29] = 1; PACKET_LENGTHS[3] = 1; PACKET_LENGTHS[86] = 3; PACKET_LENGTHS[87] = 2; PACKET_LENGTHS[88] = 4; PACKET_LENGTHS[89] = -1; PACKET_LENGTHS[90] = -2; PACKET_LENGTHS[0] = -1; PACKET_LENGTHS[92] = 15; PACKET_LENGTHS[93] = 3; PACKET_LENGTHS[94] = 7; PACKET_LENGTHS[48] = 0; PACKET_LENGTHS[96] = 9; PACKET_LENGTHS[97] = -1; PACKET_LENGTHS[98] = 0; PACKET_LENGTHS[99] = 4; PACKET_LENGTHS[41] = 3; PACKET_LENGTHS[68] = -1; PACKET_LENGTHS[102] = 7; PACKET_LENGTHS[103] = 4; PACKET_LENGTHS[104] = -1; PACKET_LENGTHS[105] = 1; PACKET_LENGTHS[106] = 8; PACKET_LENGTHS[14] = 3; PACKET_LENGTHS[108] = -1; PACKET_LENGTHS[109] = 18; PACKET_LENGTHS[110] = -2; PACKET_LENGTHS[111] = -1; PACKET_LENGTHS[66] = 4; } public Release751() { super(751, PacketMetaDataGroup.createFromArray(PACKET_LENGTHS)); init(); } private void init() { // register decoders // register encoders register(RegionChangeEvent.class, new RegionChangeEventEncoder()); register(SendWindowPaneEvent.class, new SendWindowPaneEventEncoder()); register(PlayerSynchronizationEvent.class, new PlayerSynchronizationEventEncoder()); register(ServerMessageEvent.class, new ServerMessageEventEncoder()); register(LogoutEvent.class, new LogoutEventEncoder()); register(SetInterfaceComponentEvent.class, new SetInterfaceComponentEventEncoder()); register(SendRunScriptEvent.class, new SendRunScriptEventEncoder()); register(SetInterfaceNpcModelEvent.class, new SetInterfaceNpcModelEventEncoder()); register(UpdateSkillEvent.class, new UpdateSkillEventEncoder()); register(SetInterfaceItemModelEvent.class, new SetInterfaceItemModelEventEncoder()); register(UpdateItemsEvent.class, new UpdateItemsEventEncoder()); register(SetInterfacePlayerModelEvent.class, new SetInterfacePlayerModelEventEncoder()); register(OpenInterfaceEvent.class, new OpenInterfaceEventEncoder()); register(UpdateSlottedItemsEvent.class, new UpdateSlottedItemsEventEncoder()); } } [/CODE]
  7. As you may know, packet 69 doesn't work on 562s. Packet 69 is used in some item right clicks and impling jar looting. [U]Server:[/U] [B]PacketHandlers.java[/B] Look for [code] ItemPacketHandler item = new ItemPacketHandler(); [/code] And put a 69 with all the numbers in there. [B]ItemPacketHandler.java[/B] Find: [code] case 69: [/code] And replace it with this: [code] case 69: /* * Item Loot */ itemLoot(player, packet); break; [/code] Next, look for: [code] private void lootItem(final Player p, final Packet packet) { [/code] And replace that method with: [code] private void itemLoot(final Player player, final Packet packet) { final int interfaceId = packet.readShort(); @SuppressWarnings("unused") final int junk = packet.readShort(); final int id = packet.readShort(); if(!player.getInventory().contains(id)) { return; } if (interfaceId == 149) { switch (id) { case 11238://impling jar //make it do stuff here break; } } } [/code] [U]Client[/U] [B]Class2.java[/B] Look for: [code] if (i_4_ == 42) { Class131_Sub2_Sub11.anInt5715++; Class93.aClass131_Sub15_Sub2_1226.createPacket(69); Class93.aClass131_Sub15_Sub2_1226.writeInt(i_3_); Class93.aClass131_Sub15_Sub2_1226.writeShortA(i, (byte) -122); Class93.aClass131_Sub15_Sub2_1226.writeLEShortA(-12614, i_5_); Class131_Sub2_Sub1.anInt5561 = 0; Class131_Sub41_Sub12.aClass173_6321 = Class190.method2615(i_3_, -67); Class71.anInt948 = i; } [/code] And replace it with: [code] if (i_4_ == 42) { Class93.aClass131_Sub15_Sub2_1226.createPacket(69); Class76.anInt1038++; Class93.aClass131_Sub15_Sub2_1226.writeInt(i_3_); Class93.aClass131_Sub15_Sub2_1226.writeShort(i_5_); Class93.aClass131_Sub15_Sub2_1226.writeShortA(i, (byte) -121); Class131_Sub2_Sub1.anInt5561 = 0; Class131_Sub41_Sub12.aClass173_6321 = Class190.method2615(i_3_, -5); Class71.anInt948 = i; } [/code] Hope that helped some of you. If it still doesn't work, post below.
  8. hi i get in my console Missing packet 16, expected size: 2, actual size: 2 how can i fix that and where
  9. [SIZE=4][FONT=georgia][COLOR=#800080]Um.. does anyone know the correct Packet ID to remove your dot from the mini-map?[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]I want to add a ::hide command to my 562, but all I have been able to figure out is making the ::hide command turn you into a nulled NPC.[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]That makes you invisible... but your dot is still on the mini-map.[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]I'm assuming that it is a Packet ID, but I do not know which one it is. Could someone please tell me?[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]And if I am wrong, could someone tell me the correct way to do this?[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]I understand that this is considered 'spoon feeding'.. but I have been searching for this for quite some time now. There are hundreds of Packet ID's... I've tested alot of them, but none of them work for this.[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]I've looked on Rune-Server, Mopar, Google, and I even ventured over to Bing.. and now Runelocus. [/COLOR][/FONT] [FONT=georgia][COLOR=#800080]I appreciate any help that I can get.[/COLOR][/FONT] [FONT=georgia][COLOR=#800080]Thank you.[/COLOR][/FONT][/SIZE]
  10. Dutch Lmfao

    starter packet

    hello, i got a starter packet and everything works but how i do owner ingame or master ::owner and ::master
  11. Hello, i got a problem. i have a website rhexcscape.webs.com but how i put my server = client into my website someone told me you need html and jar i dont know what that is
  12. Tanner

    Where is packet 111?

    In dementhium [quote name='Nouish']Change the one byte sent in packet 111 to 1 instead of 0.[/QUOTE]
  13. I have this packet for lower revisions, but not for this one. I've never been able to identify packets, I always had Emperial do that for me when I asked. Could anyone possibly take the time to identify it for me? If you aren't, then don't reply. Also, don't say it's not a packet, because it is.
  14. Hey soo i finally got my Tyden client working.. and then when i log in, i get this message on the server window: Unhandled packet: [id=155, Ien=8,data=0x3F008DD740500D61]. Could someone help me with this? For a begginer in java, i take a guess that the login packet or the send image or something like that has an error? anyways... Hope someone can help me Thanks in advance, Godzskillz.
  15. I'm trying to use the launchURL method for something server sided. However, the method is client sided. Therefore, I was told I must create and send a packet in order to use the launchURL method. How would I do this? Client<Client.java [code] public void launchURL(String url) { String osName = System.getProperty("os.name"); try { if (osName.startsWith("Mac OS")) { Class fileMgr = Class.forName("com.apple.eio.FileManager"); Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] {String.class}); openURL.invoke(null, new Object[] {url}); } else if (osName.startsWith("Windows")) Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url); else { String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape", "safari" }; String browser = null; for (int count = 0; count < browsers.length && browser == null; count++) if (Runtime.getRuntime().exec(new String[] {"which", browsers[count]}).waitFor() == 0) browser = browsers[count]; if (browser == null) { throw new Exception("Could not find web browser"); } else Runtime.getRuntime().exec(new String[] {browser, url}); } } catch (Exception e) { pushMessage("Failed to open URL.", 0, ""); } } [/code]
  16. Ok so I know with a PI 317 you can change in config.java: [code]public static final int MAX_PROCESS_PACKETS[/code] But in a delta base 317 how do you change the MAX_PROCESS_PACKETS? I looked all over, What is the equivalent? I need to change it so people don't get disconnect when they use my bank all command. [code]case 31194: //banks all items for(int l = 0; l <= 27; l++) { System.out.println(l); c.bankItem(c.playerItems[l], l, c.playerItemsN[l]); } break;[/code]
  17. Hello, When I try to examine an NPC, I always get this error in the command. [WorldPacketsDecoder] Missing packet 92, expected size: 3, actual size: 3 the packet in packetLoader were already added. I also added private final static int NPC_EXAMINE_PACKET = 92; I added the case else if (packetId == NPC_EXAMINE_PACKET){ //do stuff } But it's like if it doesn't care about it... Nothing to do, still the same error. Note: I am compiling.
  18. 23286027318020

    Packet 18

    When I try to attack a Chompy Bird it says missing Packet 18, what would it entail for me to correct this?
  19. This is the correct ClickItem packet(#122) Action 1 (parts)(Information coming from RSWiki.mopar): Add in Stream.java: [code] public int readSignedShortLittleEndianA() { currentOffset += 2; int i = (buffer[currentOffset - 1] & 0xff) + ((buffer[currentOffset - 2] - 128 & 0xff) << 8); // if (i > 32767) i -= 0x10000; return i; } [/code] ClickItem.java: [code] int frame = c.getInStream().readSignedShortLittleEndianA(); //use to be readSignedWordBigEndianA(); int itemSlot = c.getInStream().readSignedWordA(); //use to be readUnsignedWordA(); int itemId = c.getInStream().readSignedWordBigEndian(); //us to be unsigned. [/code] Please do not post like this if you do: "Why did you name it readSigned[b]Short[/b]LittleEndianA()?!?!?" Obviously runescape must have used shorts or something like that in their code, but it was then converted to a byte, so then when you read it, it can be produced to either a "short" or an "int".(I'm not too sure about this statement being correct, so w.e) I believe that statement because, shorts are basically integers with a smaller [b]MAX[/b] value. That is why my naming is so bad..
  20. I am working on a networking pong game for my programming class using Netty and I get this exception when the server receives a message: [code] java.lang.ClassCastException: org.jboss.netty.buffer.BigEndianHeapChannelBuffer cannot be cast to com.trent.net.packet.Packet at com.trent.net.ServerChannelHandler.messageReceived(ServerChannelHandler.java:17) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349) at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [/code] The client receives packets correctly and handles them but the server cannot cast the messageevent to a packet for some reason. My client and server packet classes are identical as well as the encoders and decoders. Anyone know what the problem is?
  21. I was wondering if anyone has the remove object packet for the 562 revision. It is the last thing I need for my woodcutting skill :(
  22. Does anyone know the packet id for interface click on npc. In other words: On either interface 662 or 747, click attack, then click on an NPC. I've tried 65 and 66 (I think one of them is for playeroptions though). Source: Dementhium 614/634 Thanks!
  23. illpkuras

    music packet id

    Anyone know the packet id for music for a 637/639 client?
  24. nvm upgrading above 614 to get around limitations
×