scubajesus
2010-06-13 05:02:44
Well alright, thank you for your help everyone, mostly i luffs yeww. After bitmap not working, and findcolor making the mouse crawl at 1 pixel per second, I went lazy and told it coordinates + random small pixel differences. I periodically pause it to quick respond and quick questions, and I check to make take control in case of random. So I don't think anyone will want to mooch this, as I didn't add anti-randoms or much special for anti-ban, here it is though. No spells hidden, Sort by combat first, 800x600 window, alch item one to the right and one up from the lower left inventory square.
program Alch;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
const
SmartWorld = 24;
SmartMembers = False;
SmartSigned = True;
SmartSuperDetail = False;
var
a, b, x, y: integer;
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
end;
procedure Alchemize;
begin
begin
Wait(500 + Random(100));
MMouse(745, 187, 12, 15);
GetMousePos(a, b);
Wait(100 + Random(100));
Mouse(a, b, 0, 0, True);
end;
repeat
begin
MMouse(624, 424, 5, 5);
GetMousePos(a, b);
Wait(100 + Random(100));
Mouse(a, b, 0, 0, True);
Wait(1000 + Random(1000));
MMouse(620, 409, 10, 10);
GetMousePos(a, b);
Wait(100 + Random(100));
Mouse(a, b, 0, 0, True);
Wait(1000 + Random(1000));
end;
until(False);
end;
begin
Smart_Signed := SmartSigned;
Smart_SuperDetail := SmartSuperDetail;
Smart_Server := SmartWorld;
Smart_Members := SmartMembers;
SetupSRL;
DeclarePlayers;
LoginPlayer;
Alchemize;
end.