Results 1 to 9 of 9

Thread: FindNormalRandoms

  1. #1
    Join Date
    Feb 2012
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindNormalRandoms

    How do I implement it into my script? Is there a thread on this?
    I couldn't find one.

  2. #2
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    In a procedure where there is the possibility of randoms appearing you can place

    FindNormalRandoms;

    before it performs a task (that way it will not perform the task if it is stuck in a random).

    or alternatively if you want it to completely get out of the procedure/function if it is in a random

    Simba Code:
    if FindNormalRandoms then
      Exit;{or TerminateScript;}

  3. #3
    Join Date
    Feb 2012
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks!

  4. #4
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Just to be safe, make sure you add it to every single loop you have.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  5. #5
    Join Date
    Feb 2012
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by litoris View Post
    Just to be safe, make sure you add it to every single loop you have.
    I was thinking about doing this, but would that slow the script down at all?
    May be a dumb question.

  6. #6
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by klamse View Post
    I was thinking about doing this, but would that slow the script down at all?
    May be a dumb question.
    It takes <0.1 sec for it to check if u r in a random. But it will switch ur game tab to inventory if its not already.

  7. #7
    Join Date
    Feb 2012
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    One last question. Here is a procedure:
    Simba Code:
    {*
      Author: Google

      Deposits five pure essence from the inventory.
    *}

    Procedure DEssence;
    Begin
      Begin
        If FindBitMapTolerancein(Ess, X, Y, 612, 223, 711, 344, 65) Then
          Begin
            HumanMMouse(X, Y, 5, 5);
            ClickMouse2(False);
            ChooseOption('Deposit-5');
          End;
       End;
    End;

    Where in the Procedure would I put FindNormalRandoms?
    Thanks everyone for helping me learn!

  8. #8
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Something like this should work -

    Simba Code:
    procedure DEssence;
    begin
      if FindNormalRandoms then
        Exit;
      if FindBitMapTolerancein(Ess, X, Y, 612, 223, 711, 344, 65) Then
      begin
        HumanMMouse(X, Y, 5, 5);
        ClickMouse2(False);
        ChooseOption('Deposit-5');
      end;
    end;

  9. #9
    Join Date
    Feb 2012
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for you help

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
  •