Results 1 to 8 of 8

Thread: Mod Found Log Out

  1. #1
    Join Date
    Jan 2012
    Posts
    537
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default Mod Found Log Out

    The Mod Log out feature is implemented by the scripter in an anti-ban or is it automatic implemented in any script?

  2. #2
    Join Date
    Apr 2008
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by wister1 View Post
    The Mod Log out feature is implemented by the scripter in an anti-ban or is it automatic implemented in any script?
    Implemented by a scripter as far as I know.

  3. #3
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe it is called in antirandoms.

  4. #4
    Join Date
    Apr 2008
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Runescape Pro View Post
    I believe it is called in antirandoms.
    Nope, it's not. I watched my bot ignore a mod the other day

  5. #5
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    It is in the srl anti randoms... use UseFindMod := True to turn it on, though I believe that is standard.
    Working on: Tithe Farmer

  6. #6
    Join Date
    Jan 2012
    Posts
    537
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    im asking because i wanted to implement in some ocasions but not in all but i dont seem to find this function if it is indeed one

    for example, i watched zmi extreme work for a while and sometimes it logs out if a mod talks in chat but not always, which probably means it only happens when a function calls for a check chatbox to look for a sentence with silver/gold crown because sometimes it logs out after like 10 mins a mod talked...

  7. #7
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Simba Code:
    {*******************************************************************************
    function FindMod: Boolean;
    by: Stupid3ooo
    Description: Results True if a mod is found, then it waits 10-20 mins and logs back in
    *******************************************************************************}

    function FindMod: Boolean;
    var
      tX, tY: Integer;
    begin
      if (not UseFindMod) or (not LoggedIn) then exit;
      if not SRLBitmapsLoaded then
        LoadSRLBitMaps;
      if (FindColorTolerance(tX, tY, 14737632, MCX1, MCY1, MCX1 + 40, MCY2, 15)) or
           (FindColorTolerance(tX, tY, 589815, MCX1, MCY1, MCX1 + 40, MCY2, 15)) then
        if (FindBitmapToleranceIn(bmpMod, tX, tY, MCX1, MCY1, MCX1 + 40, MCY2, 15)) or
         (FindBitmapToleranceIn(bmpAdmin, tx, ty, MCX1, MCY1, MCX1 + 40, MCY2, 15)) then
        begin
          Result := True;
          AddToSRLLog('******** FOUND MOD ********');
          WriteLn('******** FOUND MOD ********');
          TakeScreen('Found mod');
          Inc(tmp_RandSolved[rand_Mod]);
          SaveToChatLog;
          if (SRL_Procs[srl_OnFindMod] <> nil) then
            SRL_Procs[srl_OnFindMod]();
          if (LogoutOnMod) then
          begin
            Players[CurrentPlayer].Rand := 'Found Mod';
            WaitFunc(@ExitToLobby, 500, 1500);
            Wait(60000 + Random(60000));
            LoginPlayer;
            Players[CurrentPlayer].Rand := '';
          end;
        end;
    end;

    This is the function. Things you can do with it:

    Use the function:
    Simba Code:
    UseFindMod := true;

    To log out when it finds a mod.
    Simba Code:
    LogoutOnMod:= true;

    To run your function when its finds one.
    Simba Code:
    procedure YourProcedure;
    begin
      writeln("Look, a mod!");
    end;

    SRL_Procs[srl_OnFindMod] := @YouProcedure;

    edit:

    It's activated when you call FindNormallRandoms; but not with FindNonInventoryRandoms; for some reason. You can manually call it with FindMod;
    Last edited by masterBB; 02-18-2012 at 05:48 PM.
    Working on: Tithe Farmer

  8. #8
    Join Date
    Jan 2012
    Posts
    537
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    thanks, my question is answered

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
  •