Page 1 of 1

Pixel Workaround Script

Posted: November 20th, 2004, 9:40 pm
by tault_Broden
If you get wrong pixels sometimes use this script for pixelchecks:

ForceShock "getPixel setting read from screen" recommend
Code:
set $_x=100;
set $_y=100;
set $mob_alive=1653625;
set $mob_dead=95460;

function is_dead()
{
@wrong_pixel;
getpixel($pix,$_x,$_y);
if($pix==$mob_alive)
{
set $dead=FALSE;
return;
}
if($pix==$mob_dead)
{
set $dead=TRUE;
return;
}
goto wrong_pixel;
}


To check if the mob is dead use something like this:
Code:
function fight()
{
is_dead();
while($dead==FALSE)
{
Sleep($swing_speed);
is_dead();
}
loot();
return;
}