Results 1 to 12 of 12

Thread: How would I do the following in Simba?

  1. #1
    Join Date
    Jan 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Post How would I do the following in Simba?

    Hey guys, I've been attempting to code my first script (a Firemaker) for a while now. I've done everything except for the part in which you actually burn the logs.
    I've got this so far:

    Simba Code:
    procedure Burn;
    var
      I : Integer;

    begin
      if(not(LoggedIn)) then
        Exit;
      if (InvCount = 0) then
        FindRandoms;
        WalkToBank;
        Antiban;
        Minibreaker;
        Proggy;
        StatsGuise('Attempting to burn ' + (LogType) + 's');
        for I := 1 to 28 do
          begin
            FindRandoms;
            InvMouse(I, 0);
            Wait(125 + Random(75));
            if ChooseOption('ight') then
            Wait(1000 + Random(250));
          end;
    end;


    It would be very greatly appreciated if someone could give me an example of how to do this. I will try my best to modify it so it's not direct copy + paste, and of course you will be credited.

    Thanks all!

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Simba Code:
    for I := 1 to 28 do begin
      //Get the InvBox
      //If log DTM found, right click.
      //Use InvBox x1 y1 x2 y2 coordinates for the DTM finding.
      if ChooseOption('ight') then begin
        //Wait here
      end;
    end;

    Like that.
    There used to be something meaningful here.

  3. #3
    Join Date
    Jan 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Simba Code:
    for I := 1 to 28 do begin
      //Get the InvBox
      //If log DTM found, right click.
      //Use InvBox x1 y1 x2 y2 coordinates for the DTM finding.
      if ChooseOption('ight') then begin
        //Wait here
      end;
    end;

    Like that.
    Thanks, and could you please also show me how to do it with ACA and TPAs? I would like to have more than one method for each procedure as a failsafe.

    Thanks!

  4. #4
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by injustice View Post
    Thanks, and could you please also show me how to do it with ACA and TPAs? I would like to have more than one method for each procedure as a failsafe.

    Thanks!
    Use search to find the instructions for specific methods of object detection, bitmap mask / DTM is enough thought. Its just for inventory, MS object detection would need more advanced detection. There is a tutorial for everything
    There used to be something meaningful here.

  5. #5
    Join Date
    Jan 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Use search to find the instructions for specific methods of object detection, bitmap mask / DTM is enough thought. Its just for inventory, MS object detection would need more advanced detection. There is a tutorial for everything
    Okay, it's just that whenever I search something it normally comes up with random results

  6. #6
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by injustice View Post
    Okay, it's just that whenever I search something it normally comes up with random results
    Set the searches sub-forum to Tutorial Island (If it still has that name).
    There used to be something meaningful here.

  7. #7
    Join Date
    Jan 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Set the searches sub-forum to Tutorial Island (If it still has that name).
    Ah okay, thanks; I'd never thought of that

  8. #8
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    This is a great thread I read through just today.

    Hopefully it's not too advanced

    http://villavu.com/forum/showthread.php?t=35504

  9. #9
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Set the searches sub-forum to Tutorial Island (If it still has that name).
    I find that switching the search setting to titles only works better. If I get too many random results then I switch to specified thread field

  10. #10
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    Tbh use DTMs n a tinderbox, then use tinderbox on logs and wait until no log dtm found

  11. #11
    Join Date
    Jan 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by DemiseScythe View Post
    Tbh use DTMs n a tinderbox, then use tinderbox on logs and wait until no log dtm found
    I'm going to do this first, then as I get more experienced I'll add ACA and TPointArray finding.

    Thanks everyone though!

  12. #12
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    Quote Originally Posted by injustice View Post
    I'm going to do this first, then as I get more experienced I'll add ACA and TPointArray finding.

    Thanks everyone though!
    DTMs is just as advanced, umm try something like this for the wait

    Simba Code:
    I := InvCount;
    Light Log;
    repeat
      Wait(150 + Random(50));
    until (InvCount = (I - 1) or (not(LoggedIn));

    Ofc might need 1 more failsafe with something like Inc(F) inside that repeat loop in case the Light Log function fails but you going to have to figure how to add that one on your own =)

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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