Results 1 to 3 of 3

Thread: Selecting Item in Backpack

  1. #1
    Join Date
    May 2007
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Selecting Item in Backpack

    How do I select an item in the back pack without using something like Mouse(583,230,2,2,true); which isn't very reliable... I want to select a shrimp in my backpack in this little script:

    begin
    Antirandoms;
    repeat
    if not LoggedIn then Exit;
    //ADD SELECT SHRIMP IN BACKPACK HERE
    {
    Mouse(583,230,2,2,true); //Remove this line
    }
    if FindColorTolerance(x,y,1583819,5,1,515,500,5) then
    {
    FindMSColorTol(x,y,1517759,5);
    }
    wait(50+random(10));

    MMouse(x,y,0,0);
    wait(20+random(10));
    until IsUpText('Use');

    Thanks guys!

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    make a DTM and have it click that
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Oct 2006
    Location
    C:\Program Files\SCAR 2.03
    Posts
    1,194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could make a DTM of this shrimp and then use FindDTM(Shrimps, x, y, MIX1,MIY1,MIX2,MIY2) and it would return the coordinates of the Shrimp DTM as x and y.

    If you need a good tutorial on making DTM's check out DTM Tutorial
    This should tell you all you need to know.

    Basically this would be your coding...

    SCAR Code:
    Shrimp:= DTMFromString('78DA639CC7C4C0A0CBC8800C1674D53370016' +
             '990E87F2060ECC5540391859140BA1FA8C688809A2540352A04D4' +
             '4C22AC0600F5400991');
    if(FindDTM(Shrimp, x, y, MIX1, MIY1, MIX2, MIY2))then
      begin
        MMouse(x, y, 3, 3)
        if(IsUpText('Use'))then Mouse(x, y, 3, 3,true);
      end;
    [FONT="Garamond"][SIZE="3"]
    Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
    [/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. All item sale
    By faster789 in forum General Marketplace
    Replies: 0
    Last Post: 08-11-2008, 01:20 AM
  2. random command selecting?
    By Thick As Blood in forum OSR Help
    Replies: 2
    Last Post: 03-29-2007, 08:41 PM
  3. Using item??????Need help
    By wtf i sp4nk in forum OSR Help
    Replies: 16
    Last Post: 01-24-2007, 09:59 PM

Posting Permissions

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