Results 1 to 12 of 12

Thread: Mouse(x, y, 5, 5, true)

  1. #1
    Join Date
    Mar 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mouse(x, y, 5, 5, true)

    How can i make mouse click urn when its done?

    This is not my code, im trying to make it use 2 urns at once.

    Code:
     Procedure CheckUrn;
      begin
        if FindColorTolerance(x, y, 5006162, 576, 203, 584, 239, 4) then
          begin
            Mouse(x, y, 5, 5, true); //Clicks the urn found
            Wait(1000+random(100));
            FindColorTolerance(x, y, 1907518, 256, 333, 258, 441, 4);  //Finds Food
            Mouse(x, y, 5, 5, true);
            Writeln('Urn Sent! Yay XP');
            CUrn:= False;
            Inc(UrnsTeled)
            Wait(1000+random(100));
          end else
            Curn:= True;        //This is why an urn is needed on startup >.<
      end;
    How can i make it click the textbox where teleporting urn option appears?
    Atm it just click urn twice in invetory.
    Last edited by cmxz1; 02-04-2012 at 12:32 PM.

  2. #2
    Join Date
    Nov 2011
    Posts
    160
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to find the item first, so it should be a findcolor at the top.

  3. #3
    Join Date
    Mar 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by weeps View Post
    You need to find the item first, so it should be a findcolor at the top.
    My bad, added whole procedure

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

    Default

    Find a color you can click in the text box after the urn appears. DTM might work too. You can use functions that search for a color/dtm within a specific area such as the textbox.

    I'd help you more but I've never used urns lol. Just play around with the functions.

  5. #5
    Join Date
    Mar 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by lilcmp1 View Post
    Find a color you can click in the text box after the urn appears. DTM might work too. You can use functions that search for a color/dtm within a specific area such as the textbox.

    I'd help you more but I've never used urns lol. Just play around with the functions.
    This is the part that gets hard for me, how do i find coordinates?

    Full urn colour is here
    Code:
     FindColorTolerance(x, y, 5006162, x1, y1, x2, y2) then
    When urn is full some green shit appears on top of it.

  6. #6
    Join Date
    Jan 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by cmxz1 View Post
    This is the part that gets hard for me, how do i find coordinates?

    Full urn colour is here
    Code:
     FindColorTolerance(x, y, 5006162, x1, y1, x2, y2) then
    When urn is full some green shit appears on top of it.
    Use the colour picker to find the place you want the co-ords for, then it shows it on the right hand side of the box that appears


  7. #7
    Join Date
    Mar 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rawrasaurus View Post
    Use the colour picker to find the place you want the co-ords for, then it shows it on the right hand side of the box that appears

    Yea but that only works on my resolution and i have to place rs client always on same spot.

    So the question is, how can i get only rs clients resolution to show up, not only my whole screen.

  8. #8
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    FindNPCChatText("eleport");

    That will choose the teleport option.
    I am Ggzz..
    Hackintosher

  9. #9
    Join Date
    Mar 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    FindNPCChatText("eleport");

    That will choose the teleport option.
    So it will look like this?
    Code:
     Procedure CheckUrn;
      begin
        if FindColorTolerance(x, y, 5006162, 576, 203, 584, 239, 4) then
          begin
            Mouse(x, y, 5, 5, true); //Clicks the urn found
            Wait(1000+random(100));
            FindColorTolerance(x, y, 1907518, 256, 333, 258, 441, 4);  //Finds Food
            FindNPCChatText("eleport");
            Mouse(x, y, 5, 5, true);
            Writeln('Urn Sent! Yay XP');
            CUrn:= False;
            Inc(UrnsTeled)
            Wait(1000+random(100));
          end else
            Curn:= True;        //This is why an urn is needed on startup >.<
      end;
    What Mouse(x, y, 5, 5, true); even does? I understand it makes mouse use left button but where is 5,5?

  10. #10
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    randomness of the click, so when it finds the item it will click the range of which u set it (5 along the x-axis and y-axis)

  11. #11
    Join Date
    Mar 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nataurs View Post
    randomness of the click, so when it finds the item it will click the range of which u set it (5 along the x-axis and y-axis)
    So its just antiban? if i put both 0 then it clicks at same spot every time?

  12. #12
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Quote Originally Posted by cmxz1 View Post
    So its just antiban? if i put both 0 then it clicks at same spot every time?
    Yup...

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

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
  •