Jump to content

logicscape

Member
  • Content count

    15
  • Joined

  • Last visited

  1. lol dont do it faggots paying with rsgp
  2. [quote name='Mark!']Thanks might use in future if I start my 562 again.[/QUOTE] yw :)
  3. difficultly = 1 knowledge = copy/paste what you're makein [URL="http://www.youtube.com/embed/Xp14g2E_62E"]CLICK HERE[/URL] [SIZE="6"]CLIENT SIDE:[/SIZE] open up [COLOR="Cyan"]packetparser.java[/COLOR] \client\src\[COLOR="CYAN"]packetparser.java[/COLOR] At the top of the page you should see imports kinda like this: [CODE]import java.awt.Color; import java.io.BufferedWriter; import java.io.File; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException;[/CODE] Add this to the imports [CODE]import java.awt.Desktop; import java.net.URL; import java.net.*; import java.io.*;[/CODE] ok now search for [CODE]if ((i_311_ ^ 0xffffffff) != -100) {[/CODE] You should see something like this [CODE] if ((i_311_ ^ 0xffffffff) != -100) { if (!string_314_.equals("") && Class214.method2787(string_314_, -122)) { Class131_Sub35.anInt4583 = -1; return true; [COLOR="Red"]}[/COLOR][/CODE] after the [COLOR="red"]}[/COLOR] add this [CODE] if (string_315_.contains(":url:")) { String url = string_315_; string_315_ = "Opening browser to: "+url.substring(6); if (Desktop.isDesktopSupported()) { try { Desktop.getDesktop().browse(new URI(url.substring(6))); } catch (Exception e) { } } else { openURL(url.substring(6)); } }[/CODE] finally add (IF YOU DON'T KNOW WHERE TO PUT DO THE SPOILER) [CODE] public static void openURL(String url) { String osName = System.getProperty("os.name"); try { if (osName.startsWith("Windows")) Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + url); else { String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" }; 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]; Runtime.getRuntime().exec(new String[] { browser, url }); } } catch (Exception e) { System.out.println( "Error in opening browser" + ":\n" + e.getLocalizedMessage()); } }[/CODE] [SPOILER="Click here if you dont know where to put"]finally search for [CODE]public static void method1577(int arg0) {[/CODE] above this add [CODE] public static void openURL(String url) { String osName = System.getProperty("os.name"); try { if (osName.startsWith("Windows")) Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + url); else { String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" }; 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]; Runtime.getRuntime().exec(new String[] { browser, url }); } } catch (Exception e) { System.out.println( "Error in opening browser" + ":\n" + e.getLocalizedMessage()); } }[/CODE][/SPOILER] Thats it for client side [SIZE="6"]SERVER SIDE:[/SIZE] open up[COLOR="CYAN"] CommandPacketHandler.java[/COLOR] \SERVERNAME\src\com\rs2hd\packethandler\[COLOR="CYAN"]CommandPacketHandler.java[/COLOR] Add this command: [CODE]if (cmd[0].equals("[COLOR="red"]google[/COLOR]")) { player.getActionSender().sendMessage("[COLOR="Lime"]:url: http://www.google.com[/COLOR]"); }[/CODE] now open up [COLOR="CYAN"] CommandsPacketHandler.java[/COLOR] \SERVERNAME\src\com\rs2hd\packethandler\[COLOR="CYAN"]CommandsPacketHandler.java[/COLOR] and add same command but with "::" [CODE] if (cmd[0].equals("[COLOR="red"]::google[/COLOR]")) { player.getActionSender().sendMessage("[COLOR="Lime"]:url: http://www.google.com[/COLOR]"); }[/CODE] [COLOR="red"]google[/COLOR] can be change for the name of the command [COLOR="Lime"]:url: [url=http://www.google.com]Google[/url][/COLOR] can be change for the url but you need to keep :url: (website) should be rest let me know if i'm missing something :) if you used this please click [url]http://adf.ly/2uuNt[/url] thanks :) if you want to donate: [URL="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=3FYEJGY3CW9CC&lc=US¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"][IMG]http://4.bp.blogspot.com/_KLy8J18UpsI/TUDqlcPqxyI/AAAAAAAAAFI/iE8RCsXEE6Y/s1600/paypal.png[/IMG][/URL] *** i did not copy steve his tut is way diff from mine?:rofl: i obviously took my time in it? so didn't copy him at all. (not saying "steve" didnt take time)
  4. logicscape

    [562]vote4cash

    [URL="http://www.rune-server.org/runescape-development/rs-503-client-server/tutorials/235868-vote4cash-562-rs2hd.html"]i did this tut [/URL]and i get this message when i type in the command ::vote and it send me this message in game: [CODE]malformed command or error: null.[/CODE] this is error i get in server run [CODE] java.lang.ClassNotFoundException: vote.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.rs2hd.packethandler.MYSQL.createConnection(MYSQL.java:13) at com.rs2hd.model.Player.extraAutoSave(Player.java:376) at com.rs2hd.util.AutoSaveEvent.execute(AutoSaveEvent.java:56) at com.rs2hd.event.Event.run(Event.java:88) at com.rs2hd.model.World.processEvents(World.java:225) at com.rs2hd.model.World.tick(World.java:310) at com.rs2hd.GameEngine.tick(GameEngine.java:201) at com.rs2hd.Server.processEvents(Server.java:192) at com.rs2hd.Server.go(Server.java:121) at com.rs2hd.Main$1.run(Main.java:42) at java.lang.Thread.run(Unknown Source) SAVED ALL PLAYERS. [2011/09/29 21:25:52] [AnonymousIoService-4]: Unkown length: 155, guessed to be: 13. Unhandled packet: [id=155,len=13,data=0x3F008EDD74EB07FC8000050003]. [/CODE] please help me :)
  5. [CODE]src\PacketParser.java:3643: cannot find symbol symbol : variable Desktop location: class PacketParser if (Desktop.isDesktopSupported()) { ^ src\PacketParser.java:3645: cannot find symbol symbol : class URI location: class PacketParser Desktop.getDesktop().browse(new URI(url.substring(6))); ^ src\PacketParser.java:3645: cannot find symbol symbol : variable Desktop location: class PacketParser Desktop.getDesktop().browse(new URI(url.substring(6))); ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors Press any key to continue . . .[/CODE] help me please
  6. can u use a interface more then once, like 229 can i use it for 2 diferent things? like this is what im usein [CODE] case 229: switch (buttonId) { case 2://agility player.getTele().telePlayer(player, 2478, 3438, 0, 2); player.getActionSender().sendCloseChatboxInterface(); } switch (buttonId) { case 3://agility player.getActionSender().sendCloseChatboxInterface(); } break; case 229: switch (buttonId) { case 2://Runecrafting player.getTele().telePlayer(player, 2804, 10018, 0, 0); player.getActionSender().sendCloseChatboxInterface(); } switch (buttonId) { case 3://Runecrafting player.getActionSender().sendCloseChatboxInterface(); } break;[/CODE] [CODE] case 131: //Runecrafting player.forceChat("<img=3>My Runecrafting level is "+player.getSkills().getLevelForXp(20)+"."); player.getActionSender().sendChatboxInterface(229); player.getActionSender().animateInterface(9827, 229, 2); player.getActionSender().sendPlayerOnInterface(229, 2); player.getActionSender().sendString("Teleport me to train Runecrafting.", 229.1, 4); player.getActionSender().sendString("Don't teleport me anywhere.", 229.1, 5); break; case 134: //Agility player.forceChat("<img=3>My Agility level is "+player.getSkills().getLevelForXp(16)+"."); player.getActionSender().sendChatboxInterface(229); player.getActionSender().animateInterface(9827, 229, 2); player.getActionSender().sendPlayerOnInterface(229, 2); player.getActionSender().sendString("Teleport me to train agility.", 229, 2); player.getActionSender().sendString("Don't teleport me anywhere.", 229, 3); break;[/CODE] comment if you don't get it obviously i get error: [CODE]src\com\rs2hd\packethandler\DialogueOptions.java:51: duplicate case label case 229: ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 errors Completed compiling. Press any key to continue . . .[/CODE]
×