SRL Archive - First Scripts

RuNnNyClayMiner


RuNnNy

2012-01-07 10:28:44

RuNnNyClayMiner


Description:
RuNnNyClayMiner Mines Clay at the Varrock West Mine.



How to use:
1. Put your Name, Password and such in the DeclarePlayers method.
2. Run the script (Press the Green Play Icon or Press F9).




IMPORTANT!
Account Setup:
1. Have pickaxe already wielded.
2. Stand in the Varrock West mine with the clay in sight.




Known Issues:
Clicks "Moe The Miner" some times due to the color of his shirt

RuNnNy

2012-01-07 10:42:55

Some feedback would be awesome!

Justin

2012-01-07 11:26:11

Looks good for a first script.
I would switch over to SRL5 (http://villavu.com/forum/showthread.php?t=71118&highlight=srl5)

also

Mouse(x, y, 0, 0, false);

I would add some random pixels there (change 0, 0 to something like 3, 5)

Swatarianess

2012-01-07 12:22:31

Look good with TPA walking ^^ maybe add sps walking as failsafe for next update? Also instead of using findobj; look into making your own! It'd Be good learning experience an you can sculpt it into doing whatever you need it to do ^^ other than that looks good ^^

shstiger2009

2012-01-07 13:21:01

Just tested for a few runs, the only thing I can see is the camera angle should be set to the highest so that it sees the banker when going to bank, and it did get stuck on Moe The Miner and I had to stop SMART and fix it. Other than that, mines clay fine and walks to the bank fine from what I can see. Very nice script. :)

P.S. The resting option should be taken out in my opinion, it's bot like and from the few runs that I did, I didn't even need to rest and it did.

Scaper

2012-01-07 13:57:22

Great all we need for the price of clay to crash loads now :/

goodjob tho

RuNnNy

2012-01-08 11:11:33

From: [J]ustin
Looks good for a first script.
I would switch over to SRL5 (http://villavu.com/forum/showthread.php?t=71118&highlight=srl5)

also

Mouse(x, y, 0, 0, false);

I would add some random pixels there (change 0, 0 to something like 3, 5)


Thanks for the feedback and I Changed the Mouse(x, y, 0, 0, false); To Mouse(x, y, 2, 2, false); and im looking into switching over to SRL5 :)

RuNnNy

2012-01-08 11:14:32

From: bro433
Look good with TPA walking ^^ maybe add sps walking as failsafe for next update? Also instead of using findobj; look into making your own! It'd Be good learning experience an you can sculpt it into doing whatever you need it to do ^^ other than that looks good ^^


I'm looking into SPS walking for the next update and perhaps i should make my own findobj;

Thanks for the feedback :)

Uraganass

2012-01-08 16:18:28

I have a problem.. When it's banking it click "Deposit money pouch" not "Deposit backpack". What should I change to ?

RuNnNy

2012-01-09 11:09:50

From: Uraganass
I have a problem.. When it's banking it click "Deposit money pouch" not "Deposit backpack". What should I change to ?


You need to go to your Bank method in Simba and locate the "DepositAll" function and replace it with this:

function DepositAll: Boolean;
var
T, X, Y: Integer;
BScreen, DScreen: Boolean;
begin
Result := false;
BScreen := BankScreen;
if (not(BScreen)) then
DScreen := DepositScreen;
if (BScreen) or (DScreen) then
if (InvCount > 0) or (FindColor(X, Y, srl_outline_black, 98, 68, 436, 257) and (DSCreen)) then
begin
Mouse(360 - 50 * Integer(DScreen), 305 - 30 * Integer(DScreen), 15, 10, True);
Wait(200 + Random(300));
T := GetSystemTime;
while (InvCount > 0) or (FindColor(X, Y, srl_outline_black, 98, 68, 436, 257) and (DSCreen)) and (GetSystemTime - T < 2000) do
Wait(100);
Result := (InvEmpty) or (not(FindColor(X, Y, srl_outline_black, 98, 68, 436, 257)) and (DScreen));
end else begin
srl_Warn('DepositAll', 'No items to deposit ', warn_AllVersions);
result := true;
end;
end;

shstiger2009

2012-01-09 11:43:14

From: Uraganass
I have a problem.. When it's banking it click "Deposit money pouch" not "Deposit backpack". What should I change to ?


Along with his post, this will be in your srl folder in the file called bank.scar, since it seems you don't have SRL5 yet.

RuNnNy

2012-01-09 18:20:01

From: shstiger2009
Along with his post, this will be in your srl folder in the file called bank.scar, since it seems you don't have SRL5 yet.


Its good that you mentioned SRL5, 'Cause i'm having trouble putting it in my script and i really would appreciate any kind of help from anyone.

Britannianpoika

2012-01-10 10:36:25

I've got one problem when I'm running this. It starts to rest when it's banking and then script stops working :/

Any suggests ?

Scaper

2012-01-15 09:11:28

yea not very efficant script iv totaly re-wrote it and have it working for another location with sps walking etc :)

YILDIRIM

2012-01-23 10:21:14

were do i type my username and password for it to login ?

Zeuche

2012-02-11 13:29:00

It says cannot find SMART.scar? :(:duh:

Penance

2012-02-20 17:34:39

From: Zeuche
It says cannot find SMART.scar? :(:duh:


Exception in Script: Unable to find file 'srl/srl/misc/smart.scar' used from ''

This is an issue for me too.
I am new to Simba botting.
Solution anyone? ;3

orangyvv

2012-06-15 12:09:17

How do I run it? I can open the code, I don't know what to do from there.

NKN

2012-06-16 09:39:08

Don't gravedig.

It's a broken script.