Results 1 to 5 of 5

Thread: Need help with Custom font and uptext

  1. #1
    Join Date
    Mar 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Need help with Custom font and uptext

    I am trying to make a simple woodcutter. I have never made a script before and followed tutorials and guides to get where I am. I have tried looking and couldn't figure it out. This is what I have.
    This is for RSPS

    program New;
    {$i srl/srl.simba}

    procedure ChopTree;
    var x, y: integer;
    begin
    LoadFont(SSFont, True);
    repeat
    if FindObj(x, y, 'een', 4690048, 15) then
    begin
    Mouse(x, y, 0, 0, False);
    ChooseOption('een');
    end;
    repeat
    wait(400+random(250));
    Until (InvFull);
    until(InvFull);
    end;

    begin
    SetUpSRL;
    ChopTree;
    end.

    I read that I needed to include my Fonts so I added [LoadFont(SSFont, True);].
    In my Font folder I have
    Fnte.png Fntn.png
    I got the letters from fntpic.png
    Is the script not reading the uptext? Is the untext wrong? Is the LoadFont(SSFont, True); not working?
    Right now all it does is hover over the trees and doesn't click them.

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Cut out ALL the black around the edges. Check out zip below
    Attached Files Attached Files

  3. #3
    Join Date
    Mar 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Cut out ALL the black around the edges. Check out zip below
    I saved those letters and changed the LoadFont(SSFont, True); to LoadFont(SSUpChars, True);
    But it still just hovers over trees.
    Are the fonts not getting loaded into the script?

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by farkid View Post
    I saved those letters and changed the LoadFont(SSFont, True); to LoadFont(SSUpChars, True);
    But it still just hovers over trees.
    Are the fonts not getting loaded into the script?
    You have to make your own function to use them your still using the SRL find obj

  5. #5
    Join Date
    Mar 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    You have to make your own function to use them your still using the SRL find obj
    Probably not something a beginner could do?

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
  •