Jump to content

Search the Community

Showing results for tags 'packets'.



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 20 results

  1. Recently I have been attemping to allow a client I like to work for a different source. UID/RSA is alright. When I click login, It logs in but then logs me out. Get these errors in cmd: (Changes every time) [CODE]Error: Packet not handled: 37,0 - 114,134 Error: Packet not handled: 237,0 - 134,249 Error: Packet not handled: 54,0 - 237,134 Error: Packet not handled: 186,0 - 54,237 Error: Packet not handled: 20,0 - 186,54 Error: Packet not handled: 115,0 - 20,186 Error: Packet not handled: 189,0 - 200,87 Error: Packet not handled: 231,0 - 189,200 Error: Packet not handled: 243,0 - 231,189 Error: Packet not handled: 237,0 - 243,231 Error: Packet not handled: 111,0 - 237,243 Error: Packet not handled: 89,0 - 111,237 Error: Packet not handled: 56,0 - 89,111 Error: Packet not handled: 130,1 - 56,89 Error: Packet not handled: 59,0 - 142,130 Error: Packet not handled: 216,0 - 79,246 java.lang.NullPointerException at Client.parsePacket(Client.java:16464) at Client.mainGameProcessor(Client.java:6456) at Client.processGameLoop(Client.java:5604) at RSApplet.run(RSApplet.java:226) at Client.run(Client.java:8618) at java.lang.Thread.run(Unknown Source)[/CODE] [CODE]Error: Packet not handled: 33,0 - 134,126 Error: Packet not handled: 39,0 - 33,134 Error: Packet not handled: 3,1 - 39,33 Error: Packet not handled: 47,6 - 200,3 Error: Packet not handled: 220,0 - 230,97 Error: Packet not handled: 205,0 - 220,230 Error: Packet not handled: 20,0 - 205,220 Error: Packet not handled: 205,0 - 20,205 Error: Packet not handled: 193,0 - 205,20 Error: Packet not handled: 202,0 - 193,205 Error: Packet not handled: 181,0 - 202,193 Error: Packet not handled: 93,0 - 84,181 Error: Packet not handled: 201,0 - 93,84 Error: Packet not handled: 229,0 - 201,93 Error: Packet not handled: 192,0 - 229,201 Error: Packet not handled: 154,0 - 106,192 Error: Packet not handled: 154,0 - 154,106 Error: Packet not handled: 130,177 - 154,154 Error: Packet not handled: 55,0 - 130,154 Error: Packet not handled: 159,0 - 55,130 Error: Packet not handled: 169,0 - 159,55 Error: Packet not handled: 132,0 - 4,70 Error: Packet not handled: 7,0 - 132,4 Error: Packet not handled: 250,5 - 7,132 Error: Packet not handled: 56,0 - 250,7 Error: Packet not handled: 49,0 - 56,250 Error: Packet not handled: 194,0 - 240,49 Error: Packet not handled: 237,0 - 254,194 Error: Packet not handled: 140,3 - 176,134 Error: Packet not handled: 52,0 - 140,176 Error: Packet not handled: 252,0 - 1,134 Error: Packet not handled: 40,0 - 252,1 Error: Packet not handled: 80,0 - 40,252 Error: Packet not handled: 216,0 - 80,40 Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 208 at Client.drawTabArea(Client.java:2605) at Client.drawGameScreen(Client.java:12823) at Client.processDrawing(Client.java:13891) at RSApplet.run(RSApplet.java:234) at Client.run(Client.java:8618) at java.lang.Thread.run(Unknown Source)[/CODE] Please help. Reply/PM/Skype: tyler.prz
  2. I am trying to send packets from netty client to server. Data inside packets is in a channelbuffer. When client or server receives a message it splits the message into bytes. For example if i send "Hello" to my server then it will call my decoder method 5 times for each byte. My question is - How do i handle this? How can i get a full message? For example i want to tell server that client has interacted with NPC. It is probably supposed to send a packet with an opcode + npcId. Or what if i want to send a chat message to the server?
  3. sendAccessMask, resetItemSlot and setItemSlot if u got any or all of them please reply :)
  4. So basically i want to know how you send packets to the server from the client. to be more precise, I want to be able to call server methods such as logout. an explanation or links to resources would be good. :)
  5. My server has recently had a hacker who is believed to have sent fake packets to the server and changed the ground item, but I have no idea where it handles ground items for packets and how to make it check. Any help? Spoon-feeding would be nice!
  6. it keeps spamming my chatbox (only mine). Ive tried restarted the server but it didn't work. and ive also closed the client. nothing works. what can i do to make it stop. Rune-evo v3 source
  7. Today i'm bringing you a pure 484 with refactored deob and such. It has most of packets you will need and has some content already started, alching is added and base for magic. I would love to see some progress from someone who has used Alrium as a base! Enjoy. Networking is MINA, you probably want to change that. :P Also supports Scripts manager, credits to Graham. (Python, JS). [B] 484 Deob [Refactored] + Server Package: [/B][url]https://mega.co.nz/#!ch0zgKTA!Nj4U9QQhiPVuCY0rGhDlHWR8kUNNm4aIdaFrnhher9Y[/url] [B]Features[/B] -Most packets you need -Update server -Prices -Item definitions -NPCUpdate -Player Update -Ground items -Shops -Banking (nearly done) -Equip ids -Npc spawns -Magic -Melee combat -Ranged combat -Magic combat (needs more work) -Sounds -Character saving -Equip items -Eating foods -Dialogues And more... [B] Media[/B] [img]http://puu.sh/489YB.jpg[/img] [img]http://puu.sh/48a2x.jpg[/img] [img]http://puu.sh/48a32.jpg[/img] [img]http://puu.sh/48a6W.jpg[/img] [img]http://puu.sh/48a8O.jpg[/img] [img]http://puu.sh/48aaF.jpg[/img] [img]http://puu.sh/48ae7.jpg[/img] [img]http://puu.sh/48aeW.jpg[/img] [B] CONTRIBRUTORS [/B] * Graham Edgecombe <[email protected]> * Blake Beaupain - "Defqon" <[email protected]> * Fuzen Seth <Skype:nexonltd> * Stewie *Brown *Mister Requa *Mister Stewie *Primadude *Spear *Mystic Flow' As I said, I released only so some people around find this useful and could to start project out of this, I would love to see progress.
  8. I want to identify packets such as sendInterface and sendTab, but I honestly don't know where to look in the client. Could somebody kindly push me in the right direction?
  9. Please NOTE that the revision prefix is totally wrong. There wasn't an 530 prefix, so I selected 317. Please refer to the frameworks below to 530+, thanks. I've created this and wanted to share it with everyone at RuneLocus. [SIZE=5]All you need to do is use the following code:[/SIZE] [CODE] /** * Sets a config on an interface. * * [MENTION=75098]Para[/MENTION]m interfaceId * The interface id. * [MENTION=75098]Para[/MENTION]m childId * The child id. * [MENTION=75098]Para[/MENTION]m hidden * The hidden flag. * [MENTION=184045]return[/MENTION] The action sender instance, for chaining. */ /** * Framework created by: Visible lolking * Please do not leech or release it as your work. */ public ActionSender sendBlankRunScript(int id) { player.getChannel().write( new PacketBuf(115, PacketType.SHORT).putShort(0) .putJagString("").putInt(id).toPacket()); return this; } public ActionSender testRunScript(int id2, int id, Object[] params, String types) { if (params.length != types.length()) { throw new IllegalArgumentException( "params size should be the same as types length"); } PacketBuf buf = new PacketBuf(115, PacketType.SHORT); buf.putShort(interfaceCount++); buf.putJagString(types); int idx = 0; for (int i = types.length() - 1; i >= 0; i--) { if (types.charAt(i) == 's') { buf.putJagString((String) params[idx]); } else { buf.putInt((Integer) params[idx]); } idx++; } buf.putInt(id); player.getChannel().write(buf.toPacket()); return this; } /** * Sends an access mask to the client. * * [MENTION=75098]Para[/MENTION]m set * The set. * [MENTION=75098]Para[/MENTION]m interfaceId * The interface id. * [MENTION=75098]Para[/MENTION]m offset * The offset. * [MENTION=75098]Para[/MENTION]m length * The length. * [MENTION=184045]return[/MENTION] The action sender instance, for chaining. */ public ActionSender sendAccessMask(int set, int interfaceId, int offset, int length) { PacketBuf buf = new PacketBuf(165); buf.putLEShort(interfaceCount++); buf.putLEShort(length); buf.putInt(interfaceId); buf.putShortA(offset); buf.putInt1(set); player.getChannel().write(buf.toPacket()); return this; } public void hideShow(int interfaceId, int childId, boolean hidden) { PacketBuf buf = new PacketBuf(21, PacketType.SHORT); buf.putByteC((byte) (hidden ? 1 : 0)).putShort(interfaceCount++) .putLEInt(interfaceId << 16 | childId); player.getChannel().write(buf.toPacket()); } [/CODE] Please [SIZE=5]DO NOT[/SIZE] [COLOR="#FF0000"]release this as your work[/COLOR] or post it [COLOR="#FF0000"]without credits[/COLOR]. Anyhow, thank you for using it. Good luck. Cheers, lolking.
  10. [SIZE=5]Server -> Client Packets[/SIZE] [TABLE] [TR] [TH]Opcode[/TH] [TH] Type[/TH] [TH] Length (bytes)[/TH] [TH] Name[/TH] [TH] Description[/TH] [/TR] [TR] [TD] 1[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Animation_reset"]Animation reset[/URL][/TD] [TD] Resets all animations in the immediate area.[/TD] [/TR] [TR] [TD] 24[/TD] [TD] FIXED[/TD] [TD] 1[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Flash_sidebar?action=edit&redlink=1"]Flash sidebar[/URL][/TD] [TD] Causes a sidebar icon to start flashing.[/TD] [/TR] [TR] [TD] 35[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Camera_shake?action=edit&redlink=1"]Camera shake[/URL][/TD] [TD] Causes the camera to shake.[/TD] [/TR] [TR] [TD] 50[/TD] [TD] FIXED[/TD] [TD] 9[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Send_add_friend?action=edit&redlink=1"]Send add friend[/URL][/TD] [TD] Sends a friend to the friend list.[/TD] [/TR] [TR] [TD] 53[/TD] [TD] VARIABLE_SHORT[/TD] [TD] N/A[/TD] [TD] Set stack size[/TD] [TD] Sets a stack size on inventory interface[/TD] [/TR] [TR] [TD] 68[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Reset_button_state?action=edit&redlink=1"]Reset button state[/URL][/TD] [TD] Resets the button state for all buttons.[/TD] [/TR] [TR] [TD] 70[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Interface_offset?action=edit&redlink=1"]Interface offset[/URL][/TD] [TD] Sets the offset for drawing of an interface.[/TD] [/TR] [TR] [TD] 71[/TD] [TD] FIXED[/TD] [TD] 3[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Send_sidebar_interface?action=edit&redlink=1"]Send sidebar interface[/URL][/TD] [TD] Assigns an interface to one of the tabs in the game sidebar.[/TD] [/TR] [TR] [TD] 72[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Clear_inventory?action=edit&redlink=1"]Clear inventory[/URL][/TD] [TD] Clears an interface's inventory.[/TD] [/TR] [TR] [TD] 73[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Load_map_region?action=edit&redlink=1"]Load map region[/URL][/TD] [TD] Loads a new map region.[/TD] [/TR] [TR] [TD] 79[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Scroll_position?action=edit&redlink=1"]Scroll position[/URL][/TD] [TD] Sets the scrollbar position of an interface.[/TD] [/TR] [TR] [TD] 97[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Show_interface?action=edit&redlink=1"]Show interface[/URL][/TD] [TD] Displays a normal interface.[/TD] [/TR] [TR] [TD] 99[/TD] [TD] FIXED[/TD] [TD] 1[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Minimap_State?action=edit&redlink=1"]Minimap State[/URL][/TD] [TD] Sets the mini map's state.[/TD] [/TR] [TR] [TD] 107[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Reset_camera?action=edit&redlink=1"]Reset camera[/URL][/TD] [TD] Resets the camera position.[/TD] [/TR] [TR] [TD] 109[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Logout?action=edit&redlink=1"]Logout[/URL][/TD] [TD] Disconnects the client from the server.[/TD] [/TR] [TR] [TD] 110[/TD] [TD] FIXED[/TD] [TD] 1[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Run_energy?action=edit&redlink=1"]Run energy[/URL][/TD] [TD] Sends the players run energy level.[/TD] [/TR] [TR] [TD] 114[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:System_update?action=edit&redlink=1"]System update[/URL][/TD] [TD] Sends how many seconds until a 'System Update.'[/TD] [/TR] [TR] [TD] 122[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Interface_color?action=edit&redlink=1"]Interface color[/URL][/TD] [TD] Changes the color of an interface.[/TD] [/TR] [TR] [TD] 126[/TD] [TD] VARIABLE_SHORT[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Send_text?action=edit&redlink=1"]Send text[/URL][/TD] [TD] Attaches text to an interface.[/TD] [/TR] [TR] [TD] 135[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Skill_level?action=edit&redlink=1"]Skill level[/URL][/TD] [TD] Sends a skill level to the client.[/TD] [/TR] [TR] [TD] 164[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Chat_interface?action=edit&redlink=1"]Chat interface[/URL][/TD] [TD] Shows an interface in the chat box.[/TD] [/TR] [TR] [TD] 176[/TD] [TD] FIXED[/TD] [TD] 10[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Open_welcome_screen"]Open welcome screen[/URL][/TD] [TD] Displays the welcome screen.[/TD] [/TR] [TR] [TD] 196[/TD] [TD] VARIABLE_BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Send_private_message?action=edit&redlink=1"]Send private message[/URL][/TD] [TD] Sends a private message to another player.[/TD] [/TR] [TR] [TD] 200[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Interface_animation?action=edit&redlink=1"]Interface animation[/URL][/TD] [TD] Sets an interface's model animation.[/TD] [/TR] [TR] [TD] 206[/TD] [TD] FIXED[/TD] [TD] 3[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Chat_settings?action=edit&redlink=1"]Chat settings[/URL][/TD] [TD] Sends the chat privacy settings.[/TD] [/TR] [TR] [TD] 208[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Walkable_interface?action=edit&redlink=1"]Walkable interface[/URL][/TD] [TD] Displays an interface in walkable mode.[/TD] [/TR] [TR] [TD] 214[/TD] [TD] VARIABLE_SHORT[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Send_add_ignore?action=edit&redlink=1"]Send add ignore[/URL][/TD] [TD] Sends a ignored player to the ignore list.[/TD] [/TR] [TR] [TD] 219[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Clear_screen?action=edit&redlink=1"]Clear screen[/URL][/TD] [TD] Clears the screen of all open interfaces.[/TD] [/TR] [TR] [TD] 221[/TD] [TD] FIXED[/TD] [TD] 1[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Friends_list_status?action=edit&redlink=1"]Friends list status[/URL][/TD] [TD] Friends list load status.[/TD] [/TR] [TR] [TD] 230[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Interface_model_rotation?action=edit&redlink=1"]Interface model rotation[/URL][/TD] [TD] Sets an interface's model rotation and zoom[/TD] [/TR] [TR] [TD] 240[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Weight?action=edit&redlink=1"]Weight[/URL][/TD] [TD] Sends the players weight amount.[/TD] [/TR] [TR] [TD] 241[/TD] [TD] VARIABLE_SHORT[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Construct_map_region?action=edit&redlink=1"]Construct map region[/URL][/TD] [TD] Constructs a dynamic map region using a palette of 8*8 tiles.[/TD] [/TR] [TR] [TD] 246[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Interface_item?action=edit&redlink=1"]Interface item[/URL][/TD] [TD] Displays an item model inside an interface.[/TD] [/TR] [TR] [TD] 248[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Inventory_overlay?action=edit&redlink=1"]Inventory overlay[/URL][/TD] [TD] Displays an interface over the sidebar area.[/TD] [/TR] [TR] [TD] 249[/TD] [TD] FIXED[/TD] [TD] 3[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Initialize_player?action=edit&redlink=1"]Initialize player[/URL][/TD] [TD] Sends the player's membership status and their current index on the server's player list.[/TD] [/TR] [TR] [TD] 253[/TD] [TD] VARIABLE_BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Send_message?action=edit&redlink=1"]Send message[/URL][/TD] [TD] Sends a server message (e.g. 'Welcome to RuneScape') or trade/duel request.[/TD] [/TR] [/TABLE] [SIZE=5] Client -> Server Packets[/SIZE] [TABLE] [TR] [TH]Opcode[/TH] [TH] Type[/TH] [TH] Length (bytes)[/TH] [TH] Name[/TH] [TH] Description[/TH] [/TR] [TR] [TD] 0[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Idle?action=edit&redlink=1"]Idle[/URL][/TD] [TD] Sent when there are no actions being performed by the player for this cycle.[/TD] [/TR] [TR] [TD] 3[/TD] [TD] FIXED[/TD] [TD] 1[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Focus_change?action=edit&redlink=1"]Focus change[/URL][/TD] [TD] Sent when the game client window goes out of focus.[/TD] [/TR] [TR] [TD] 4[/TD] [TD] VARIABLE BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Chat?action=edit&redlink=1"]Chat[/URL][/TD] [TD] Sent when the player enters a chat message.[/TD] [/TR] [TR] [TD] 14[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Item_on_player?action=edit&redlink=1"]Item on player[/URL][/TD] [TD] Sent when a player uses an item on another player.[/TD] [/TR] [TR] [TD] 16[/TD] [TD] FIXED[/TD] [TD] 1[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Alternate_item_option_2?action=edit&redlink=1"]Alternate item option 2[/URL][/TD] [TD] Sent when a player uses an item. This is an alternate item option.[/TD] [/TR] [TR] [TD] 17[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:NPC_action_2?action=edit&redlink=1"]NPC action 2[/URL][/TD] [TD] Sent when a player clicks the second option of an NPC.[/TD] [/TR] [TR] [TD] 21[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:NPC_action_3?action=edit&redlink=1"]NPC action 3[/URL][/TD] [TD] Sent when a player clicks the third option of an NPC.[/TD] [/TR] [TR] [TD] 25[/TD] [TD] FIXED[/TD] [TD] 10[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Item_on_floor?action=edit&redlink=1"]Item on floor[/URL][/TD] [TD] Sent when a player uses an item on another item thats on the floor.[/TD] [/TR] [TR] [TD] 39[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Follow?action=edit&redlink=1"]Follow[/URL][/TD] [TD] Sent when a player clicks the follow option on another player.[/TD] [/TR] [TR] [TD] 40[/TD] [TD] FIXED[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:NPC_Dialogue?action=edit&redlink=1"]NpcDialogue[/URL][/TD] [TD] N/A[/TD] [/TR] [TR] [TD] 41[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Equip_item?action=edit&redlink=1"]Equip item[/URL][/TD] [TD] Sent when a player equips an item.[/TD] [/TR] [TR] [TD] 43[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Bank_10_items?action=edit&redlink=1"]Bank 10 items[/URL][/TD] [TD] Sent when a player banks 10 of a certain item.[/TD] [/TR] [TR] [TD] 53[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Item_on_item?action=edit&redlink=1"]Item on item[/URL][/TD] [TD] Sent when a player uses an item with another item.[/TD] [/TR] [TR] [TD] 70[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Object_action_3?action=edit&redlink=1"]Object action 3[/URL][/TD] [TD] Sent when the player clicks the third action available for an object.[/TD] [/TR] [TR] [TD] 72[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Attack_%28NPC%29?action=edit&redlink=1"]Attack (NPC)[/URL][/TD] [TD] Sent when a player attacks an NPC.[/TD] [/TR] [TR] [TD] 73[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Trade_request?action=edit&redlink=1"]Trade request[/URL][/TD] [TD] Sent when a player requests a trade with another player.[/TD] [/TR] [TR] [TD] 74[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Remove_ignore?action=edit&redlink=1"]Remove ignore[/URL][/TD] [TD] Sent when a player removes a player from their ignore list.[/TD] [/TR] [TR] [TD] 79[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Light_item?action=edit&redlink=1"]Light item[/URL][/TD] [TD] Sent when a player attempts to light logs on fire.[/TD] [/TR] [TR] [TD] 86[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Camera_movement?action=edit&redlink=1"]Camera movement[/URL][/TD] [TD] Sent when the player moves the camera.[/TD] [/TR] [TR] [TD] 87[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Drop_item?action=edit&redlink=1"]Drop item[/URL][/TD] [TD] Sent when a player wants to drop an item onto the ground.[/TD] [/TR] [TR] [TD] 95[/TD] [TD] FIXED[/TD] [TD] 3[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Privacy_options?action=edit&redlink=1"]Privacy options[/URL][/TD] [TD] Sent when a player changes their privacy options (i.e. public chat).[/TD] [/TR] [TR] [TD] 98[/TD] [TD] VARIABLE_BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Walk_on_command?action=edit&redlink=1"]Walk on command[/URL][/TD] [TD] Sent when the player should walk somewhere according to a certain action performed, such as clicking an object.[/TD] [/TR] [TR] [TD] 101[/TD] [TD] FIXED[/TD] [TD] 13[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Design_screen?action=edit&redlink=1"]Design screen[/URL][/TD] [TD] Sent when a player is choosing their character design options.[/TD] [/TR] [TR] [TD] 103[/TD] [TD] VARIABLE_BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Player_command?action=edit&redlink=1"]Player command[/URL][/TD] [TD] Sent when the player enters a command in the chat box (e.g. "::command")[/TD] [/TR] [TR] [TD] 117[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Bank_5_items?action=edit&redlink=1"]Bank 5 items[/URL][/TD] [TD] Sent when a player banks 5 of a certain item.[/TD] [/TR] [TR] [TD] 121[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Loading_finished?action=edit&redlink=1"]Loading finished[/URL][/TD] [TD] Sent when the client finishes loading a map region.[/TD] [/TR] [TR] [TD] 122[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Item_action_1?action=edit&redlink=1"]Item action 1[/URL][/TD] [TD] Sent when the player clicks the first option of an item, such as "Bury" for bones.[/TD] [/TR] [TR] [TD] 126[/TD] [TD] VARIABLE BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Private_message?action=edit&redlink=1"]Private message[/URL][/TD] [TD] Sent when a player sends a private message to another player.[/TD] [/TR] [TR] [TD] 129[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Bank_all_items?action=edit&redlink=1"]Bank all items[/URL][/TD] [TD] Sent when a player banks all of a certain item that they have in their inventory.[/TD] [/TR] [TR] [TD] 130[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Close_window?action=edit&redlink=1"]Close window[/URL][/TD] [TD] Sent when a player presses the close, exit or cancel button on an interface.[/TD] [/TR] [TR] [TD] 132[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Object_action_1?action=edit&redlink=1"]Object action 1[/URL][/TD] [TD] Sent when the player clicks the first option of an object, such as "Cut" for trees.[/TD] [/TR] [TR] [TD] 133[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Add_ignore?action=edit&redlink=1"]Add ignore[/URL][/TD] [TD] Sent when a player adds a player to their ignore list.[/TD] [/TR] [TR] [TD] 135[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Bank_X_items_part-1?action=edit&redlink=1"]Bank X items part-1[/URL][/TD] [TD] Sent when a player requests to bank an X amount of items.[/TD] [/TR] [TR] [TD] 139[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Trade_answer"]Trade answer[/URL][/TD] [TD] Sent when a player answers a trade request from another player.[/TD] [/TR] [TR] [TD] 145[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Unequip_item?action=edit&redlink=1"]Unequip item[/URL][/TD] [TD] Sent when a player unequips an item.[/TD] [/TR] [TR] [TD] 155[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:NPC_action_1?action=edit&redlink=1"]NPC action 1[/URL][/TD] [TD] Sent when a player clicks first option of an NPC, such as "Talk."[/TD] [/TR] [TR] [TD] 164[/TD] [TD] VARIABLE_BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Regular_walk?action=edit&redlink=1"]Regular walk[/URL][/TD] [TD] Sent when the player walks regularly.[/TD] [/TR] [TR] [TD] 185[/TD] [TD] FIXED[/TD] [TD] 2[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Button_click"]Button click[/URL][/TD] [TD] Sent when a player clicks an in-game button.[/TD] [/TR] [TR] [TD] 188[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Add_friend?action=edit&redlink=1"]Add friend[/URL][/TD] [TD] Sent when a player adds a friend to their friend list.[/TD] [/TR] [TR] [TD] 192[/TD] [TD] FIXED[/TD] [TD] 12[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Item_on_object?action=edit&redlink=1"]Item on object[/URL][/TD] [TD] Sent when a a player uses an item on an object.[/TD] [/TR] [TR] [TD] 202[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Idle_logout?action=edit&redlink=1"]Idle logout[/URL][/TD] [TD] Sent when the player has become idle and should be logged out.[/TD] [/TR] [TR] [TD] 208[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Bank_X_items_part-2?action=edit&redlink=1"]Bank X items part-2[/URL][/TD] [TD] Sent when a player enters an X amount of items they want to bank.[/TD] [/TR] [TR] [TD] 210[/TD] [TD] FIXED[/TD] [TD] 0[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Region_change?action=edit&redlink=1"]Region change[/URL][/TD] [TD] Sent when a player enters a new map region.[/TD] [/TR] [TR] [TD] 214[/TD] [TD] FIXED[/TD] [TD] 7[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Move_item?action=edit&redlink=1"]Move item[/URL][/TD] [TD] Sent when a player moves an item from one slot to another.[/TD] [/TR] [TR] [TD] 215[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Remove_friend?action=edit&redlink=1"]Remove friend[/URL][/TD] [TD] Sent when a player removes a friend from their friend list.[/TD] [/TR] [TR] [TD] 218[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Report_player?action=edit&redlink=1"]Report player[/URL][/TD] [TD] Sent when a player reports another player.[/TD] [/TR] [TR] [TD] 236[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Pickup_ground_item?action=edit&redlink=1"]Pickup ground item[/URL][/TD] [TD] Sent when the player picks up an item from the ground.[/TD] [/TR] [TR] [TD] 237[/TD] [TD] FIXED[/TD] [TD] 8[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Magic_on_items?action=edit&redlink=1"]Magic on items[/URL][/TD] [TD] Sent when a player casts magic on the items in their inventory.[/TD] [/TR] [TR] [TD] 241[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Mouse_click?action=edit&redlink=1"]Mouse click[/URL][/TD] [TD] Sent when the player clicks somewhere on the game screen.[/TD] [/TR] [TR] [TD] 248[/TD] [TD] VARIABLE_BYTE[/TD] [TD] N/A[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Map_walk?action=edit&redlink=1"]Map walk[/URL][/TD] [TD] Sent when the player walks using the map. Has 14 additional (assumed to be anticheat) bytes added to the end of it that are ignored.[/TD] [/TR] [TR] [TD] 249[/TD] [TD] FIXED[/TD] [TD] 4[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Magic_on_player?action=edit&redlink=1"]Magic on player[/URL][/TD] [TD] Sent when a player attempts to cast magic on another player.[/TD] [/TR] [TR] [TD] 252[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Object_action_2?action=edit&redlink=1"]Object action 2[/URL][/TD] [TD] Sent when the player clicks the second option available for an object.[/TD] [/TR] [TR] [TD] 253[/TD] [TD] FIXED[/TD] [TD] 6[/TD] [TD] [URL="http://rsps.wikia.com/wiki/317:Ground_Item_Action?action=edit&redlink=1"]Ground Item Action[/URL][/TD] [TD] Sent when the player clicks the first option for a ground item (I.E. 'Light Logs')[/TD] [/TR] [/TABLE] thanks to MITB wikia for these tables. Nobody had any 317 packet info posted here, so here we are. Now to write the data, use the following formats (credits to chris leanbow12 for the list. [QUOTE] 81 - Player updating Not gonna explain, you can find all info here: 176 - Show welcome Screen Days since recovery questions changed - ByteC Unread messages - ShortA Player is member - Byte Player ip address - Int1 64 - Deletes ground item coordinate X - ByteC coordinate Y - ByteS 185 - Shows player head on interface id - LEShortA 107 - Resets camera 72 - Clean items of interface id - LEShort 214 - Shows ignores names as long - Long 166 - Spin camera x - Byte y - Byte height - Short speed - Byte angle - Byte 134 - Send skill skill id - Byte xp - Int2 level - Byte 71 - Send side tab interfaceId - Short tabId - ByteA 74 - Play song id - LEShort 121 - Sets previous song and next next song - LEShortA previous song - ShortA 109 - Logout 70 - Move component x - Short y - LEShort component id - LEShort 73 - Send map region region X = ShortA region Y = Short 241 - Send region map region region Y - ShortA blank tile - 1 bit x << 14 | y << 3 | h << 24 | rotation << 1 - 26 Bits region X - Short 208 - Open walkable interface id - LEShort 99 - Map blackout type - Byte 75 - Shows npc head on interface npcId - LEShortA interfaceId - LEShortA 114 - System update time - LEShort 60 - Parses more packets with coordinates y - Byte x - ByteC opcode - Byte 35 - Shake screen vertical amount - Byte vertical speed - Byte horizontal amount - Byte horizontal speed - Byte 174 - Play sound effect effect Id - Short type - Byte delay - Short 104 - Option on player option slot - ByteC on top - ByteA option name - String 78 - Resets flag 253 - Sends message message - String 1 - Resets all entity animations 50 - Sends player on friend list name as long - Long world - Byte 110 - Sends energy energy - Byte 254 - hint icon type - Byte type = 1 npcId = Short type >= 2 and type <= 6 x = Short y = Short offset = Byte type = 10 playerId = Short 248 - Opens interface with inventory interfaceId - ShortA inventoryId - Short 79 - Sets scroll bar location interfaceId - LEShort location - ShortA 68 - Handles options tab 196 - Sends friend a message long as name - Long message counter - Int rights - Byte 85 - Sets coordinates, which is used for object, items y - ByteC x - ByteC 24 - Makes tab blink tabId - ByteS 246 -Item on interface interfaceId - LEShort zoom - Short itemId - k18 142 - Opens inventory id - LEShort 126 - Sets text on interface text - String id - ShortA 206 - Chat settings public - Byte private - Byte trade & compete - byte 240 - Sends weight weight - Short 8 - Sends model on component interfaceId - LEShortA modelId - Short 112 - Recolor component id - LEShortA color - LEShortA 53 - Update group items id - Short item length - Short count - Byte count = 255 count - Int1 itemId - LEShortA 230 - Edit component zoom - ShortA componentId - Short rotation1 - Short rotation2 - LEShortA 221 - Friend status type - Byte 177 - Set camera x - Byte y - Byte height - Short speed - Byte angle - Byte 249 - Initialize player player is member - ByteA player index - LEShortA 65 - Update Npc 27 - Enter amount 187 - Enter name 97 - Show interface 218 - Chat box interface id - LEShortA 87 - Handle int config id - LEShort value - Int2 36 - Handle byte config id - LEShort value - Byte 61 - Shows multi icon icon - Byte 200 - Animate component (not sure) interfaceId - Short animationId - Short 219 - Closes interfaces 34 - Update single item interfaceId - Short slot - Smart itemId - Short amount - Byte amount = 255 amount - Int 105 || 84 || 147 || 215 || 4 || 117 || 156 || 44 || 160 || 101 || 151 84 - Edit ground item amount location - Byte itemId - Short current amount - Short edited amount - Short 105 - Play sound in location location - Byte id - Short other info - Byte 106 - Force open tab id - ByteC 164 - Opens back dialogue id - LEShort[/QUOTE]
  11. Cody and I have been fuckin' around with the EOC client, found a few packets. This is for revision 4v1. Still refactoring a lot of the packets, so I don't have them all yet. [SPOILER="Server to client"] attach is just our channel attachment. Change to 'session' if you're using Matrix console command [CODE] public void sendConsoleCommand(String command) { OutputStream stream = new OutputStream(); stream.writePacketVarByte(player, 136); stream.writeString(command); stream.endPacketVarByte(); attach.write(stream); }[/CODE] Open URL [CODE] public void sendOpenURL(String url) { OutputStream stream = new OutputStream(); stream.writePacketVarShort(player, 114); stream.writeByte(0); stream.writeString(url); stream.endPacketVarShort(); attach.write(stream); }[/CODE] send private message [CODE] public void sendPrivateMessage(String username, String message) { OutputStream stream = new OutputStream(); stream.writePacketVarShort(player, 2); stream.writeString(username); Huffman.sendEncryptMessage(stream, message); stream.endPacketVarShort(); attach.write(stream); }[/CODE] Index 15 sounds [CODE] public void sendIndex15Sound(int id, int delay) { OutputStream stream = new OutputStream(7); stream.writePacket(player, 8); stream.writeShort(id); stream.writeByte(1); // amt of times it repeats stream.writeShort(delay); stream.writeByte(255); // volume attach.write(stream); }[/CODE] Item on IComponent [CODE] public void sendItemOnIComponent(int interfaceId, int componentId, int itemId, int amount) { OutputStream stream = new OutputStream(); stream.writePacket(player, 111); stream.writeIntV2(amount); stream.writeShortLE(itemId); stream.writeInt(interfaceId << 16 | componentId); attach.write(stream); }[/CODE] Run script [CODE] public void sendRunScript(int scriptId, Object... params) { OutputStream stream = new OutputStream(); stream.writePacketVarShort(player, 103); String parameterTypes = ""; if (params != null) { for (int count = params.length - 1; count >= 0; count--) { if (params[count] instanceof String) parameterTypes += "s"; // string else parameterTypes += "i"; // integer } } stream.writeString(parameterTypes); if (params != null) { int index = 0; for (int count = parameterTypes.length() - 1; count >= 0; count--) { if (parameterTypes.charAt(count) == 's') stream.writeString((String) params[index++]); else stream.writeInt((Integer) params[index++]); } } stream.writeInt(scriptId); stream.endPacketVarShort(); attach.write(stream); }[/CODE] sendWindowPane [CODE] public void sendWindowsPane(int id, int type) { int[] xteas = new int[4]; OutputStream stream = new OutputStream(4); stream.writePacket(player, 37); stream.writeIntV2(xteas[3]); stream.writeInt(xteas[2]); stream.writeIntV2(xteas[1]); stream.writeShort(id); stream.writeIntV1(xteas[0]); stream.writeByteC(type); attach.write(stream); }[/CODE] Send graphics (To send on a worldtile) [CODE]public void sendGraphics(Graphics graphics, Object target) { OutputStream stream = new OutputStream(13); int hash = 0; if (target instanceof Player) { Player p = (Player) target; hash = p.getIndex() & 0xffff | 1 << 28; } else if (target instanceof NPC) { NPC n = (NPC) target; hash = n.getIndex() & 0xffff | 1 << 29; } else { WorldTile tile = (WorldTile) target; hash = tile.getPlane() << 28 | tile.getX() << 14 | tile.getX() & 0x3fff | 1 << 30; } stream.writePacket(player, 91); stream.writeShort128(graphics.getHeight()); stream.writeIntLE(hash); stream.writeShortLE(graphics.getId()); stream.writeShort(graphics.getSpeed()); stream.writeByte128(graphics.getSettings2Hash()); stream.writeByte128(0); // slotId attach.write(stream); }[/CODE][/SPOILER] I have a few more, just haven't finished refactoring them client-sided.
  12. Updating packets as I find them for the revision of 742. Currently have [COLOR="Green"]13[/COLOR] packets found. [COLOR="DarkOrange"]Format:[/COLOR] [COLOR="Green"]Packet Id[/COLOR] || [COLOR="Green"]Packet Size[/COLOR] [COLOR="DarkOrange"]Packets[/COLOR] [code] Interface Packet: 47 || 23 Commands Packet: 116 || -1 One of the config packets: 156 || 3 Loading Maps packet: 89 || -2 Player Update packet: 90 || -2 Small Npc Update packet: 72 || -2 Run Script Packet: 29 || -2 Items Packet: 67 || -2 Friends Chat Message Receiving Packet: 120 || -1 System Update Packet: 147 || 2 World Tile Packet: 6 || 3 SendSkills Packet: 4 || 6 Dynamic Map Packet: 153 || -2 [/code] [spoiler= Credits] [center] Jagex Me Tyler/Arravs [/center] [/spoiler]
  13. Hash

    Packets

    I'm having a problem here. I don't know the meaning of readShort(), writeInt(), readShort28LE() and all the other ones. I need this for the itemId, interfaceId, etc. Could somebody explain this to me so I can understand this? Thanks!
  14. hello guys i would love to know if anyone has a list og any 666 packets if so could you please hook me up with the beautiful list if not i guess ill have to search through the client to find the packets thanks :)
  15. Ryan

    377 Packets

    [B][U]Client to server:[/U][/B] Action button: [CODE]opcode = 79 button = getShort()[/CODE] Object option one: [CODE]opcode = 181 x = getShortA() y = getLEShort() id = getLEShort()[/CODE] Object option two: [CODE]opcode = 241 id = getShortA() x = getShort() y = getShortA()[/CODE] Object option three: [CODE]opcode = 50 y = getShortA() id = getLEShort() x = getLEShortA()[/CODE] Chat: [CODE]opcode = 49 color = getByteC() effects = getByteA() length = getLength() - 2[/CODE] Command: [CODE]opcode = 56 commandString = getRS2String()[/CODE] Equip: [CODE]opcode = 24 unknown(interfaceId?) = getLEShort() itemID = getLEShort() slot = getShortA()[/CODE] Unequip: [CODE]opcode = 3 itemID = getShortA() unknown(interfaceId?) = getShort() slot = getShort()[/CODE] Player option one: [CODE]opcode = 245 playerId = getLEShortA()[/CODE] Player option two: [CODE]opcode = 37 playerId = getShort()[/CODE] Player option three: [CODE]opcode = 227 playerId = getLEShortA()[/CODE] NPC option one: [CODE]opcode = 67 slot = getShortA()[/CODE] NPC option two: [CODE]opcode = 112 slot = getLEShort()[/CODE] NPC option three: [CODE]opcode = 13 slot = getLEShortA()[/CODE] [B][U]Server to client:[/U][/B] Send message: [CODE]opcode = 63 putRS2String(message)[/CODE] Send logout: [CODE]opcode = 5[/CODE] Send sidebar interface: [CODE]opcode = 10 putByteS(barId) putShortA(interfaceId)[/CODE] Send full screen interface: [CODE]opcode = 253 putLEShort(bgInterfaceID) putShortA(interfaceID)[/CODE] Send player dialog head: [CODE]opcode = 255 putLEShort(interfaceId)[/CODE] Send clear screen: [CODE]opcode = 29[/CODE] Send chat box interface: [CODE]opcode = 109 putShort(interfaceId)[/CODE] Reset buttons: [CODE]opcode = 113[/CODE] Reset camera position: [CODE]opcode = 148[/CODE] Send welcome screen: [CODE]opcode = 76 putLEShort(daysAgoRequestedReocvery) putLEShortA(unknown) putShort(unknown) putShort(unknown) putLEShort(unknown) putShortA(unreadMessages) putShortA(unknown) putShort(daysOfMembershipRemaining) putLEInt(lastEncodedIP) putLEShort(unknown) putByteS(membership) sendFullScreenInterface(15244, 5993)[/CODE] [U][B]377 packet lengths: [/B][/U] [CODE]public static int[] packetSizes = new int[256]; for (int i = 0; i < packetSizes.length; i++) { packetSizes[i] = 0; } packetSizes[1] = 12; packetSizes[3] = 6; packetSizes[4] = 6; packetSizes[6] = 0; packetSizes[8] = 2; packetSizes[13] = 2; packetSizes[19] = 4; packetSizes[22] = 2; packetSizes[24] = 6; packetSizes[28] = -1; packetSizes[31] = 4; packetSizes[36] = 8; packetSizes[40] = 0; packetSizes[42] = 2; packetSizes[45] = 2; packetSizes[49] = -1; packetSizes[50] = 6; packetSizes[54] = 6; packetSizes[55] = 6; packetSizes[56] = -1; packetSizes[57] = 8; packetSizes[67] = 2; packetSizes[71] = 6; packetSizes[75] = 4; packetSizes[77] = 6; packetSizes[78] = 4; packetSizes[79] = 2; packetSizes[80] = 2; packetSizes[83] = 8; packetSizes[91] = 6; packetSizes[95] = 4; packetSizes[100] = 6; packetSizes[104] = 4; packetSizes[110] = 0; packetSizes[112] = 2; packetSizes[116] = 2; packetSizes[119] = 1; packetSizes[120] = 8; packetSizes[123] = 7; packetSizes[126] = 1; packetSizes[136] = 6; packetSizes[140] = 4; packetSizes[141] = 8; packetSizes[143] = 8; packetSizes[152] = 12; packetSizes[157] = 4; packetSizes[158] = 6; packetSizes[160] = 8; packetSizes[161] = 6; packetSizes[163] = 13; packetSizes[165] = 1; packetSizes[168] = 0; packetSizes[171] = -1; packetSizes[173] = 3; packetSizes[176] = 3; packetSizes[177] = 6; packetSizes[181] = 6; packetSizes[184] = 10; packetSizes[187] = 1; packetSizes[194] = 2; packetSizes[197] = 4; packetSizes[202] = 0; packetSizes[203] = 6; packetSizes[206] = 8; packetSizes[210] = 8; packetSizes[211] = 12; packetSizes[213] = -1; packetSizes[217] = 8; packetSizes[222] = 3; packetSizes[226] = 2; packetSizes[227] = 9; packetSizes[228] = 6; packetSizes[230] = 6; packetSizes[231] = 6; packetSizes[233] = 2; packetSizes[241] = 6; packetSizes[244] = -1; packetSizes[245] = 2; packetSizes[247] = -1; packetSizes[248] = 0;[/CODE]
  16. hey guys im still working on my 614 but i just wanted to ask if anyone knows how to convert packets if you know how could you please help me as im going to convert my 614 into a 662 ik it will require alot of changing so im using dragonkks client and just gonnaq convert packets if you willing to help contact me at [email][email protected][/email] thnx guys :)
  17. Is there a list of 317 client-server packets complete with stream data? I've hit a roadblock with magic in an iClarity Source so the ones I want are 35, 131, 181, 237, 249. Thanks in advance.
  18. No softnyx. You were completely wrong. -.- Now to start handling a packet, you need the opcode. You can get that my making the server printing out the unhandled opcode id. Now once you have the opcode(s) you will need to head over to your client. Open your client, and open up z-filesearcher. Search for how your client sends out packets. For example in moonlight 634 deob it is. [code] static GameOutPacket x = new GameOutPacket(79, 16);[/code] Now you want to search something like this: [code]GameOutPacket(79[/code] And z-file-searcher should come up with the necessary results. For this bit i recommend you put your deob into a eclipse java project, makes it so much easier. So i searched up my code up there and i got. [code] [2] qda.java (Line 9) static GameOutPacket p = new GameOutPacket(79, 3); [/code] So we head over to qda.java in your client. And now find the actual line with it. so I found [code] static GameOutPacket p = new GameOutPacket(79, 3); [/code] Now if you have eclipse this will make it very easy. So if you have eclipse, right click the p -> references -> project Now it will come up with the references for p. [img]http://screensnapr.com/e/VQPXya.png[/img] Now go to the packetcomposer reference. Now my one came up with [code] wm var_wm = em.SendPacket(qda.p, naa.T, -84); ((wm) var_wm).o.b((byte) -125, (int) (qca.e.a(82, -126) ? 1 : 0)); ((wm) var_wm).o.writeLEShort(i_77_, (byte) 3); dfa.a(30, var_wm); Class_wf.a(true, ((Entity) class_ke).regionLocalX[0], ((Entity) class_ke).thisPlayerRegionY[0], (byte) -91, class_ke.h((byte) 70), 0, class_ke.h((byte) 125), -2, 0); } [/code] Your one should also be similar to this. So once we have that. we streamify it (idk im trying to sound smart ^^) [code] ((wm) var_wm).o.b((byte) -125, (int) (qca.e.a(82, -126) ? 1 : 0)); [/code] is equal to [code] readByteS [/code] and [code] ((wm) var_wm).o.writeLEShort(i_77_, (byte) 3); dfa.a(30, var_wm); [/code] is [code] readLEShort [/code] obviously. Now once you have the streams we handle it. Within a class. So i handled it liek this: [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using RuneScape.Model.Characters; using RuneScape.Model.Items; using RuneScape.Model.Items.Containers; using RuneScape.Model; using RuneScape.Model.Objects; using RuneScape.Model.Shops; using RuneScape.Model.Effects; using RuneScape.Model.Hits; using RuneScape.Model.Npcs; using RuneScape.Model.Maps; using RuneScape.Content; using RuneScape.Content.Skills; using RuneScape.Content.Interfaces; using RuneScape.Communication.Messages.Outgoing; namespace RuneScape.Communication.Messages.Incoming { class MagicOnEntity : IPacketHandler { #region Methods public void Handle(Character character, Packet packet) { int int1 = packet.ReadLEShortA(); int int2 = packet.ReadInt(); int int3 = packet.ReadLEShort(); int int4 = packet.ReadByteA(); int int5 = packet.ReadShortA(); Program.Logger.WriteInfo("int1:" + int1+ "int2:" + int2+ "int3:" + int3+ "int4:" +int4+ "int5:" +int5); } /// <summary> /// Handles magc on npc /// </summary> public void MagicOnNpc(Character character, Packet packet) { character.PlayAnimation(Animation.Create(1661)); } #endregion Methods } } [/code] I made it make an animation just to test it and prnt the info to make sure it was right. Now i don't know how your source handles these packets, but if you look at other packet classes you will find out. I tried. Unless this is completely wrong. ^^
  19. Ok so, I added a musician and want to play music when "listen to" action is performed. So i had put the code: [CODE] if(npc.getId() == 30) { //musician draynor if(p.resting == false) { p.animate(5713); p.resting = true; p.getActionSender().PlayMusic2(1, 1); p.sm("You rest as you listen to the musician."); } else { p.sm("You are already listening.."); } } [/code] But that doesn't work :/ The void is: [code] public void PlayMusic(int musicId, int length) { player.getSession().write(new StaticPacketBuilder().setId(188).addLEShort((short) musicId) .addByteS((byte) length)); } [/code] The error is: [code] com.rs2hd.packetbuilder.StaticPacketBuilder cannot be cast to com.rs2hd.net.Packet [/code] Can someone explain me what the stuff does? or can someone fix it for me?
  20. Cyb

    Packets

    nvm, fixed.
×