SRL Archive - OSR Help

Help me please.


WeBot4u

2013-04-06 03:59:04

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.

Sjoe

2013-04-06 04:00:13

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


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;

YoHoJo

2013-04-06 04:02:24

This part of you 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:


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.

WeBot4u

2013-04-06 04:21:28

Tried both still the same problem.

YoHoJo

2013-04-06 04:40:43

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.