SRL Archive - First Scripts

Very basic Ardy Nature Thief


Hero

2011-12-12 22:54:53

So I saw someone talking about working on this project and I then decided to try my hand at it and see if anything I am reading is sinking in. This is just an attempt at a script that could be improved(should be improved :p)


DISCONTINUED

It includes:
SMART(removed for temp time)
Login
Simple Antiban
Loots both chests for gold and a nature rune.

Requirements: 43 Thieving to steal from the chests.

Start the script anywhere upstairs in the house east of the Ardougne Baker Stall


Until I add autocolor finding you might have to upadte the color of the chest. Use the top left brown part. :P


program ArdyChestThiefV1.1;
//{$i srl/srl/misc/smart.scar}
{$i srl/srl.scar}

const
chestcolor=4413540;//If not finding chest update this.
// Update using left side of the top chest(autocolor later).



Procedure DeclarePlayers;// Enter your information if you want it to automatically log in etc.
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

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



Procedure Start;
Begin

If(Not(LoggedIn))then
LogInPlayer;
Writeln('Please start in the second floor room with the chests.');
Wait(RandomRange(1000, 1500));
FindNormalRandoms;
SetAngle(true);
end;



procedure AntiBan; //Basic Antiban credit to antiban tuts and such.
begin
if(not(LoggedIn))then
Exit;
case Random(20) of
0:
begin
HoverSkill('Thieving', false);
wait(2453+Random(432));
FindNormalRandoms;
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
FindNormalRandoms;
end;
3: ExamineInv;
end;
end;



procedure LootChests;//Find either chest when full and loots. If not it will post in debug.
var
x, y : Integer;
begin
if not LoggedIn then Exit;
if FindObjCustom(x, y, ['Ope', 'hest'], [chestcolor], 0) then
begin
MMouse (x, y, 3, 3);
Wait(100+ Random(100));
Mouse (x, y, 0, 0, false);
Wait(200+ Random(100));
ChooseOption('Search for traps Chest');//Clicks Chest
Wait(4000+ Random(100));
Writeln('Looted!');
FindNormalRandoms;
Wait(200+ Random(100));
end else begin
if FindObjCustom(x, y, ['pen', 'hest'], [chestcolor], 0) then
begin
MMouse (x, y, 3, 3);
Wait(100+ Random(100));
Mouse (x, y, 0, 0, false);
Wait(200+ Random(100));
ChooseOption('Search for traps Chest');//Clicks Chest
Wait(4000+ Random(100));
FindNormalRandoms;
Writeln('Looted!');
Wait(200+ Random(100));
end else begin
if IsChatBoxTextAnyLine ('ooted',clBlack) then //failsafe? Stops spam looting or if someone else is there looting.
begin
Wait(4000+ Random(100));
writeln('Something is wrong. Logging out.');
Logout;
TerminateScript;
end else begin
writeln('Both chests are currently empty, waiting...');
end;
end;
end;
end;



begin
ClearDebug;
Setupsrl;
Activateclient;
DeclarePlayers;
Start;
Antiban;
repeat
Setangle(true);
LootChests;
until (AllPlayersInactive);
TerminateScript;
end.


Future Additions I would like to add or work out:
Support for both chests
Failsafes
Better Chest finding method
Progress report to track exp and total income*anyone have tips*
World switching if there are players at the chest
Multiplayer

AutoColor



Version 0.1 - Very basic script to steal from the Ardy chest.
Version 1 - Updated Chest finding method and added the other chest.
Version 1.1 - Added a very basic fail safe to prevent the script from just spam clicking.


I am open to any suggestions of improvements.

[XoL]

2011-12-12 23:21:56

Looks basic but good for a first script! :)
Can you die at this chest? If so maybe add food options

Hero

2011-12-12 23:25:40

From: R4nd0m
Looks basic but good for a first script! :)
Can you die at this chest? If so maybe add food options


