Results 1 to 12 of 12

Thread: Cooking: Clicking Inventory Help

  1. #1
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default Cooking: Clicking Inventory Help

    Hello,

    I am currently having issue with my bot, i am trying to have it click the shrimp in my inventory.

    I am using DTM's and it is able to find the range, it just wont click on the shrimp. I made sure that the DTM was found but it would not happen!!!!

    here is the issue

    Simba Code:
    procedure UseRange;
    var
    rawshrimp, x, y: integer;

    begin
        repeat
        FindNormalRandoms;
        MakeCompass('N');
        SetAngle(SRL_ANGLE_HIGH);


        rawshrimp := DTMFromString('mAAEAAHic42FgYOABYlkoZgViXigtAMSSDBAAojmAWASIuaDynFC9YkDMCFUHkmODskWh6mOcTIAkEwmYNMBIIkYGAJOpAjA=');

        if FindDTM(rawshrimp, x, y, MIX1, MIY1, MIX2, MIY2) then
          begin
              MMouse(x,y, 7,7)
              Mouse(x,y,5,5,false)
              ChooseOption('Use')
              Mouse(258, 422, 0, 0, true);
              wait (67356+random(2435));
              Antiban;
          end;
        until(InvFull);
    end;

    Please help,

    THanks,

    StickToTheScript
    Last edited by StickToTheScript; 03-16-2012 at 04:12 PM.

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    please post some code so we can actually help you

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Yeah some code would sure help. It could be a number of things, you might be searching in the wrong place for the Shrimp DTM, or maybe the shape of the Shrimp has shifted since you made your original DTM (Items do this over time).

    The best solution for this is to make your main point in the middle, like usual, but keep your sub-points from the lower left-hand side, across the bottom, and up the right-side of the item. The reason is most of the time if an item shifts in shape, it's only the upper-left hand that warps; the rest remains the same.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #4
    Join Date
    Jun 2006
    Location
    N Wales
    Posts
    558
    Mentioned
    2 Post(s)
    Quoted
    56 Post(s)

    Default

    are you sure your searching for the DTM in the correct place?

    make sure you have something similar too
    Code:
     FindDTM(DTM,x,y,MIX1,MIY1,MIX2,MIY2)
    my guess is your searching in the main screen or something instead

  5. #5
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

  6. #6
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Right after your if/then/begin add
    Writeln('Found Shrimp');

    See if that shows up when you run it.


    Also, what does the rest of the script look like? You need something like;
    Simba Code:
    {$DEFINE SRL5}
      {$i SRL/srl.simba}
    AND

    Simba Code:
    Setupsrl;
    Last edited by lilcmp1; 03-16-2012 at 10:09 PM.

  7. #7
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    well, i figured out a way to fix my cooking issue, but now, the AK bank is being a total jerk, so no matter how hard i try, i cannot bank. I used guides and everything.......

    PLEASE HELP!!!!

  8. #8
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Please post in the correct section.
    I'm back

  9. #9
    Join Date
    Mar 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    I am beginner but maybe you forgot to free the DTM
    "FreeDTM(rawshrimp);" in the end

  10. #10
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Why not posting this in the helping section? And what is the problem? Is it not clicking the rawshrimp or the range?

    I will try to answer all Runescape related questions!

  11. #11
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    1. Wrong section.
    2. You're not finding the DTM, or else it would click it.

  12. #12
    Join Date
    Jan 2012
    Posts
    915
    Mentioned
    13 Post(s)
    Quoted
    87 Post(s)

    Default

    Wong section, but I think I know the problem.. If you have the DTMs then you're set fo it to find it, but you need to set one of those things to true, I don't know which one, because it's 3AM here, and I don't want to get my coffee yet.

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
  •