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.
Pages: 1
That's from my for loop:
Console Log
But only blocks X ( 31 - 46 ) were placed.
My code part
private static void MiniGameVoid()
{
if (MiniGame_State == 0) {
MiniGame_State = 1;
for (int a = 1; a <= 41; a++) {
con.Send("b", 0, a + 30, 64, 11);
Console.ForegroundColor = ConsoleColor.DarkGray;
Console.WriteLine("X: " + (a + 30));
}
} else {
};
}
Do a
System.Threading.Thread.Sleep(10);
This will sleep 10 milliseconds.
EDIT: Also Can I ask why you have a semicolon to complete your if statement?
Offline
The server throttles people, a delay of 10ms between blocks is plenty or you can do bursts of about 10 then pause for 100ms; the first being easier and the second is useful for doing small things like opening doors at the same time.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Gotta love the misleading title. This could've been an awesome bug.
You can add:
using System.Threading;
to your list of namespaces, so you only have to type:
Thread.Sleep(10);
every time you need a delay.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Everybody edits, but some edit more than others
Offline
Add this:
using System.Threading.Tasks;
Then put this on the void, before the static
async
Then use this after you placed a block AKA con.Send
await Task.Delay(20);
I feel like the next question is going to be like: "Why does my consol freeze and why can't I use commands while placing many blocks.".
Got ya covered there mate.
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
i was working around values. 10 was not sleeping enough, 17 is good.
What does sleeping -1 do? You can sleep negative amount of time?
i was working around values. 10 was not sleeping enough, 17 is good.
What does sleeping -1 do? You can sleep negative amount of time?
used to put a threat to sleep indefinetely without terminating your application
Offline
Pages: 1
[ Started around 1732415404.0037 - Generated in 0.086 seconds, 12 queries executed - Memory usage: 1.54 MiB (Peak: 1.72 MiB) ]