SRL Archive - Outdated / Broken

Rs2007 smart


J J

2013-02-22 14:24:38

Rename SmartParams found in C:\Simba\Includes\SRL\SRL\misc to SmartParams_RS2
Then download the attached file and place it in C:\Simba\Includes\SRL\SRL\misc

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

begin
SetupSRL;
ClickNorth(SRL_ANGLE_HIGH);


end.

Also in login.simba go to RSReady and make it return true always, otherwise it will be stuck at SetupSRL.
Could do this
// RS 2007!
Result := True;
Exit;

Credits to Olly aswell :)

Hit run and watch it load RS2007.
Keep to SRL Members only please for a while :)

YoHoJo

2013-02-22 15:42:49

Great work, nice job.
Problem Solved (Edited)

Justin

2013-02-22 16:06:59

Well… that didn't take long

xtrapsp

2013-02-22 17:47:17

Warning! You passed a wrong ye to a finder function: 500. The client has a height of 481, thus the ye is out of bounds. Setting the value to 480 (h-1) for now.

Wetish

2013-02-22 20:32:12

Figured it out. Thx for the quick release.

DaWu

2013-02-23 09:19:45

what x,y adjustments are required?

J J

2013-02-23 09:55:55

From: DaWu
what x,y adjustments are required?

Eh the nav bar is added in some case but rs07 does not have the bar.
The const coords from rs2013 are different than rs2007. Just like uptext etc. It will eventually follow.

litoris

2013-02-24 07:24:49

