Results 1 to 5 of 5

Thread: Help me please.

  1. #1
    Join Date
    Mar 2013
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default Help me please.

    Another noob trying to script asking for help xD.

    program new;
    {$DEFINE SMART8}
    {$i srl-osr/srl.Simba}
    {$i sps/sps.simba}
    var
    myPath:TPointArray;
    begin
    SetupSRL;
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
    myPath := [Point(4646, 2806), Point(4640, 2861), Point(4617, 2885),
    Point(4578, 2885), Point(4543, 2881), Point(4542, 2865)];
    SPS_WalkPath(myPath);
    end;





    Procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    Players[0].Name := '';
    Players[0].Pass := '';
    Players[0].Nick := '';
    Players[0].Active:=True;
    end;





    begin
    SetUpSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    end.

    When I try to compile it says Identifier UpChars07 unknown at line 804 but as you can see I don`t have that many lines.

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    remove SETUPSRL; in your procedure, only call SETUPSRL; once

    Simba Code:
    procedure Forgotthis;  // u forgot this
    var
    myPath:TPointArray;
    begin
    SetupSRL;         // delete this
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
    myPath := [Point(4646, 2806), Point(4640, 2861), Point(4617, 2885),
    Point(4578, 2885), Point(4543, 2881), Point(4542, 2865)];
    SPS_WalkPath(myPath);
    end;

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    This part of you code:
    Simba Code:
    var
    myPath:TPointArray;
    begin
    SetupSRL;
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
    myPath := [Point(4646, 2806), Point(4640, 2861), Point(4617, 2885),
    Point(4578, 2885), Point(4543, 2881), Point(4542, 2865)];
    SPS_WalkPath(myPath);
    end;

    Need to be defined as a function or procedure, ex:

    Simba Code:
    Procedure Walk;
    var
    myPath:TPointArray;
    begin
    SetupSRL;
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
    myPath := [Point(4646, 2806), Point(4640, 2861), Point(4617, 2885),
    Point(4578, 2885), Point(4543, 2881), Point(4542, 2865)];
    SPS_WalkPath(myPath);
    end;

    It's also nice to have DecalrePlayres as the first function/procedure in your script, since there's where people edit settings etc.

  4. #4
    Join Date
    Mar 2013
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Tried both still the same problem.

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    You probably installed RS07 improperly.
    The error is referring to the I crude script, not yours (it's planet popping up in a new tab).
    You need to extract the P07UpChars folder to your Simba/Fonts folder and then restart Simba to fix this.
    Check out my YouTube channel YoHoJoSRL for an install video guide if needed.

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
  •