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
case "b":
int l = m.GetInt(0);
int x = m.GetInt(1);
int y = m.GetInt(2);
int b = m.GetInt(3);
int n = m.GetInt(4);
if (rpg.Checked)
{
if (b == 9)
{
Thread.Sleep(delay);
con.Send(worldKey, new object[] { l, x, y, 0 });
}
int spin;
Random choice = new Random();
if (b == 361)
{
spin = choice.Next(1, 5);
if (spin == 1)
{
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x, y, 0 });
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x + 1, y + 1, 361 });
}
if (spin == 2)
{
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x, y, 0 });
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x - 1, y + 1, 361 });
}
if (spin == 3)
{
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x, y, 0 });
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x + 1, y - 1, 361 });
}
if (spin == 4)
{
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x, y, 0 });
Thread.Sleep(10);
con.Send(worldKey, new object[] { 0, x - 1, y - 1, 361 });
}
}
}
return;
Offline
Did u check the rpg.Checked
Offline
Offline
Try doing
spin = choice.Next(0, 5);
Offline
Offline
if (spin == 1)
{
Thread.Sleep(10);
con.Send(worldKey, 0, x, y, 0 );
Thread.Sleep(10);
con.Send(worldKey, 0, x + 1, y + 1, 361);
}
if (spin == 2)
{
Thread.Sleep(10);
con.Send(worldKey, 0, x, y, 0 );
Thread.Sleep(10);
con.Send(worldKey, 0, x - 1, y + 1, 361);
}
if (spin == 3)
{
Thread.Sleep(10);
con.Send(worldKey, 0, x, y, 0);
Thread.Sleep(10);
con.Send(worldKey, 0, x + 1, y - 1, 361);
}
if (spin == 4)
{
Thread.Sleep(10);
con.Send(worldKey, 0, x, y, 0);
Thread.Sleep(10);
con.Send(worldKey, 0, x - 1, y - 1, 361);
}
Try without new object[] stuff
Offline
Offline
Replace int spin; with int spin = 0;
Offline
Offline
By looking at your code, (b == 9) should work fine.
The only reason (b == 361) does not work is because block id 361 is a rotation block (spike), so just setting it the way you have currently isn't enough.
Also why are you using return instead of break at the end
Offline
Offline
Try using break; rather than return;
Also, make a
Random choice = new Random();
at the variables.
And then change the
int spin;
to
int spin = choice.Next(0, 5);
Offline
By looking at your code, (b == 9) should work fine.
The only reason (b == 361) does not work is because block id 361 is a rotation block (spike), so just setting it the way you have currently isn't enough.
Also why are you using return instead of break at the end
Nice find. I didnt even know that the block id was spike.
Offline
Try using break; rather than return;
Also, make aRandom choice = new Random();
at the variables.
And then change theint spin;
to
int spin = choice.Next(0, 5);
Is it faster than using return?
Sample Text.
Doritos/Mountain Dew eater.
420 No scoping 69 scrubs per day
Always smoke weed everyday.
Known for: #getrekt Bot (possible revive with new stuff?)
Offline
Is it faster than using return?
Adding break; to the end of a "case" is the proper way to end it.
Offline
Pages: 1
[ Started around 1733037581.6047 - Generated in 0.062 seconds, 12 queries executed - Memory usage: 1.5 MiB (Peak: 1.66 MiB) ]