Instead of such a cahnge that would break non-07 scripts, I took your version of smartparams and put the part you changed (initsmart function) inside a {$IFDEF RS07} bracket. (made it run the regular stuff if it's not defined obviously)Did the same with RSReady, so I can just put {$DEFINE RS07} on top and it will load the old school server. :)

Ashaman88

2013-02-24 08:15:26

From: litoris
Instead of such a cahnge that would break non-07 scripts, I took your version of smartparams and put the part you changed (initsmart function) inside a {$IFDEF RS07} bracket. (made it run the regular stuff if it's not defined obviously)Did the same with RSReady, so I can just put {$DEFINE RS07} on top and it will load the old school server. :)


Yeah pretty much did the same - works great, thanks JJ!

kingarabian

2013-02-24 12:24:31

After we update all the SMART files like you suggested, is there anything else we need to do? Bare with me, as I haven't used Simba in about a year…

The Killer

2013-02-24 12:39:50

From: kingarabian
After we update all the SMART files like you suggested, is there anything else we need to do? Bare with me, as I haven't used Simba in about a year…


make RsReady always return true

kingarabian

2013-02-24 16:42:34

[Error] C:\Program Files\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(294:148): Invalid number of parameters at line 293

:(

Aegis

2013-02-25 23:29:29

From: kingarabian
[Error] C:\Program Files\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(294:148): Invalid number of parameters at line 293

:(


Make sure you declare SMART 8

Anyway, I can't seem to get this include (http://villavu.com/forum/showthread.php?t=96863) working with SMART. Specifically the UpText.

kingarabian

2013-02-26 00:33:23

From: Aegis
Make sure you declare SMART 8

Anyway, I can't seem to get this include (http://villavu.com/forum/showthread.php?t=96863) working with SMART. Specifically the UpText.


No offense, but his include kinda sucks :P.

Sjoe

2013-02-26 01:17:45

From: kingarabian
No offense, but his include kinda sucks :P.


He's atleast putting effort in it :)

DannyRS

2013-02-26 02:24:13

From: kingarabian
No offense, but his include kinda sucks :P.


So it doesn't work in smart, so it sucks ;) run it in a browser like before we had smart, and it wont suck, I've been using it since release just fine, and FYI alot of it is simply slightly edited versions of the main SRL Include, to work for 07, so yeh

From: Aegis
Make sure you declare SMART 8

Anyway, I can't seem to get this include (http://villavu.com/forum/showthread.php?t=96863) working with SMART. Specifically the UpText.


It's something to do with SetupSRL; offsetting some value's that break my co-ordinates

J J

2013-02-26 03:23:19

Works fine with smart for me after editing some globals because of no nav bar.

Also got a ghetto version of Sps working with smart.

xtrapsp

2013-02-26 10:20:13

Guys, any reason Smart 07 is a bit buggy?


program Chopper;
{$I SRL/SRL.Simba}
{$I P07Include.Simba}
{$DEFINE SMART}
var
Willow1,BankBooth,BankIcon,Tree,x,y:integer;
Banking:boolean;
Procedure DTMs;
begin
BankIcon := DTMFromString('mQwAAAHicY2ZgYGhnYmBoA+IuIA4E8iOgeM8cJzCuS2BmQAaMSBgIAB6JBro=');
BankBooth := DTMFromString('mWAAAAHicY2FgYMgD4gwgbgHiDiBuB+JFQLwGiCcDsYONDUOQPSeDsyEDg68VJwM6YETDIAAAlAkGqQ==');
Tree := DTMFromString('mWAAAAHicY2FgYKhkYmAoA+IqIK4FsYFiVUBcC5IDYosYEQZ9Tz4GR002MBsdMKJhEAAAdRUGIw==');
Willow1 := DTMFromString('mGQAAAHicY2RgYHBjZGCYDaSLijMZQIARRAAAIAUCMw==');
end;
Procedure FreeDTMss;
begin
FreeDTM(Willow1);
FreeDTM(BankIcon);
FreeDTM(BankBooth);
FreeDTM(Tree);
end;
Procedure ClickTree;
begin
if P07_InvFull then
exit;
ClickDTMRotatedIn(Willow1, MSX1,MSY1,MSX2,MSY2, -Pi, Pi, Pi/30, [], mouse_Right);
if P07_IsUpTextMultiCustom(['Willow', 'illow', 'Chop', 'down']) then
wait(2000+random(500));
P07_ChooseOptionMulti(['Chop down', 'Chop', 'down'])
writeln('Chopping down the tree');
sleep(1000+random(1000));
end;
procedure Walkbank;
begin
repeat
WriteLn('Walking to bank');
if ClickDTMRotatedIn(BankIcon, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/30, [], mouse_Left)then
Banking:=true;
Wait(2500);
while (IsMoving) do
wait(100);
until (Banking)
end;
procedure bank;
begin
if (Banking) then
begin
repeat
if ClickDTMRotatedIn(BankBooth, MSX1,MSY1,MSX2,MSY2, -Pi, Pi, Pi/30, [], mouse_Right)then
begin
Writeln('Bank found')
wait(500+random(500));
P07_ChooseOptionMulti(['se-q']);
Wait(2500);
while (IsMoving) do
wait(100);
end;
until(P07_BankScreen);
if P07_BankScreen then P07_Deposit(0,27,true);
end;
end;
Procedure WalkToTree;
begin
If P07_InvEmpty then
begin
ClickDTMRotatedIn(Tree, 600,120, 650,150, -Pi, Pi, Pi/30, [], mouse_Left);
WriteLn('Walking to tree');
Wait(2500);
while (IsMoving) do
wait(100);
end;
end;
Function IsChopping: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 500, 650) > 350);
Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
end;
Procedure ChopWait;
begin
If (IsChopping) then
begin
WriteLn('We are already cutting, lets wait');
wait(100+random(500));
end else
begin
WriteLn('Looking for another tree');
ClickTree;
end;
end;
Procedure Botting;
begin
If (Not P07_LoggedIn) Then
Begin
Writeln('Not Loggedin');
P07_LogInPlayer;
End;
Repeat
WalkToTree;
IsChopping;
ChopWait;
If P07_InvFull then
Walkbank;
bank;
Until(false);
end;
Begin
SetupP07Include;
ActivateClient;
SetupSRL;
DTMs;
repeat
Botting;
until(False);
FreeDTMss;
end.


Someone elses script which won't boot in SMART…

Compiled successfully in 686 ms.
Checking P07Include VersionNumber
Local : 1.5 / Latest : 1.5
You Have The Latest Version of P07Include
SRL Compiled in 0 msec
Not Loggedin

Says it's compiled and just starts script :/

Ashaman88

2013-02-26 10:32:33

Just make everything reference includes 07 and edit them to be with 07 (ie login.simba, edit loginplayer to work with 07…delete the nav bar stuff) and just make srl.simba to srl07.simba and have it reference the 07 files…that's what I did and it all works pretty well. Probably doesn't make sense meh

xtrapsp

2013-02-26 10:45:05

From: Ashaman88
Just make everything reference includes 07 and edit them to be with 07 (ie login.simba, edit loginplayer to work with 07…delete the nav bar stuff) and just make srl.simba to srl07.simba and have it reference the 07 files…that's what I did and it all works pretty well. Probably doesn't make sense meh


Sad thing is adding the RS07 include somehow made simba think I needed to update it.

Ashaman88

2013-02-26 10:45:37

From: xtrapsp
Sad thing is adding the RS07 include somehow made simba think I needed to update it.


Ouch disable those updates!

DannyRS

2013-02-26 10:50:49

From: Ashaman88
Just make everything reference includes 07 and edit them to be with 07 (ie login.simba, edit loginplayer to work with 07…delete the nav bar stuff) and just make srl.simba to srl07.simba and have it reference the 07 files…that's what I did and it all works pretty well. Probably doesn't make sense meh


EDIT - V1.6 of my include works in smart

@xtrapsp:

program Chopper;
{$DEFINE SMART}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}

var
Willow1,BankBooth,BankIcon,Tree,x,y:integer;
Banking:boolean;
Procedure DTMs;
begin
BankIcon := DTMFromString('mQwAAAHicY2ZgYGhnYmBoA+IuIA4E8iOgeM8cJzCuS2BmQAaMSBgIAB6JBro=');
BankBooth := DTMFromString('mWAAAAHicY2FgYMgD4gwgbgHiDiBuB+JFQLwGiCcDsYONDUOQPSeDsyEDg68VJwM6YETDIAAAlAkGqQ==');
Tree := DTMFromString('mWAAAAHicY2FgYKhkYmAoA+IqIK4FsYFiVUBcC5IDYosYEQZ9Tz4GR002MBsdMKJhEAAAdRUGIw==');
Willow1 := DTMFromString('mGQAAAHicY2RgYHBjZGCYDaSLijMZQIARRAAAIAUCMw==');
end;
Procedure FreeDTMss;
begin
FreeDTM(Willow1);
FreeDTM(BankIcon);
FreeDTM(BankBooth);
FreeDTM(Tree);
end;
Procedure ClickTree;
begin
if P07_InvFull then
exit;
ClickDTMRotatedIn(Willow1, P07_MSX1,P07_MSY1,P07_MSX2,P07_MSY2, -Pi, Pi, Pi/30, [], mouse_Right);
if P07_IsUpTextMultiCustom(['Willow', 'illow', 'Chop', 'down']) then
begin
wait(2000+random(500));
P07_ChooseOptionMulti(['Chop down', 'Chop', 'down'])
writeln('Chopping down the tree');
sleep(1000+random(1000));
end;
end;
procedure Walkbank;
begin
repeat
WriteLn('Walking to bank');
if ClickDTMRotatedIn(BankIcon, P07_MMX1,P07_MMY1, P07_MMX2,P07_MMY2, -Pi, Pi, Pi/30, [], mouse_Left)then
begin
Banking:=true;
Wait(2500);
P07_FFlag;
end;
until (Banking)
end;
procedure bank;
begin
if (Banking) then
begin
repeat
if ClickDTMRotatedIn(BankBooth, P07_MSX1,P07_MSY1,P07_MSX2,P07_MSY2, -Pi, Pi, Pi/30, [], mouse_Right)then
begin
Writeln('Bank found')
wait(500+random(500));
P07_ChooseOptionMulti(['se-q']);
Wait(2500);
P07_FFlag;
end;
until(P07_BankScreen);
if P07_BankScreen then P07_Deposit(1,28,true);
end;
end;
Procedure WalkToTree;
begin
If P07_InvEmpty then
begin
ClickDTMRotatedIn(Tree, 600,120, 650,150, -Pi, Pi, Pi/30, [], mouse_Left);
WriteLn('Walking to tree');
Wait(2500);
P07_FFlag;
end;
end;
Function IsChopping: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 500, 650) > 350);
Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
end;
Procedure ChopWait;
begin
If (IsChopping) then
begin
WriteLn('We are already cutting, lets wait');
wait(100+random(500));
end else
begin
WriteLn('Looking for another tree');
ClickTree;
end;
end;
Procedure Botting;
begin
If (Not P07_LoggedIn) Then
Begin
Writeln('Not Loggedin');
P07_LogInPlayer;
End;
Repeat
WalkToTree;
IsChopping;
ChopWait;
If P07_InvFull then
begin
Walkbank;
bank;
End;
Until(false);
end;
Begin
SetupSRL;
SetupP07Include;
ActivateClient;
DTMs;
repeat
Botting;
until(False);
FreeDTMss;
end.

Aegis

2013-02-26 13:37:54

I currently have an 07 Script working in SMART. Thanks :) I will probably be working on a generic fighter soon.

DannyRS

2013-02-26 13:44:23

From: Aegis
I currently have an 07 Script working in SMART. Thanks :) I will probably be working on a generic fighter soon.


If your using P07, let me know if you spot anything that doesn't work right in SMART ;)