Results 1 to 16 of 16

Thread: Best way to pick up all stuff in man screen..

  1. #1
    Join Date
    Nov 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Best way to pick up all stuff in man screen..

    Can someone please point a way to try and pick up EVERYTHING in the main screen...

    been searching through a great many free scripts for a solid pickup procedure, can someone provide an example.

    There are a ton of tuts on how to drop things, but i was wondering if there is a universal procedure to find and pick up all piles of junk that could be detected in the main screen.
    I can write a finddtm, or find bitmap, but the variety of junk of what can be dropped in a random pile is well, complex.

    Maybe i am stuck on this one, but was working on a scavenger script, and just can't seem to figure a way to just pick it all up.

    By solid, i mean 100%
    in hopes of a simple loop, not a dtm, bitmap based if then call.

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well thats pretty tough, there is no specific procedure to pick up every ms item. But you could make and array of the colors of a bunch of items, then use findcolortolereance with a very high tolerance.
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    Nov 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by whales View Post
    Well thats pretty tough, there is no specific procedure to pick up every ms item. But you could make and array of the colors of a bunch of items, then use findcolortolereance with a very high tolerance.
    i was trying to do the math on the array on all the noob + GodKnowsWhat stuff that can be on top of the pile, and had to spill a beer over my head to put out the spontaneous fire that broke out....

    anyway....that was when i was wondering if there was like a find pile procedure er something.

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Use

    SCAR Code:
    DTM := DTMFromString('78DA639CC6C4C010C380023E426946183D15A' +
           '8261655CD4D7435D331CD3987A48609A6261A55CD4B34350048F1' +
           '075F');

    To click the drop dot on minimap, then use colors/bitmaps/dtms made specifically for certain objects. There's no 100% way to do it.

  5. #5
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im think this might get you banned but you could make a loop that just right clicked everyeveerywhere on the screen till it got to the end

    while(mouse is not at the bottom end)
    right click and check for pickup item
    move mouse over a little
    if (mouse is all the way right)
    move down and to the left
    end
    end
    "your always where you supposed to be"

  6. #6
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    The only thing I can think of is to randomly move the mouse over the main screen and search for uptext
    Interested in C# and Electrical Engineering? This might interest you.

  7. #7
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Try this:

    SCAR Code:
    program New;
    {.include SRL/SRL.Scar}
    var
    RedDot: Integer;

     procedure DeclareDTM;
      begin

       RedDot := DTMFromString('78DA639CC6C4C010C380023E426946183D15A' +
           '8261655CD4D7435D331CD3987A48609A6261A55CD4B34350048F1' +
           '075F');          //Thanks for the DTM Boreas ;)
     
      end;

     procedure DotClicker;
      begin
       if(FindDTM(RedDot, x, y, MMX1, MMY1, MMX2, MMY2))then
        begin
         repeat
          Mouse(x, y, 0, 0, True);
          Flag;
           repeat
            Mouse(257, 184, 0, 0, False);
            ChooseOption(x, y, 'Take');
           until(Not(ChooseOption(x, y, 'Take')));
         until(Not(FindDTM(RedDot, x, y, MMX1, MMY1, MMX2, MMY2)));
        end;

    begin
    SetupSRL;
    DeclareDTM;
    DotClicker;
    end.

    It's not flawless, but that's not my fault.

  8. #8
    Join Date
    Nov 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That almost worked!
    Thanks for the point in the right direction jason2gs.

    Is there a way to spiral out from the center of your character looking for IsUpText 'take'?

    Once the red dot is found, the cordinates of where the pile is located is random, sometimes at 253,169 ranging to 249,183 thus making it almost impossible to right click exactly on the pile and take the pile.

    Just need a way to start from dead center and scan out 100-200 pixels and search for 'take'.

  9. #9
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    That I'm not so sure about

    You could make it search for an area where the grass color tolerance is not, then move the mouse there and search for the uptext. The uptext might not be there, however, so it'd probably serve best to just right click and chooseoption 'Take.'

    Good luck! May I ask what you need this for, though?

  10. #10
    Join Date
    Nov 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Was trying to make a pre-script to be run for one week prior to running Tarajunky's LAME.

    Was going to call it Rune Abuser, and have it basically log 15-30 players in continuously over in a loop, to perform the following.

    1. Find Guide Symbol,
    2. Find Upper Left tree next to Magic Tutor,
    3. Drop runes next to tree,
    4. Claim runes from Magic Tutor.
    5. Find Pile of Runes, and pick back up.
    6. Maybe kill a few LVL2 helpless men. (to waste a bit of time)
    7. Log out and on to the next character.

    This would allow me to start LAME with about 500-700 runes per player if it all worked out.

    Have everything worked out excpet the part where he picks his crap back up.

    Most of the procedures are collective works (or borrowed) and will credit where due.

  11. #11
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Ah, so a drop trading script to stock pile on runes? Smart

  12. #12
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I think each player would have their own stack though...

    if they each gave their runes to one char, if the script missed the stack once...all gone.

    Heyyy...*idea* just leave one guy there with a *stay logged in and accept all trades* script, then just have the 30 guys switching and trading their runes to him-it'd be alot better, as you couldn't accidentally loose all the runes
    Interested in C# and Electrical Engineering? This might interest you.

  13. #13
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    That's be smart

    Just set one account up on a different computer, and you're good to go.

    EDIT: Oh, oops. It's not anything like a drop trader. I misread what you wrote

  14. #14
    Join Date
    Nov 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Heyyy...*idea* just leave one guy there with a *stay logged in and accept all trades* script, then just have the 30 guys switching and trading their runes to him-it'd be alot better, as you couldn't accidentally loose all the runes

    awesome.....was brainstorming on this earlier, and was wondering about this......not just one account, but a few......


    and then an array....of trades characters.....

    and then.....

    ***blows fuse in mind***

  15. #15
    Join Date
    Nov 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok...tested the beta out last night for Rune Abuse. Ran 20 characters through.

    One of them has 720 minds, and 720 airs.
    The others range on avg, between 200-300,
    a few completeley bombed and have 30-60.

    anyone interested?

  16. #16
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol, nice job there

    I would be interested, but I can't say I have any use for it. Not as of right now.

    I do have about 13 "spare" accounts that I could use to test this out overnight, though.

    Mind registering the script though? I could always use more minutes

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. what would you pick?
    By kurupt916 in forum NOTA
    Replies: 17
    Last Post: 01-31-2009, 08:19 PM
  2. buying pick handle + pick head * seperate.
    By Dark_Sniper in forum Mining and Smithing
    Replies: 10
    Last Post: 11-12-2007, 03:50 AM
  3. Trade Screen and Duel Screen?
    By Hey321 in forum OSR Help
    Replies: 18
    Last Post: 12-14-2006, 11:13 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
  •