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
http://forums.everybodyedits.com/viewtopic.php?id=27280 did not answer my question.
Tried something like this too...
System.Threading.Thread.Sleep(5);
conn.Send("m", x*16, y*16, 0, 0, 0, 0, 0, 0, 0, false);
System.Threading.Thread.Sleep(5);
conn.Send("c", LocalPlayer.YellowCoinsCollected, LocalPlayer.BlueCoinsCollected, x, y);
//some code here bla bla bla
case "c":
{
if (LocalPlayer.UserID == m.GetInt(0))
{
MessageBox.Show(m.GetInt(1).ToString() + " ------ " + m.GetInt(2).ToString());
if (m.GetInt(1) > LocalPlayer.YellowCoinsCollected)
LocalPlayer.YellowCoinsCollected++;
if (m.GetInt(2) > LocalPlayer.BlueCoinsCollected)
LocalPlayer.BlueCoinsCollected++;
}
}
break;
ah, edit:
When I tried messagebox testing, it just returned 0 ----- 0, even though the "c" was fired.
shh i have returned
Offline
I think you need to check where the coin is with an init parser.
Offline
But I do. It just doesn't seem to count as a NEW coin? Is there something related with sending an another message?
shh i have returned
Offline
helps?
shh i have returned
Offline
Why would you need it to collect coins?
Offline
My bot actually refuses to collect coins all together.
Not when making him pass over coins, not by sending the coin event manually.
He registers others getting coins just fine though.
Maybe it has to do that the bot is never in motion? (I know afk players also tend to make stuff like keys act strange)
Offline
Offline
Ayy, I think i figured something out.
var data = World.Blocks[0, x, y];
if (conn != null && data != null && (data.Item1 == 100 || data.Item1 == 101))
await Task.Delay(800);
conn.Send("m", x * 16, y * 16, 0, 0, 0, 0, 0, 0, 0, false);
await Task.Delay(5);
if (data.Item1 == 100)
conn.Send("c", LocalPlayer.YellowCoinsCollected++, LocalPlayer.BlueCoinsCollected, x, y);
else
conn.Send("c", LocalPlayer.YellowCoinsCollected, LocalPlayer.BlueCoinsCollected++, x, y);
it seems you must add the amount of coins needed by yourself
so like, just add + 1 to your coin thingy
but there is still a problem
when picking up coins, the 1st coin (yellow/blue) is still 0, not 1.
shh i have returned
Offline
conn.Send("m", x*16, y*16, 0, 0, 0, 0, 0, 0, 0, false);
To
conn.Send("m", x/16, y/16, 0, 0, 0, 0, 0, 0, 0, false);
?
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Ugh, frogman, no.
My x and y are by blocks, but if you are dependant on player position, then yes. divide with 16, but convert to int first, else the results will be different.
shh i have returned
Offline
Ugh, frogman, no.
My x and y are by blocks, but if you are dependant on player position, then yes. divide with 16, but convert to int first, else the results will be different.
Sorry, I just thought moving was /16, not *.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Pages: 1
[ Started around 1732483571.105 - Generated in 0.060 seconds, 12 queries executed - Memory usage: 1.48 MiB (Peak: 1.63 MiB) ]