SRL Archive - OSR Help

need some help


larsi37

2013-03-26 04:38:48

i know there are probably more posts like this but i couldn't find it with the search tool. so i just started scripting and i followed a tutorial, but found out it was for eoc. are there any guides for 07 scripting, cause i really can't find them anywhere.
thanks in advance,
larsi37

grats

2013-03-26 04:56:37

What tutorial was specific to eoc? There shouldn't be much of a difference scripting wise.

You'll have different functions from the eoc include vs the 07 include, that should be all.

larsi37

2013-03-26 05:00:50

From: grats
What tutorial was specific to eoc? There shouldn't be much of a difference scripting wise.

You'll have different functions from the eoc include vs the 07 include, that should be all.


i used the thread: Script down your first rs tree (http://villavu.com/forum/showthread.php?t=44942)
but when i see some 07 scripts it all has codes with P07 in front of it? don't you have to use that if you want to make a script for 07 scape?
this is what i made so far:

program new;
{$i srl/srl.simba}
{$DEFINE SMART8}

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

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

procedure Antiban;
begin
if(not(Loggedin))then
Exit;
FindNormalRandoms;
case Random(8) of
0:
begin
HoverSkill('Woodcutting', false);
wait(1800+Random(350));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
FindNormalRandoms;
end;
end;
end;

procedure Choptree;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if Findobj(x, y, 'hop', 3037523, 35) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('hop');
end;
repeat
wait(400+random(250));
Antiban;
Until not IsUpText('ak') or (InvFull);
until(InvFull);
end;

begin
SetUpSRL;
ActivateClient;
Declareplayers;
Loginplayer;
Choptree;
end.

grats

2013-03-26 05:14:45

Yea, the P07 defines that set of functions vs the "updated" ones

as far as learning to script, you should be able to do nearly the same things, while just replacing functions with P07, I'd grab a few scripts and learn by viewing what they did. I haven't played rs in over a year so not sure on all the 07 stuff… but all you would need to do is match what any tutorial says with the P07 version of it, this is where looking at already working scripts & learning from them comes in handy

larsi37

2013-03-26 05:49:06

oh okay thanks, so the procedures and everthing written between begin and end don't have to be changed, i only need to put P07 in front of some codes?