Jump to content

Search the Community

Showing results for tags 'sending'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Found 13 results

  1. Hey all, new to the forum, I have started editing my RSPS 718 Matrix and was looking to send it to a couple of friends. I tried sending it to my brother at first and he has been unable to connect the the game, although i can still connect fine, ive tried changing the IP about and sorting through the ports but nothing seems to help him connect. if anyone has any ideas or can help me out it would be appreciated! also i didnt know if this will affect anything but i can no longer port forward using no-ip as SKY no longer allow it. He gets error_game_js5connect Many thanks!
  2. 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. :)
  3. Hey all, i've just tried to add a new clan chat system with ranks, but for some reason when i leave the clan i get this error: [code][8/07/14 19:45]: java.lang.ArrayIndexOutOfBoundsException: 0 [8/07/14 19:45]: at com.divine.security.Stream.readString(Stream.java:283 ) [8/07/14 19:45]: at com.divine.game.mobile.player.action.ReceiveString.pr ocessPacket(ReceiveString.java:14) [8/07/14 19:45]: at com.divine.game.mobile.player.PacketHandler.processPa cket(PacketHandler.java:151) [8/07/14 19:45]: at com.divine.game.mobile.player.Client.processQueuedPac kets(Client.java:1025) [8/07/14 19:45]: at com.divine.game.mobile.player.PlayerHandler.process(P layerHandler.java:212) [8/07/14 19:45]: at server.Server$1.execute(Server.java:196) [8/07/14 19:45]: at com.divine.server.task.Task2.tick(Task2.java:117) [8/07/14 19:45]: at com.divine.server.task.TaskScheduler.run(TaskSchedule r.java:104) [8/07/14 19:45]: at java.util.concurrent.Executors$RunnableAdapter.call(E xecutors.java:471) [8/07/14 19:45]: at java.util.concurrent.FutureTask.runAndReset(FutureTas k.java:304) [8/07/14 19:45]: at java.util.concurrent.ScheduledThreadPoolExecutor$Sche duledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [8/07/14 19:45]: at java.util.concurrent.ScheduledThreadPoolExecutor$Sche duledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [8/07/14 19:45]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr eadPoolExecutor.java:1145) [8/07/14 19:45]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th readPoolExecutor.java:615) [8/07/14 19:45]: at java.lang.Thread.run(Thread.java:744) [8/07/14 19:45]: Legit Yonas is sending invalid PacketType: 153. PacketSize: 2 [8/07/14 19:45]: Game saved for player Legit Yonas [8/07/14 19:45]: LOGGED OUT: Legit Yonas[/code] and as you can see it loggs off the character. the removing from clan is done client sided through this: [code]case 18129: if (R_3.interfaceCache[18135].message.toLowerCase() .contains("join")) { inputTaken = true; inputDialogState = 0; messagePromptRaised = true; promptInput = ""; friendsListAction = 6; aString1121 = "Enter the name of the chat you wish to join"; } else { sendString(0, ""); } break;[/code] [code]public void sendString(int identifier, String text) { text = identifier + "," + text; stream.createFrame(127); stream.writeWordBigEndian(text.length() + 1); stream.writeString(text); }[/code] the joining works fine, but the leaving doesnt
  4. 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
  5. Okay, my problem is that I have GUI and I want to have a method that I can use that'll update the JTextArea with the new string. But I keep getting this error [code] Exception in thread "main" java.lang.NullPointerException at text.gui.GUI.updateTextArea(GUI.java:138) at text.game.Test.intro(Test.java:10) at text.gui.GUI.main(GUI.java:50) [/code] Here's all the code I have that involves the text area, am I missing something, I don't know what's wrong. [code]private JTextArea textArea;[/code] [code] public static void main(String[] args) { /*try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { GUI frame = new GUI(); Test.intro(); } });*/ GUI frame = new GUI(); frame.setVisible(true); Test.intro(); }[/code] [code] final JTextArea textArea = new JTextArea(); textArea.setBackground(new Color(176, 224, 230)); scrollPane.setViewportView(textArea); textArea.setEditable(false);[/code] [code] textField.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_ENTER) { inputString = textField.getText(); textArea.append(inputString+"\n"); textField.setText(""); } } });[/code] [code] public void updateTextArea(String message) { textArea.append(textArea.getText() + message + "\n"); textArea.selectAll(); int x = textArea.getSelectionEnd(); textArea.select(x, x); }[/code] [code]public class Test { static GUI frame = new GUI(); public static void intro() { frame.updateTextArea("Testing"); } }[/code] :confused:
  6. Is it possible to replace a image on a interface? I have this method in my source [code] public void itemOnInterface(int interfaceid, int child, int amount, int itemid) { StaticPacketBuilder spb = new StaticPacketBuilder().setId(145) .addInt(interfaceid << 16 | child)//Interface this should be in .addInt1(amount)//Amount to display, (Number next to pic) .addLEShortA(0)//Count .addLEShortA(itemid);//ITEM Id player.getSession().write(spb.toPacket()); } [/code] I used it with the clue scroll interface 364. I was testing with item 14484. I tried to find the child id for the middle of the interface but I couldn't, it logs me out after 7. But I managed to get this [IMG]http://i50.tinypic.com/1052zkp.png[/IMG] Then I tried doing it with a interface with just words on it, and found the ids for the strings. But it did not show the actual picture of the claws, just the word [IMG]http://i50.tinypic.com/295979l.png[/IMG] Can anyone help me?
  7. [IMG]http://i.imm.io/xXQg.png[/IMG] I need the access mask so I can send items over it, thanks.
  8. 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]
  9. Hey, Can anyone tell me how to send an interface on log in on the Matrix Source. If anyone tell me that would be a great help. Thanks, -Chris. EDIT - I have sent an interface on log in but how do I change the next on it?
  10. Whenever i use the command to send sounds it works but not using this code [CODE]case 8863: Sounds.playSound(npc.getLocation(), 1, 100); break;[/CODE] The case is for the npc 8863
  11. [CODE]if (command[0].equals("checkmsg")) { int childId; String message; try { File file = new File("data/messages/" + player.getUsername() + ".txt"); if (!file.exists()) { player.sendMessage("You have no new messages."); } ActionSender.sendInterface(player, 132); ActionSender.sendString(player, 132, 47, "Messages"); BufferedReader r = new BufferedReader(new FileReader(file)); String s; while ((s = r.readLine()) != null) { String[] strings = s.split(","); childId = Integer.parseInt(strings[0]); message = strings[1]; ActionSender.sendString(player, 132, childId, message); } } catch (Exception e) { e.printStackTrace(); } } if (command[0].equalsIgnoreCase("sendmsg")) { Player o = World.getWorld().getPlayerInServer(command[1]); String message = getCompleteString(command, 2); File file = new File("data/messages/" + o.getUsername() + ".txt"); if(!file.exists()) { try { file.createNewFile(); } catch (IOException e) { e.printStackTrace(); } } else { try { BufferedWriter bw = new BufferedWriter(new FileWriter( "./data/messages/"+o.getUsername()+".txt", true)); LineNumberReader lnr = new LineNumberReader(new FileReader(file)); int cnt = 3; String lineRead = ""; while ((lineRead = lnr.readLine()) != null) {} cnt = lnr.getLineNumber(); lnr.close(); bw.write(""+(cnt > 2? 3 : cnt)+", "+message); o.sendMessage(""+lnr.getLineNumber()); bw.newLine(); bw.close(); } catch (IOException e) { e.printStackTrace(); } } } [/CODE] The sendmsg is my code, the checkmsg is Krooked's.
  12. youtube2

    Sending music?

    How would you send music on a 562? I know it sends a byte (Right?) just wondering how to make it send one... Heres what I tried to do: [code] I don't know the music code or the length and it gives me a error when you login... Wont crash the server though PlayMusic(75, 10000);//ID and length [/code]
  13. OK im using a String Command and it's for my welcome screen but it won't pickup the string for the message of the week, like the white box part and i wanna send a string on it but idk , I've been trying this is my last resort. Thanks.