-
Posts
250 -
Joined
-
Last visited
ozeki6's Achievements
-
Buenas tarde saludos, Acabo de probar el script y funciona pero en las barras me anda unos errores agradeceria que puediera solucionarlo.
Este fue el mensaje: this cript threw an error, contact the script writer. -
odball42 reacted to a post in a topic: [Free] OZ Superheater - Supports All F2P Bars
-
What library are you using for ML ?
-
Very cool mate but are you using the normal client or a botting client?
-
Cool but too expensive IMO.
-
Unless it missclicked on some npc then I have no idea. If it did it's not the script's fault anyway.
-
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.
-
ozeki6 changed their profile photo
-
TutIslander left Positive feedback for ozeki6
-
ozeki6 reacted to a post in a topic: DBUI - Custom GUI look & feel API
-
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); }
-
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
-
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();
-
I can't spot anything wrong. I think the problem is elsewhere.
-
Pushed an update, it will be fixed once it's accepted.
-
That's botting for you.
-
Have you tried clicking on a button and then click on start?
-
Thanks dude