Locked Home » Forums » Legacy & Archived » Archived Content » ShadowBane » SB Exploit and Macro Discussion

Pixel Workaround Script : SB Exploit and Macro Discussion

Posted: November 20th, 2004
User avatar
Total Posts:2313 Joined:2004
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;
}
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 2 guests