Results 1 to 4 of 4

Thread: RandomCompassMovement [antiban]

  1. #1
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default RandomCompassMovement [antiban]

    Basically moves the compass in a random direction for a random amount of degrees depending on Min+MaxMovement. if Return is true, it returns the compass to its original position. I think this would be a great addition to antiban.

    Simba Code:
    Function CompassMovement(MinMovement, MaxMovement: Integer; Return: Boolean): Boolean;
    var
      StartAngle, Movement : Integer;
    begin
      Result := False;
      StartAngle := round(rs_GetCompassAngleDegrees());
      case Random(2) of
        0: Movement := RandomRange(-MinMovement, -MaxMovement);
        1: Movement := RandomRange(MinMovement, MaxMovement);
      end;
      MakeCompass(StartAngle + Movement);
      if (Return = true) then
      begin
        wait(RandomRange(100,350));
        MakeCompass(StartAngle);
      end;
      Result := true;
    end;

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Isn't this just like RandomMovement?

  3. #3
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Not exactly.

    This doesn't use the mouse at all. This allows you to choose the amount of degrees moved, and whether or not to return to your original Position.

    CompassMovement(10, 30, True) would move the compass to a random spot 10 to 30 degrees away, then return the compass to its original position.

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Alright, I'll add it right now.

    E: Done!
    Last edited by Coh3n; 03-07-2012 at 01:12 AM.

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
  •