I guess I find the problem. The script fails when the screen angle is not high enough. I usually start the script (so as to start SMART), stop it and set the bank preset and run the script again. The script fails to find the range (misclicks that guy) when the screen is set to clickCompass angle. It's my fault, sorry for that. I will probably get banned for my account coz I keep running to and fro between the range and the bank without cooking anything (It cannot detect the range when the mainscreen is set to low angle.............)
gonna try this when i get done with fishing how do you guys screenshot the proggy?
Yeah Mine clicks on the range but fails to click cook, it just stays on the QTY 28 by the slider. I tried resetting it to old school and all that changed was that it doesn't make it into the cooking room first try XD lol. I know you said you're not maintaining it, so i'm not worried and I've been trying to figure it out myself, but i'm no coder :P
/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 09h 32m 17s ||
|| Cooked: 9958 (1044 PH) ||
|| Burned: 66 ||
|| XP: 995800 (104401 PH) ||
\==============================/
Great script for non-member accounts. Just got done cooking about 12,000 tuna, ran flawlessly. Thanks for creating and posting this script, mayor!
It automatically creates a prog, just copy/paste.
/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 12h 43m 42s ||
|| Cooked: 13020 (1023 PH) ||
|| Burned: 0 ||
|| XP: 1302000 (102289 PH) ||
\==============================/
Stopped manually. Great script. Thank you.
It comes to login window and executes.
Terminated: Less than 28 items after withdrawl from bank
But I have 28 items.
Error: Unknown declaration "smartImage" at line 157 ? I've put the image in the exact folder it needs to be in.
Nevermind, i fixed it. Same problem as Clu. though
Last edited by Mack; 06-05-2015 at 01:14 AM.
I used it about a month ago. No ban, ran flawlessly, got me 66 cooking in a couple of hours.
Awesome, thanks, and keep up the good work
@The Mayor; Hiyo mate, this script almost works perfectly, only issue is that when it reaches the stove, it clicks it and opens the progress production, but it doesn't click "cook" it just hovers over "28"(the amount its supposed to cook) and the category(the bartab with the different foods there are)
I tried fixing it myself, but i wasn't able to sadly!
Scripts
Semtex Fishing Guild
Delete all this?
Fuck me, it worked xD is it because the colors are outdated in that function?Code:function TRSProductionScreen.isOpen(waitTime: integer = 0): boolean; override; var t: UInt64; begin result := false; t := (getTickCount64() + waitTime); while (not result) and (t >= getTickCount64()) do begin result := getColor(point(44, 66)) = 1388125; wait(randomRange(20, 50)); end; end;
I was way, waaay off.
I was looking at this part of the code
Code:if (length(TPA) < 1) then exit; ATPA := TPA.cluster(4); ATPA.filterBetween(0, 8); ATPA.sortFromMidPoint(mainscreen.playerPoint); if players[currentPlayer].booleans[0] then smartImage.debugATPA(ATPA); for i := 0 to high(ATPA) do begin mouse(middleTPA(ATPA[i]), MOUSE_MOVE); if isMouseOverText(text, 500) then begin fastClick(MOUSE_LEFT); smartImage.clear; if random(3) = 0 then smallRandomMouse(); case lowerCase(what) of 'bank': if bankScreen.isOpen(10000) then exit(bankScreen.clickButton(BANK_BUTTON_PRESET_1)); 'range':if productionScreen.isOpen(10000) then exit(productionScreen.clickStart());
Last edited by Semtex; 07-29-2015 at 08:10 PM.
Scripts
Semtex Fishing Guild
Yeah, you will notice that function is an override (meaning the same function exists inside the SRL include, but the modified one in my script takes priority). I overrided it when I wrote this script because the one in SRL wasn't working 100% with the cooking screen. Then I fixed the one in SRL and the one in this script looks like it became outdated. By deleting the override, the script now uses the .isOpen inside SRL (which is fixed).
To get this script to run, remove the following lines: 93 - 106
Suggested by @The Mayor;Code:93 94 function TRSProductionScreen.isOpen(waitTime: integer = 0): boolean; override; 95 var 96 t: UInt64; 97 begin 98 result := false; 99 t := (getTickCount64() + waitTime); 100 101 while (not result) and (t >= getTickCount64()) do 102 begin 103 result := getColor(point(44, 66)) = 1388125; 104 wait(randomRange(20, 50)); 105 end; 106 end;
Last edited by Semtex; 07-30-2015 at 07:55 AM.
Scripts
Semtex Fishing Guild
@The Mayor; Hiyo mate, i've noticed this a few times.
Every once in a while, it runs to the middle of the castle in Al Kharid. When this happens, it's running from the bank, trying to reach the stove/range
The debug says the following:Simba Code:-- Al_Kharid.getPlayerPos(): result = {X = 70, Y = 110}, took 16 ms
---- Waiting while the player is moving...
When it's going to the correct spot it says the following:
Simba Code:-- Al_Kharid.getPlayerPos(): result = {X = 158, Y = 186}, took 31 ms
---- Waiting while the player is moving...
I've looked over the code, but i can't find anything near those coordinates leading to the castle, so i'm kinda lost why it's running there.
Regards Semtex
Scripts
Semtex Fishing Guild
Hey Mate
Here's the progress with the new map
/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 01h 33m 39s ||
|| Cooked: 1388 (889 PH) ||
|| Burned: 96 ||
|| XP: 291480 (186715 PH) ||
\==============================/
I would say running smoothly now
I have a question though, it seems everytime it's done cooking, it takes between 5-10 seconds before it moves back to the bank,
To decrease that number, is it the following procedure that needs changing(Line 93-108)
Simba Code:procedure waitWhileCooking();
var
timer: TCountDown;
begin
timer.setTime(random(70000, 80000));
while not timer.isFinished() do
if (countColorTolerance(13278759, intToBox(244, 197, 335, 223), 44) > 145) then
exit()
else case random(1200) of
0..8: sleepAndMoveMouse(random(5000));
9..20: smallRandomMouse();
21..22: hoverSkill(SKILL_COOKING);
else wait(100);
end;
end;
The timer.setTime(random(70000, 80000));
If i lower both those numbers, does it change that minor break before returning to the bank?
Regards Semtex
Scripts
Semtex Fishing Guild
Ah i tried lowering those 2 numbers too, that seemed to work abit.
If i use the changes you made, do the progress screen need to be activated(you know the one showing the timer for how much time is left untill it's done with the load)? because at the moment, it's deactivated
Scripts
Semtex Fishing Guild
There are currently 1 users browsing this thread. (0 members and 1 guests)