Results 1 to 4 of 4

Thread: [Function] RsUpdate

  1. #1
    Join Date
    Jun 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Function] RsUpdate

    OK, becasue I have not found this function from SRL, I decided to create the function.

    Like we all know that rs is updating everyday multiple times.


    Returns true, if "RuneScape Has Been Updated" note is visible on screen.

    Simba Code:
    function RsUpdated : boolean;
    var
    x,y,UpdateText : Integer;
    begin
      UpdateText := BitmapFromString(34, 12, 'beNq9U1sKgDAM640EHfrh1' +
        'T2M/17CQiCETtzGpiMfJXRJH1uatjQM+zYDAzUd13n842Jm9WV85' +
        '6IJasrYA0LHoryLYEqaGRgVpCljBDi8joAkMiFLkquhQtGlhgyNP' +
        'yb0u6D+0GCTy7p0NRieR95yWF9xODlJHqUCJidsHwyTA/9CannF1' +
        '+76RPPPugFRCGcb');

      result := FindBitmap(x,y,UpdateText);
      FreeBitmap(UpdateText);
    end;
    Last edited by Xendyke; 11-18-2011 at 02:52 AM.

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Good work However, I believe there is already a function in login.scar that tells us this.

    Tips:
    If(FindBitmap(x,y,UpdateText)) then Result:= True;

    can be shortened to

    result := FindBitmap(x,y,UpdateText);
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Jun 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    Good work However, I believe there is already a function in login.scar that tells us this.

    Tips:
    If(FindBitmap(x,y,UpdateText)) then Result:= True;

    can be shortened to

    result := FindBitmap(x,y,UpdateText);

    Thanks, you re right. I just edited.

  4. #4
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    If you (CountColor(12378347, 260, 140, 510, 400)) on the login screen and it returns 732, the "RS has updated" message is open. Much easier and faster than messing with bitmaps. <-- this is all in login.simba include by the way.

    Just curious what you plan to do with this information when you find RS is updated? If you're trying to make a RS refresher or something, modifying login.simba would be a lot easier IMO.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

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
  •