Page 2 of 4 FirstFirst 1234 LastLast
Results 26 to 50 of 79

Thread: The Mayor's Al Kharid Cooker

  1. #26
    Join Date
    Nov 2014
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Hmm, it should still look for the range if the conversation box is open. Does it always (and only) fail to find the range after talking to that guy?
    Yes. Only fail when it clicks on that guy

  2. #27
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

  3. #28
    Join Date
    Nov 2014
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Looks like I'll have to give it a run
    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.............)

  4. #29
    Join Date
    Jul 2014
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    gonna try this when i get done with fishing how do you guys screenshot the proggy?

  5. #30
    Join Date
    Aug 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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

  6. #31
    Join Date
    Mar 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    /==============================\
    || 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!


    Quote Originally Posted by tokoolman View Post
    gonna try this when i get done with fishing how do you guys screenshot the proggy?
    It automatically creates a prog, just copy/paste.

  7. #32
    Join Date
    Apr 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    /==============================\
    || 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.

  8. #33
    Join Date
    Apr 2015
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    It comes to login window and executes.

  9. #34
    Join Date
    Jun 2014
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    Terminated: Less than 28 items after withdrawl from bank

    But I have 28 items.

  10. #35
    Join Date
    May 2015
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    13 Post(s)

    Default

    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.

  11. #36
    Join Date
    May 2015
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    13 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Reset your interfaces to old school and tell me if it works
    Having the same problem, interfaces are on old runescape and all settings are correct, it will not cook.

    EDIT: Did not mean to double post. I'm sorry. Do not know how to delete them :L

  12. #37
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by AustinChurch View Post
    Having the same problem, interfaces are on old runescape and all settings are correct, it will not cook.

    EDIT: Did not mean to double post. I'm sorry. Do not know how to delete them :L
    Colours need updating!

  13. #38
    Join Date
    Apr 2015
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    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

  14. #39
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    @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!

  15. #40
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Semtex View Post
    @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!
    Try deleting the whole function:

    function TRSProductionScreen.isOpen(waitTime: integer = 0): boolean; override;

  16. #41
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Try deleting the whole function:

    function TRSProductionScreen.isOpen(waitTime: integer = 0): boolean; override;
    Delete all this?
    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;
    Fuck me, it worked xD is it because the colors are outdated in that function?
    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.

  17. #42
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Semtex View Post
    Fuck me, it worked xD is it because the colors are outdated in that function?
    I was way, waaay off.
    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).

  18. #43
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Ah that explains alot well anyway, thank you so mcuh !

  19. #44
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    To get this script to run, remove the following lines: 93 - 106
    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;
    Suggested by @The Mayor;
    Last edited by Semtex; 07-30-2015 at 07:55 AM.

  20. #45
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    @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

  21. #46
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Semtex View Post
    @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
    Script hasn't been touched in 10 months I uploaded a new version which has a new SPS map (it will download it first run).

  22. #47
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Script hasn't been touched in 10 months I uploaded a new version which has a new SPS map (it will download it first run).
    Awesome i will test it tomorrow!

  23. #48
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Script hasn't been touched in 10 months I uploaded a new version which has a new SPS map (it will download it first run).
    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

  24. #49
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Semtex View Post
    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()) and (progressScreen.getbutton() = PROGRESS_BUTTON_CANCEL) do
        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
    on phone ATM. Looks like I left that count color tolerance in there by mistake. I edited the code snippet in your quote. Try that

  25. #50
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    on phone ATM. Looks like I left that count color tolerance in there by mistake. I edited the code snippet in your quote. Try that
    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

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •