-
Posts
250 -
Joined
-
Last visited
Posts posted by ozeki6
-
-
14 hours ago, GenericMeme46 said:
I've since incorporated using special attacks and prayers.
Very cool mate but are you using the normal client or a botting client?
-
Cool but too expensive IMO.
-
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.
-
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.
-
19 minutes ago, Dampoe said:
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); }
-
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
-
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();
-
I can't spot anything wrong. I think the problem is elsewhere.
-
-
-
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?
-
9 hours ago, Bell said:
Love the paint bro!
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.
-
Damn ...
My PvP AI - genericAI
in General Discussion
Posted
What library are you using for ML ?