Jump to content


  • Content count

  • Joined

  • Last visited

  1. For exp, search like total exp = (double) or just look for hitdiff, or addSkillXP
  2. Try installing Java to another location, example: /Java22/
  3. You're command is probably like this: if (command.startsWith("hail") && playerRights == 3) { hail(); } If you want the player who used hail to hail, just add: setAnimation(1651); under hail(); If you don't just change: for (Player p : server.playerHandler.players) { To: for (Player p : server.playerHandler.players == !playername) {
  4. you freaking leeched my name:@

  5. Ok, when I run my client from run.bat this is my code: @echo off Start javaw -Xmx300m client 10 0 highmem members 32 exit It works perfectly fine, but if I remove: 10 0 highmem members 32 It stops working. Ok moving on to the webclient... So this is my webclient code: <HTML> <HEAD> <TITLE>Bloodpkz</TITLE> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> </HEAD> <BODY> <applet name="bloodpkz" width="765" height="503" archive="webclient.jar" code="client.class"> <param name="java_arguments" value="-Xmx300m"> </applet> </BODY> </HTML> And it downloads the cache perfectly, just that it says requesting title screen... Then it does, refreshing in 10...9...8....... All of my files work fine it's just that: Start javaw -Xmx300m client 10 0 highmem members 32 It works with that, so I'm wondering if anybody can help me edit my code so it will load 10 0 highmem members 32. Thanks, ++Rep and Thanks.
  6. Please can someone help me out on this webclient I've been making recently. I want to combine my Jframe file with client. Why? Because my run.bat uses Jframe to start the client, but when I use Jframe as the class, then it won't download my cache. Or can you make it so I can run my client from class client instead of class Jframe? So basically if someone can combine my Jframe file with the client file, I will be so relieved. Also if this works ++Rep, thanks and maybe $10. Please Help! PM or add my msn if you think you can help: [email protected] Here is the Jframe, client is too big so I'll add as an attachment. import sign.signlink; import java.net.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.*; import javax.swing.plaf.metal.MetalLookAndFeel; public class Jframe extends client implements ActionListener { private static JMenuItem menuItem; private JFrame frame; public Jframe(String args[]) { super(); try { sign.signlink.startpriv(InetAddress.getByName(server)); initUI(); } catch (Exception ex) { ex.printStackTrace(); } } public void initUI() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); JPopupMenu.setDefaultLightWeightPopupEnabled(false); frame = new JFrame("LegendScape 317 | 24/7 VPS | Awesome Server | Owner by: Koray And Er Er Stain"); frame.setLayout(new BorderLayout()); frame.setResizable(false); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel gamePanel = new JPanel(); gamePanel.setLayout(new BorderLayout()); gamePanel.add(this); gamePanel.setPreferredSize(new Dimension(765, 503)); JMenu fileMenu = new JMenu("Options"); String[] mainButtons = new String[] { "Forums", "Vote For Us", "World Map", "-", "Exit"}; for (String name : mainButtons) { JMenuItem menuItem = new JMenuItem(name); if (name.equalsIgnoreCase("-")) { fileMenu.addSeparator(); } else { menuItem.addActionListener(this); fileMenu.add(menuItem); } } JMenuBar menuBar = new JMenuBar(); JMenuBar jmenubar = new JMenuBar(); frame.add(jmenubar); menuBar.add(fileMenu); frame.getContentPane().add(menuBar, BorderLayout.NORTH); frame.getContentPane().add(gamePanel, BorderLayout.CENTER); frame.pack(); frame.setVisible(true); // can see the client frame.setResizable(false); // resizeable frame init(); } catch (Exception e) { e.printStackTrace(); } } public URL getCodeBase() { try { return new URL("http://" + server + "/cache"); } catch (Exception e) { return super.getCodeBase(); } } public URL getDocumentBase() { return getCodeBase(); } public void loadError(String s) { System.out.println("loadError: " + s); } public String getParameter(String key) { return ""; } private static void openUpWebSite(String url) { Desktop d = Desktop.getDesktop(); try { d.browse(new URI(url)); } catch (Exception e) { } } public void actionPerformed(ActionEvent evt) { String cmd = evt.getActionCommand(); try { if (cmd != null) { if (cmd.equalsIgnoreCase("Exit")) { System.exit(0); } if (cmd.equalsIgnoreCase("forums")) { openUpWebSite("http://www.legendscape.ucoz.com"); } if (cmd.equalsIgnoreCase("Vote For Us")) { openUpWebSite("www.voteforls.tk"); } if (cmd.equalsIgnoreCase("World Map")){ openUpWebSite("3. World Map.bat"); } } } catch (Exception e) { } } } Virus Scan Here
  7. How many people play your server? Oh wait that's right they can't connect, 0! Lol sorry. On topic: Try using uTorrent and adding firewall exceptions instead of port forwarding.
  8. Kk, this is server sided. Go into client.java search for: interfaceid == 3823 You should see (IF NOT KEEP SEARCHING!) : } else if (interfaceID == 3823) { // Show value to sell items sellItem(removeID, removeSlot, 10); } else if (interfaceID == 3900) { // Show value to buy items buyItem(removeID, removeSlot, 10); } Just change both 10's to 100's.
  9. jakehop55


    Gl on a webclient for Mac.... Seriously.
  10. Thanks. Yeah, I'm going to release the Full Item Deleter once I get this banking thing working.
  11. Please can someone help me? I'm trying to create a command/system where it deletes an item from someones bank. I just need the method where it deletes the item. Example: People started duping ughhh 8002 (D claw for most servers), I want a command/system like: int Itemsss[] = {8002, 4587, 13593}; if (playerHasItemBanked(Itemsss)) { for (int i = 0; i < Itemsss.length; i++; ) { deleteItemsFromBank(Itemsss); } } So basically it will delete the itemsss from their bank. ++Thanks is solved and for trying.
  12. Welcome to my first tutorial in awhile. I've now recently take a break from MW, WAW, and MW2 and come back to RS. Please don't flame and enjoy the tutorial. ~ Info ~ Base: Any File Modified: Client Difficulty: 1/10 Version: 317 Description: This will allow your players to keep cutting the logs and not have to bank, drop, or sell them. If the wcmode is on, once a player's inventory is full, it will remove all the logs and keep allowing the player to cut down the tree. It's a simple Toggle on & off. This comes in handy, trust me. ~ Start ~ First open Client.java and search for: if (command.equalsIgnoreCase("bank") && playerRights >= 1 && !isInPitGame()) { openUpBank(); } Under the whole command add: if (command.startsWith("wcmodeon") && playerRights >= 1) { if (wcmode == 1) { sM("Woodcutting Mode is already on."); } else { wcmode = 1; sM("Woodcutting Mode on."); } } if (command.startsWith("wcmodeoff") && playerRights >= 1) { if (wcmode == 0) { sM("Woodcutting Mode is already off."); } else { wcmode = 0; sM("Woodcutting Mode off."); } } if (command.startsWith("mwm") && playerRights >= 1) { if (wcmode == 0) { sM("Woodcutting Mode is off."); } if (wcmode == 1) { sM("Woodcutting Mode is on."); } } Now search for: public boolean IsDead = false; Under it add: public int wcmode; Next search for: sM("You get some logs."); And below it you should see something like this (may be a little different DW): } else { // createEnemyItem(woodcutting[4]); sM("Not enough space in your inventory."); woodcutting[0] = -1; resetWC(); return false; Change it to: } else { if (wcmode == 0) { // createEnemyItem(woodcutting[4]); sM("Not enough space in your inventory."); woodcutting[0] = -1; resetWC(); return false; } if (wcmode == 1) { // Woodcutting Mode removeAllItems(); } Next search for: } else if (token.equals("character-starter")) { starter = Integer.parseInt(token2); Under it add: } else if (token.equals("character-wcmode")) { wcmode = Integer.parseInt(token2); Now search for: } else if (token.equals("character-starter")) { starter = Integer.parseInt(token2); Under it add: } else if (token.equals("character-wcmode")) { wcmode = Integer.parseInt(token2); Now save & compile. Done! Tell me if it works. And please give some feedback & post errors if you have any. Credits -Jake (Me) ~ Extra ~ If you do not have public void removeAllItems() { Then in Client.java search for: public void RemoveAllWindows() { outStream.createFrame(219); flushOutStream(); } Above it add: public void removeAllItems() { for (int i = 0; i < playerItems.length; i++) { playerItems[i] = 0; } for (int i = 0; i < playerItemsN.length; i++) { playerItemsN[i] = 0; } resetItems(3214); }
  13. Bumping Up My Post So Everyone Can See My Post
  14. How, I've tried so many clients, tutorials and nothing works for me!!