-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Clients #22
Comments
Write script like mine... var region = 'TK-Turkey'; //server region to request var http = require('http'); var connection = false; var client = new AgarioClient('worker'); client.on('lostMyBalls', function() { //when i lost all my balls AgarioClient.prototype.defineActor = function(ball_id) { //adding client.addFriend(ball_id) function AgarioClient.Ball.prototype.isActor = function() { //adding ball.isMyFriend() funtion client.on('ballAppear', function(ball_id) { //when we somebody }); var client3 = new AgarioClient('worker3'); function launchFeeders() {
} function updatePosition(posX, posY) { Néanmoins j'ai un problème : le terminal m'indique cette erreur après quelques minutes (2-3) : [warning] moveTo() was called before connection established, packet will be dropped |
Escuse me, I am french and I have a very bad english. |
Don't know about really "best", but the best way i can think of is: ebot.js:
spawn3bots.js:
To Ebot.prototype you can add targets calculate and other routine you need for your bot. |
How you can control all bots without his ID ? |
camilleeyries, |
Hum... Ok thank you :-) I work on a suicidal bot project 👍 |
@pulviscriptor I was thinking about doing it that way thank you very much :D should you add something about this to the readme? |
What is the best way of going about spawning multiple clients off of one script?
The text was updated successfully, but these errors were encountered: