Archangel 0 Share Posted March 14, 2017 Hello, I started working on fairly big project and I have almost everything figured out but one thing. Is there a built in method to make two bots communicate with each other? Here's an impractical example: bot 1 picks flax -> tells bot 2 his inventory is full -> bot 2 takes the flax and runs to the bank. How can bot 1 send the message to bot 2? The only solution to this that I can think of is setting up a RESTful web service or something similar and then have scripts get or post information there. I would like to hope that there's a better way to solve this. I wouldn't be able to release the script also because then every user would depend on my server. Any idea is appreciated. Thanks Link to comment Share on other sites More sharing options...
SuplemeLeadah 12 Share Posted March 14, 2017 have both bots send messages to each other? in a clan chat or just private chat. Lets say Bot 1 send message by ingame friend message: "Inventory full" Bot 2 reads the message and a command is activated. Some scripts out here do this already i believe. Link to comment Share on other sites More sharing options...
Archangel 0 Author Share Posted March 14, 2017 have both bots send messages to each other? in a clan chat or just private chat. Lets say Bot 1 send message by ingame friend message: "Inventory full" Bot 2 reads the message and a command is activated. Some scripts out here do this already i believe. Yeah I thought of that. I wonder if some scripts have actually implemented this? The only problem might be the fact that jagex can see logs and confirm it's a bot very easily. Otherwise it would be a really good solution Link to comment Share on other sites More sharing options...
SuplemeLeadah 12 Share Posted March 14, 2017 https://dreambot.org/forums/index.php/topic/7511-free-mule-king-handles-muling-for-supported-scripts/ Is a example by @rokaHakor Link to comment Share on other sites More sharing options...
Archangel 0 Author Share Posted March 14, 2017 https://dreambot.org/forums/index.php/topic/7511-free-mule-king-handles-muling-for-supported-scripts/ Is a example by @rokaHakor Thanks I will look into it Link to comment Share on other sites More sharing options...
TheAppFoundry 11 Share Posted July 12, 2017 You could try using shared data locations. Like a database that both instances of the script write to and read from Link to comment Share on other sites More sharing options...
Scorpius 144 Share Posted July 12, 2017 I'm outputting certain data to a text file and all the bots running on my PC will access that text file. Link to comment Share on other sites More sharing options...
DefCon 121 Share Posted July 12, 2017 I'm outputting certain data to a text file and all the bots running on my PC will access that text file. Certainly this simplest method. Here's a tutorial on Java Sockets i found : http://www.javaworld.com/article/2077322/core-java/core-java-sockets-programming-in-java-a-tutorial.html Link to comment Share on other sites More sharing options...
Articron 738 Share Posted July 16, 2017 There has been mention of methods which are certainly viable, however there's still one that hasn't been touched upon. You can make bots/scripts communicate to each other by writing a java server. This will require you to know a bit of networking, but it's actually fairly easy. Clients (bots/script instances) send data over to the java server and vice versa. This is usually the way to go to write your own personal bot managing application. Google "java networking", "java sockets" and "multithreading". These three should be sufficient to start out with. If you need a hand on this I'll gladly lend you one. Just chuck me a PM on Discord and we'll go from there Link to comment Share on other sites More sharing options...
rokaHakor 171 Share Posted July 16, 2017 There has been mention of methods which are certainly viable, however there's still one that hasn't been touched upon. You can make bots/scripts communicate to each other by writing a java server. This will require you to know a bit of networking, but it's actually fairly easy. Clients (bots/script instances) send data over to the java server and vice versa. This is usually the way to go to write your own personal bot managing application. Google "java networking", "java sockets" and "multithreading". These three should be sufficient to start out with. If you need a hand on this I'll gladly lend you one. Just chuck me a PM on Discord and we'll go from there I don't think Java servers or other kind of servers are allowed for something like this. It wouldn't be hard for the script writer/server admin to manipulate the server into having other people's bots mule to their account. Of course this is talking about public SDN scripts, personal/private scripts can definitely use this method. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.