Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-02-18 15:44:42, last edited by goeyfun (2015-02-18 15:45:38)

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

[Discussion] [Question] Bot Optimization

Somebody told me this may be a better way to send chats or blocks
// Start
Thread A{
chatlist.Add(What i have to send);
}
Thread B{
foreach blaaaa in chatlist{
con.Send("say",blaaa);
}
// End

this dual thread method to replace the old way im using
//Start
Void A{
con.Send("say",blaaa);
con.Send("say",blaaa2);
}
//End

I wanna ask is the upper method more effective? Or is there any way you used to?


Ug3JzgO.png

Offline

#2 2015-02-18 16:31:29

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,837

Re: [Discussion] [Question] Bot Optimization

The client prevents chat messages being sent faster than something like 600-700ms, so unless you really mess up your code, it's difficult to be more "effective".
Sending a packet doesn't take long; it's not clear why you need any threads unless you're sending repeat messages with a timer. Your code's fine =3


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

#3 2015-02-18 16:35:25, last edited by Processor (2015-02-18 16:38:31)

Processor
Member
Joined: 2015-02-15
Posts: 2,246

Re: [Discussion] [Question] Bot Optimization

Tomahawk wrote:

The client prevents chat messages being sent faster than something like 600-700ms, so unless you really mess up your code, it's difficult to be more "effective".
Sending a packet doesn't take long; it's not clear why you need any threads unless you're sending repeat messages with a timer. Your code's fine =3

Correction: It is 500ms, due to jitter, it still probably makes sense to choose 600ms.
But yeah, in your second example, the second chat message will just be ignored.

Oh and what language is your code in? I would totally use a lovely syntax like that o.O


I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.

Offline

#4 2015-02-18 16:43:47

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

Re: [Discussion] [Question] Bot Optimization

well im lazy to type those sleep... okay so I'll stick with the old way, not extra thread.
Btw, How to implement a anti-spam when bot is sending chat?
// what im using...
Random bool crap True or False Generated.
if(crap == True)string extra="."
con.Send("say",crap+"nonsense message");
//End

I just randomly put a dot in front of the message, is that good enough?


Ug3JzgO.png

Offline

#5 2015-02-19 19:54:49

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Discussion] [Question] Bot Optimization

Is the fastest way to send blocks half of the ping time to api.playerio.com, or half of the time it takes from sending the block to receiving it?

Offline

#6 2015-02-19 20:09:11

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,837

Re: [Discussion] [Question] Bot Optimization

Hexagon wrote:

Is the fastest way to send blocks half of the ping time to api.playerio.com, or half of the time it takes from sending the block to receiving it?

I would ignore ping and just decrease the delay until blocks start being missed out. Then add a few ms to allow for lag.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Tomahawk1424372951474828

Board footer

Powered by FluxBB

[ Started around 1715031539.3482 - Generated in 0.048 seconds, 11 queries executed - Memory usage: 1.43 MiB (Peak: 1.55 MiB) ]