Results 1 to 7 of 7

Thread: Having troubles!

  1. #1
    Join Date
    Nov 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Having troubles!

    Started "scripting" today, im trying to understand, but im not just there yet.

    Im making a simple Ironminer script for a old RSPS, what i want is to be able to watch a movie half screen when it's filling my inventory with Iron. I'll walk back to bank manually, cause i can do that without losing my focus on the movie.

    So, this is my "script".

    Program Ironminer;

    //{$DEFINE SMART}
    {$include SRL\SRL.simba}
    {$i SRL\SRL\Misc\paintsmart.simba}

    Procedure StatsGuise(wat:String);
    Begin
    Status(wat);
    Disguise(wat);
    End;

    Function Mining:Boolean;

    Var x, y: Integer;

    Begin
    // FindObjTPA(var x, y: integer; color, tol, cts, ObjWidth, ObjHeight, minCount :Integer; UpText: tstringarray): Boolean;
    x:=MSCX;
    y:=MSCY;
    If FindObjTPA (x, y, 2240332, 20, 1, 20, 20, 200, ['Mine']) Then
    Begin
    Statsguise ('New window');
    GetMousePos (x, y)
    Begin
    Mouse (x, y, 5, 5, False);
    ClickMouse (x, y, 1)
    End;
    End;
    End;

    Begin
    SetupSRL;
    //Repeat
    Mining;
    //Until(false);
    End.

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    I don't think the ['Mine'] uptext can be found unless it is actual runescape, not sure though

  3. #3
    Join Date
    Nov 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    I don't think the ['Mine'] uptext can be found unless it is actual runescape, not sure though
    It is Runescape, just a older version and i can clearly see a text in the upper left corner saying "Mine" when im holding my cursor over a iron rock.

    I might understand what you're trying to say, since it's a newer version of Simba/Scar (RS overall) it's not compatible with the old textures?

  4. #4
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Wasn't there a huge issue b4 about the font change? I doubt it would be the same font that it reads now. Or I could just be making the entire thing up :P
    ~Rez

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  5. #5
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by dubbelfisk View Post
    It is Runescape, just a older version and i can clearly see a text in the upper left corner saying "Mine" when im holding my cursor over a iron rock.

    I might understand what you're trying to say, since it's a newer version of Simba/Scar (RS overall) it's not compatible with the old textures?
    Yeah, I think the font is different in old rs, so simba can't detect it because it detects font using the current runescape fonts. I'd make a dtm for the font, or if you are confident about your colors just use FindColorTolerance.

  6. #6
    Join Date
    Nov 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    Yeah, I think the font is different in old rs, so simba can't detect it because it detects font using the current runescape fonts. I'd make a dtm for the font, or if you are confident about your colors just use FindColorTolerance.
    Im not quite sure the color is going to work by itself, since there is a bunch of annoying scorpions with the same colors, but i'll give it a try.

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

    Default

    If you are not using the most current RS then the uptext will be an issue. As the game has changed they have also updated the fonts and thus the WaitUpText and IsUptext functions will not return the correct result on older versions. Try making a DTM of the UpText and using that

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •