placePixel
The `placePixel` function is pretty complicated to understand.
placePixel
placePixel
allows you do place a pixel on specified coordinates (x
, y
) and with the given color (color
).
The function uses whatever bot is not on a cooldown, if no bots are available, it waits till an account is available and then places the pixel.
If the force
argument is true
, the pixel will be sent out for placement even if the safety checks do not pass.
Safety Checks make sure that the pixel location doesn't already have the same color, if the location does have the same color, pixel is not placed. Unless specified otherwise by the force
argument.
Using this function, allows you to make sure that the pixel gets placed. It will not resolve before the pixel placement has been sent out. Meaning it will wait for an available bot.
It is safe to call this function as many times as desired, but recommended is to await
response before calling it again.
It is also safe to call this function on pixels that don't actually need pixel placement. Eg: Pixels with the same color, Pixels outside the map (Water included).
public async placePixel(x: number, y: number, color: number, : boolean = false): Promise<Boolean>
Last updated
Was this helpful?