Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • ozeki6

    Lifetime Sponsor
    • Posts

      250
    • Joined

    • Last visited

    Posts posted by ozeki6

    1. 19 hours ago, GenericMeme46 said:

      The fact that I still can't edit my posts even though I have substantial time under my belt is annoying. I can't be bothered to fix that post to look nice if I can't edit it.

      What library are you using for ML ?

    2. On 2/26/2019 at 2:39 AM, rosterx said:

      I used this bot for less than 20 minutes and I find my account logged out. I log in and my guy is DEAD. I lost 5k NATS because of this bot and idk how I even died. I was in Jotiszo bank!

      Unless it missclicked on some npc then I have no idea. If it did it's not the script's fault  anyway.

    3. 58 minutes ago, Swing bobby said:

      How does one write QuickStart to run a script, grab a saved file of settings for that script to use, then run another script with another saved settings file sequentially?

       

      I have a script that’ll start all my slaves with #1muling but I would like it to grab the saved settings file for the slaves on my farm, then start the main goldfarming script.

       

      I'm just not sure how the functions that grab and use the settings info as well as the sequencing of scripts is expressed.


       

       
      •  

      Quickstart can only read some parameters from your .bat. It's up to you to choose what parameter you give. For example, if you want to enable muling on a script you could use quickstart to pass a boolean parameter "true" to your script.

    4. 19 minutes ago, Dampoe said:

      I tried, still didn't print out after I send the object from Client to Server. This is the log I am getting from Client side:

      image.png.8d2702d3d498fdd14ab3a4dfc7ee85ba.png 

      Server side:

      image.png.0a96a10a17e2315ffc5ad0e47dc1b422.png

       

      https://stackoverflow.com/questions/21863987/thread-hangs-when-creating-objectinputstream

      Your code should be :

       try {
                  PlayerState state = new PlayerState(getLocalPlayer().getName(),
                          getClient().getCurrentWorld(), 200, false);
                  MethodProvider.log("Current PlayerState: ");
                  MethodProvider.log("Name = " + state.getName()
                          + "\n World = " + state.getWorld()
                          + "\n ItemCount = " + state.getItemCount()
                          + "\n Ready for trade: " + state.isGoTrade());
      
                  MethodProvider.sleep(3000);
      
                  MethodProvider.log("Connecting...");
                  Socket socket = new Socket("127.0.0.1", PORT);
      
                  ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());
                  outputStream.writeObject(state);
      
                  ObjectInputStream inputStream = new ObjectInputStream(socket.getInputStream());
                  state = (PlayerState) inputStream.readObject();
      
                  MethodProvider.log("Received from server: ");
                  MethodProvider.log("Name = " + state.getName()
                          + "\n World = " + state.getWorld()
                          + "\n ItemCount = " + state.getItemCount()
                          + "\n Ready for trade: " + state.isGoTrade());
      
                  outputStream.close();
                  inputStream.close();
      
      
              } catch (IOException | ClassNotFoundException e) {
                  e.printStackTrace();
              }
      PlayerState state = null;
      
              try {
                  ServerSocket socket = new ServerSocket(PORT);
      
                  MethodProvider.log("Waitinng for connection...");
      
                  Socket pipe = socket.accept();
                  MethodProvider.log("Connected!" + pipe.toString());
      
                  ObjectInputStream inputStream = new ObjectInputStream(pipe.getInputStream());
                  state = (PlayerState)inputStream.readObject();
      
                  state.setGoTrade(true);
      
                  ObjectOutputStream outputStream = new ObjectOutputStream(pipe.getOutputStream());
                  outputStream.writeObject(state);
      
                  MethodProvider.log("Succesfully sent follow state: " + state);
      
                  inputStream.close();
                  outputStream.close();
      
              } catch (IOException | ClassNotFoundException e) {
                  e.printStackTrace();
              }
              return z.rh(60000,90000);
          }

       

       

       

       

    5. On 11/25/2018 at 2:18 AM, Dampoe said:

      Hello guys, I need some help creating this script. I have created a mule script that is based on clan chat. However I want to get away from this method for obvious reasons and I have been looking in to sockets lately. I'm trying to send a PlayerState from the client to the server so that the server can do something with this information and then possibly return it back to the client. However, I am struggling to pass this object to the server. The connection seems to be working fine, my client connects to the server correctly. However, when I try to pass the PlayerState the server seems to not be able to read it correctly. Take a look at my code, it's very basic. Very simple as I have never used anything like this before. Any help is appreciated.

      This is the client side

       

      
         try {
                  PlayerState state = new PlayerState(getLocalPlayer().getName(),
                          getClient().getCurrentWorld(), 200, false);
                  MethodProvider.log("Current PlayerState: ");
                  MethodProvider.log("Name = " + state.getName()
                          + "\n World = " + state.getWorld()
                          + "\n ItemCount = " + state.getItemCount()
                          + "\n Ready for trade: " + state.isGoTrade());
      
                  MethodProvider.sleep(3000);
      
                  MethodProvider.log("Connecting...");
                  Socket socket = new Socket("127.0.0.1", PORT);
      
                  ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());
                  ObjectInputStream inputStream = new ObjectInputStream(socket.getInputStream());
      
                  outputStream.writeObject(state);
      
                  state = (PlayerState) inputStream.readObject();
      
                  MethodProvider.log("Received from server: ");
                  MethodProvider.log("Name = " + state.getName()
                          + "\n World = " + state.getWorld()
                          + "\n ItemCount = " + state.getItemCount()
                          + "\n Ready for trade: " + state.isGoTrade());
      
                  outputStream.close();
                  inputStream.close();
      
      
              } catch (IOException | ClassNotFoundException e) {
                  e.printStackTrace();
              }

       

      This is the server side

      
              PlayerState state = null;
      
              try {
                  ServerSocket socket = new ServerSocket(PORT);
      
                  MethodProvider.log("Waitinng for connection...");
      
                  Socket pipe = socket.accept();
                  MethodProvider.log("Connected!" + pipe.toString());
      
                  ObjectInputStream inputStream = new ObjectInputStream(pipe.getInputStream());
                  ObjectOutputStream outputStream = new ObjectOutputStream(pipe.getOutputStream());
      
                  state = (PlayerState)inputStream.readObject();
      
                  state.setGoTrade(true);
      
                  outputStream.writeObject(state);
      
                  MethodProvider.log("Succesfully sent follow state: " + state);
      
                  inputStream.close();
                  outputStream.close();
      
              } catch (IOException | ClassNotFoundException e) {
                  e.printStackTrace();
              }
              return z.rh(60000,90000);
          }

      And last, is the PlayerState class:

      
      public class PlayerState implements Serializable {
      
          private static final long serialVersionUID = -6541258022921922946L;
      
          private String name;
          private int world;
          private int itemCount;
          private boolean goTrade;
      
          public PlayerState(String name, int world, int itemCount, boolean goTrade) {
              this.name = name;
              this.world = world;
              this.itemCount = itemCount;
              this.goTrade = goTrade;
          }
      
          public String getName() {
              return name;
          }
      
          public void setName(String name) {
              this.name = name;
          }
      
          public int getWorld() {
              return world;
          }
      
          public void setWorld(int world) {
              this.world = world;
          }
      
          public int getItemCount() {
              return itemCount;
          }
      
          public void setItemCount(int itemCount) {
              this.itemCount = itemCount;
          }
      
          public boolean isGoTrade() {
              return goTrade;
          }
      
          public void setGoTrade(boolean goTrade) {
              this.goTrade = goTrade;
          }
      }

       

      Try this. Delete ObjectInputStream from the client side.

      In the server declare ObjectInputStream and ObjectOutputStream right before using them.

      So it should be like 

      ObjectInputStream inputStream = new ObjectInputStream(pipe.getInputStream());
      
      state = (PlayerState)inputStream.readObject();
      
      state.setGoTrade(true);
      
      ObjectOutputStream outputStream = new ObjectOutputStream(pipe.getOutputStream());
      outputStream.writeObject(state);

      Read this 

      https://stackoverflow.com/questions/21863987/thread-hangs-when-creating-objectinputstream

    6. 1 minute ago, Dampoe said:

       

      That's weird.. Because I can't see the logs of the following in my debug console:

      Client side is never showing this:

      
       MethodProvider.log("Received from server: ");
                  MethodProvider.log("Name = " + state.getName()
                          + "\n World = " + state.getWorld()
                          + "\n ItemCount = " + state.getItemCount()
                          + "\n Ready for trade: " + state.isGoTrade());

       

      And server side is never showing this:

      
       MethodProvider.log("Succesfully sent follow state: " + state);

       

      The other logs are showing in the console apart from these two. 

      That's because the object wasn't sent or because there is no connection.

      Add this into your client side

      MethodProvider.log("Connecting...");
                  Socket socket = new Socket("127.0.0.1", PORT);
      

      after you connect add :

      MethodProvider.log("Connected");

       

      If it logs that it means the problem is here :

       

      ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());
      ObjectInputStream inputStream = new ObjectInputStream(socket.getInputStream());
      
      outputStream.writeObject(state);
      
      state = (PlayerState) inputStream.readObject();
    7. 8 hours ago, rarecola said:

      Script doesnt work since todays update , pls fix

      Cannot select bar in GUI. Script Doesnt work for MacOS

      please change GUI to a drop down or something simple so everyone can use this script thanks

      Have you tried clicking on a button and then click on start?

    8. [OZ] Superheater

      What it does?

      Uses superheat spell to create bars.

      Requirements :

      43 magic, nature runes, fire staff and the appropriate smithing level for the bars you want to create and also the ores.

      IT ONLY WORKS WITH A STAFF OF FIRE.

      GUI

       

      f1e88a91c445fcdd79934ea018c56ac5.png

      Paint & Proggy

       

      19a643d4c27bb8569c4d0e5f69e1df0c.png

      Untitled.png

       

      • Features:
      • Supports all F2p Bars.
      • Simple and interactive GUI
      • Scripts stops when out of ores
      • Cool paint

       

      45be89857b4b2ef0ef172e58d2d44e8f.png

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.