Results 1 to 11 of 11

Thread: Closing newbie ads

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

    Default Closing newbie ads

    I know that FindNormalRandoms doesn't close the ads you get when you get 5 magic or 10 strength on noob accounts, and I think that should be added. I was going to do it ymself but I can't use my own computer(overseas atm) till the 17th, and can't download any software to this PC I'm using. I gathered some images from the internet, seems like searching for the cross bitmap in the upper-right corner would suffice. Images for reference:
    http://images3.wikia.nocookie.net/__...hood_popup.png
    http://i.imgur.com/G9OLo.png
    Would be nice if someone with free time could do it.
    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

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Look in the antiban include, I believe there is something that closes them

  3. #3
    Join Date
    May 2012
    Location
    Draynor Willows
    Posts
    498
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Or a new random event like a interface closer? I think that would be alot easier to keep on track and use.

  4. #4
    Join Date
    Dec 2012
    Location
    North Dakota
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I was about to suggest this when I came upon this thread, here is another picture.
    http://i48.tinypic.com/2uyqb93.png

    It looks like all of them have the x in the top right in common, it would be pretty easy, I'll take a look to see if there is anything already there to handle these annoyances.

    edit: I didn't see any functions under the antiban include. I'll end up making something to detect these on one of my future scripts but it would be nice to have something built into SRL.
    Last edited by Soulipsism; 12-13-2012 at 05:16 AM.

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    ^ Try this..

    Simba Code:
    procedure ClickRedCross;
    var
      Cross_BMP, X, Y: Integer;
    begin
      Cross_BMP := BitmapFromString(9, 9, 'meJxjYMAHdDb+1Z75SNswU0k5VFI5QWvGQ92NfyFSQDZEVtG8FiKuPvU+REpRJR0iqwtGQHEe8SCIlJRUkKh2CVxKTKeUh8cZIiUsFak25R5WXRBxoAhQPZwNdyFEJTePE7dYIEQWr58YAPU3Qow=');
      if FindBitmapTolerancein(Cross_BMP, X, Y, MSCX, MSY1, MSX2, MSCY, 20) then
        if Pixelshift(IntToBox(164, 133, 339, 211), 400) < 5 then
        begin
          Mouse(X, Y, 3, 3, true);
          Writeln('Closed a popup');
          Wait(500 + Random(200));
        end;
      FreeBitmap(Cross_BMP);
    end;

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

    Default

    IIRC I sent a pull request for this, and it was accepted. The function is called CloseAdWindow, might be outdated because of recent updates.
    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

  7. #7
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Yeah it doesn't work when its a "big" ad, because uptext doesn't work when the ad is over half of the uptext but not the rest if you get me... which is why I used pixelshift around the middle.

  8. #8
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Find this bmp:


    blind click it.

    /solution

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

    Default

    Quote Originally Posted by Ollybest View Post
    Yeah it doesn't work when its a "big" ad, because uptext doesn't work when the ad is over half of the uptext but not the rest if you get me... which is why I used pixelshift around the middle.
    ...which is why I did this in my functions:
    Quote Originally Posted by footballjds View Post
    Find this bmp:


    blind click it.

    /solution
    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

  10. #10
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Not sure if im missing anything but... if (WaitUptext('lose', 300)) then
    ?

  11. #11
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    Not sure if im missing anything but... if (WaitUptext('lose', 300)) then
    ?
    pseudo code:

    if FindBmp(BmpClose, x, y) then Mouse(x, y, 5, 5, Mouse_Left);

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
  •