-
Posts
250 -
Joined
-
Last visited
Everything posted by ozeki6
-
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.
-
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
-
[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 Paint & Proggy Features: Supports all F2p Bars. Simple and interactive GUI Scripts stops when out of ores Cool paint
-
I upvoted for a trial.
- 6739 replies
-
- tutorial island
- quest
-
(and 1 more)
Tagged with: