SRL Archive - OSR Help

Tutorial script error


Jhangir

2011-12-20 23:20:30

Im following yohojo's tutorial script and now I get an error on line 43 the (bolded line). It says I need a semicolon?

program PowerChopper;
{$define SMART}
{$i SRL/SRL.scar}
{$i SRL/SRL/Misc/stats.simba}



Const


SRLStats_Username =


BreakIn = 135;
BreakFor = 15;
Version = 1.0;
NumbOfPlayers = 1;
StartPlayer = 0;

Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
with Players[0] do
begin
Name
end;

Procedure StatsGuise(wat:String);
begin
Status(wat);
Disguise(wat);
end

Function CheckAndClick(X,Y:Integer):Boolean;
Begin
MMouse(x, y, 5, 5);
Wait(100 + Random(50));
If CountUpColor('B', 41, 5, 86, 24, 70, 140) Then
Begin
Result:=True;
GetMousePos(x, y);
Mouse(x, y, 0, 0,True);
Wait(100);
FFlag(0);
End;
End;

Procedure Antiban;
Begin
Case Random(192) Of
0: HoverSkill('Woodcut', False);
1: Begin PickUpMouse; SleepAndMoveMouse(3000 + Random(500)); End;
2: ExamineInv;
3: RandomAngle(1);
4: Begin GameTab(Tab_Stats); Wait(3000 + Random(500)); GameTab(Tab_Inv); End;
5: HoverSkill('random', False);
End;
End;

Function ChopDown;
Var
x, y: Integer;
Begin

// FindObjCustom(x, y, ['att', 'ack'], [123456, 345678], 5);
If FindObjCustom(x, y, ['Chop', 'down', 'p d'], [123, 345], 10) Then




begin
end.

Jhangir

2011-12-20 23:29:58

som1 please give me my acc back i left my info by mistake

Flight

2011-12-20 23:35:30

Try putting a ";" on the 'End' on line 41.

End;

Jhangir

2011-12-20 23:38:01

thanks for that but now my account is hacked….

kevin33

2011-12-20 23:39:22

You lost account?? Like Runescape account?? Details dont seem to be in script? If so recover it I guess. Nothing else I can suggest really.

YoHoJo

2011-12-20 23:45:33

From: Jhangir
thanks for that but now my account is hacked….


(He left it in, then later edited it out)
Damn that sucks!
Happened to one of mine also. Left it unblurred in tutorial on accident…..
It's a shame, probably because all of these new Java Forum scum users have joined nothing is safe anymore.

It used to be you accidentally do that, you get a PM from a nice guy who changed it for you, now you just get hacked.

I'm really sorry to see that happen to you, hope the loss wasn't too big, and hope this doesn't defer you to continue learning!

Jhangir

2011-12-21 00:05:17

Its all good guys I got my acc back and everything is safe inside.

kevin33

2011-12-21 00:07:33

From: Jhangir
Its all good guys I got my acc back and everything is safe inside.


Wow that was lucky. Ur a lucky man. Surprised that u got it. Once u lose it normally theres no getting it back. Ive lost 1 and I did not get so lucky.

Jhangir

2011-12-21 00:08:27

From: kevin33
Wow that was lucky. Ur a lucky man. Surprised that u got it. Once u lose it normally theres no getting it back. Ive lost 1 and I did not get so lucky.


The hacker felt bad and said he didn't need the acc anyways so he gave it back.

kevin33

2011-12-21 00:10:14

From: Jhangir
The hacker felt bad and said he didn't need the acc anyways so he gave it back.


Wow. What a nice guy. U didnt lose anything tho??

Jhangir

2011-12-21 00:22:46

From: kevin33
Wow. What a nice guy. U didnt lose anything tho??


Nope everything is the exact same

eduardo230

2011-12-21 01:27:36

haha nice thts cool my friends hacked me 3 times -.- but i was a noob back them nothing more than 20k and a week without my acc.

Hero

2011-12-21 01:34:18


Const


SRLStats_Username = //You are missing a ;


BreakIn = 135;
BreakFor = 15;
Version = 1.0;
NumbOfPlayers = 1;
StartPlayer = 0;

Just a fyi.

TheJokester117

2011-12-21 01:42:43

From: Flight
Try putting a ";" on the 'End' on line 41.

End;


This is the fix you're looking for, btw. And glad to see your account is safe.