You can only die at this place by clicking 'Open' instead of the 'Steal' option. So as long as the clicking is accurate you can't die.


From: Mink
average natures per hour using script? i actually remember stealing from that chest when i was first thieving on my first main acc, sooo many years ago. And, yes you can die at that chest, but only if u attempt opening it before checking traps. I'll test it out soon!


Average is still an unsure number because I haven't been able to add progress tracking but it is maybe 2-3 natures per minute which means 120-180 natures per hour(not counting time on randoms and such) which means about 31.8k-47.7k gold an hour at current ge price. Fan sites say it respawns after about 10 minus animations. Once I can find a better method of locating and click that specific chest I will like I said try to trim the fat and optimize the script to steal the maximum number per hour. It is a very slow method either way though since you have to wait on the game to refill the chest. I will try to add multiplayer at some point as well to run multiple noobs farming natures.

Mink

2011-12-12 23:28:06

average natures per hour using script? i actually remember stealing from that chest when i was first thieving on my first main acc, sooo many years ago. And, yes you can die at that chest, but only if u attempt opening it before checking traps. I'll test it out soon!

TheShuffleRobot

2011-12-13 00:11:21

Looks really good, ill try it out tomorrow! Whats your exp per hour using it so far?

Hero

2011-12-13 01:20:45

Average exp would probably be 5k* an hour roughly. This with second thoughts might need to be moved to 'Monkey making-50k~range' or 'Collection scripts' lol Going to add the second chest right now to increase exp.

TheShuffleRobot

2011-12-13 01:23:32

Sounds good man, ill test it with you along the way! Goodluck!

Aegis

2011-12-13 01:24:48

So, this gets 5k Thieving exp/h, and 50k gold/h?

Hero

2011-12-13 01:52:26

From: Aegis
So, this gets 5k Thieving exp/h, and 50k gold/h?



Yes more or less that is the current nature only chest version. I am working on having it loot both chests

The nature rune chest takes 12 seconds to respawn so lets say that is 17 per nature rune that is 3 natures a minute Plus 9 coins.

Nature ge:265 mid

(3*265+9)*60=48240 gold an hour with no space for much else

but with me working on adding the second chest that is an extra 50 coins per steal but takes about a minute to respawn so the profit is around an extra 3k

So total profit can be 51240 gold an hour but the exp increases from 4500 to 12000 an hour lol. It is just like I said more of a weak money maker.

Gushers

2011-12-13 03:10:25

Very good script! As you were saying you should add the second chest; which will give double the exp.

Hero

2011-12-13 03:25:48

From: Gushers
Very good script! As you were saying you should add the second chest; which will give double the exp.



Thanks for the feedback. I redid the chest finding so now both chests are supported. You also actually get 125 exp from the coin chest and only 25 from the nature rune chest but the nature rune chest respawns faster. Which the script is able to handle. I need to work on progress reporting now.

Hero

2011-12-14 17:14:11

Does anyone have an idea on how I can add a progress report to this? I would like it to record the number of natures stolen OR how much gp is stolen like 50 for the lvl 43 chest and (nature runeprice+3) for the lvl 28 chest. Exp tracking too.

hader dem2

2012-01-22 15:49:01

what should i save as name thank for that i do i come and said

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

hmm what do i wrong please help

Sebo

2012-01-22 15:57:58

From: hader dem2
what should i save as name thank for that i do i come and said

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

hmm what do i wrong please help



12-14-2011 - Don't gravedig bud. The reason it is giving you that error is because this was written with SCAR. Notice how the include does not end in .simba? Make sure you check the dates before you post.

hader dem2

2012-01-22 16:31:40

From: Sebo
12-14-2011 - Don't gravedig bud. The reason it is giving you that error is because this was written with SCAR. Notice how the include does not end in .simba? Make sure you check the dates before you post.



okay but i havnet use simba for so long how should i know what to do
when i'm new