SRL Archive - First Scripts

[FIRST-Script][07]Auto Login not working


Fr3akNL

2013-03-19 15:43:29

Hi all, I check out some scripts and tried it myself, this is my code:

Program BasicScriptTutorial;
{$DEFINE SMART}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}

Procedure P07_DeclarePlayer;
begin
P07_PlayerName:='<filled in just removed for the post>';
P07_PlayerPass:='<filled in just removed for the post>';
end;


begin
ClearDebug;
SetupSRL;
SetupP07Include;

ActivateClient;
P07_DeclarePlayer;
P07_LoginPlayer;

//repeat
if (not P07_LoggedIn) then
begin
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
P07_MakeCompassNorth;
end;
end.


If you see any mistakes let me know please.
It does not login, it just keeps moving the mouse and clicking login or existing.

nickyvh

2013-03-19 18:11:17

P07_Declareplayer; must above setupsrl

Lord Waffles

2013-03-19 19:06:23

From: nikaa
P07_Declareplayer; must above setupsrl

I think you solved your own problem? You need to declare the player first, then setup srl and include.

Fr3akNL

2013-03-20 04:47:39

Hi and thanks!
This was the problem indeed.

I am finding the next problem tho..

I am calling this function when P07_login = true:

Procedure GetEssBank;
begin


WriteLn('Looking for bank.'); // Writes in the Debug Box
if FindBank('db') then
WriteLn('Bank has been found!');


end;

However, it never writes that it has found the bank even tho its walking to it and hovering over the bank booth.

Any Ideas?

DannyRS

2013-03-20 06:17:13

From: Fr3akNL
Hi and thanks!
This was the problem indeed.

I am finding the next problem tho..

I am calling this function when P07_login = true:

Procedure GetEssBank;
begin


WriteLn('Looking for bank.'); // Writes in the Debug Box
if FindBank('db') then
WriteLn('Bank has been found!');


end;

However, it never writes that it has found the bank even tho its walking to it and hovering over the bank booth.

Any Ideas?


I'd assume Findbank is an EoC runescape function, so you'll have to use OSR or write your own bank procedure :p

Fr3akNL

2013-03-20 16:35:59

Is OSR a replacement for P07?
If yes, how much better is it?

sahibjs

2013-03-20 18:55:45

From: Fr3akNL
Is OSR a replacement for P07?
If yes, how much better is it?


Some scripts have OSR some have P07. I can't say which one is better, but you have to use one or the other depending on which one the author decided to include.

sahibjs

2013-03-20 18:58:29

From: Fr3akNL
Is OSR a replacement for P07?
If yes, how much better is it?


Some scripts have OSR some have P07. I can't say which one is better, but you have to use one or the other depending on which one the author decided to include.

Also, here are the banks from the OSR include [ATTACH]20036[/ATTACH]

Fr3akNL

2013-03-22 01:25:14

Alright, thanks!