SRL Archive - OSR Help

help with script i modified


Saint//+

2013-02-06 17:40:57

I tried using leetz and Sjoekeloe's chocolate crushers and couldn't figure out how to get either of them to work.
so i decided to modify leetz script to get it to work with the new pop up window for cooking.
It seems like for the most part it is working smooth except sometimes when it clicks the big blue crush button it doesn't start crushing then the mouse moves to a random location waits a minute then right clicks the chocolate again selecting powder before clicking the blue crush button.

how can i fix it so that it clicks the blue button instead of trying to right click the chocolate bar again when it doesn't need to.

im attaching my script and be warned its probably a mess all i know of programming i know from this site and am just beginning to understand it.


this is the section of code that works the blue botton
procedure CrushProcess;
var
Continuez:boolean;

begin
sleep(randomrange(50,200));
if(WaitFunc(@FindChoc, 50, 3000))then
begin
statsguise('crush?');
Mouseitem(Randomrange(1,28),0);
WaitOption('owder', 3000);
Wait(50 + Random(20))
HumanMouseBox(401, 306, 477, 326) // Clicks on The Big Blue Grind
FastClick(True)
Wait(16000 + Random(300))
HumanMMouse(RandomRange(1,500), RandomRange(1, 500), 0, 0); //Moves mouse to random position after Craft
End;
if(Continuez=true)then
begin
Antiban;
if(WaitFunc(@FindDustLastSlot, 50, 40000))then Crushes:=Crushes+28;
end;
end;

Sjoe

2013-02-06 17:41:56

Do u need help with using mine?
EDIT: just pick the color of the bankbooth with my script. and up the tolerance to 15
Try that

Saint//+

2013-02-06 17:45:51

edit:
From: Sjoekeloe
EDIT: just pick the color of the bankbooth with my script. and up the tolerance to 15
Try that


cool that worked perfectly. idk what i was doing wrong before.

Sjoe

2013-02-06 17:57:15

yeah forgot ACA, just use the colorpicker :) should work too

Saint//+

2013-02-06 18:03:09

color picker doesnt work with wine either. i had to take a screenshot change it into a bitmap and upload it into ACA to find the color.