Pixel Workaround Script
Posted: November 20th, 2004, 9:40 pm
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;
}
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;
}