SRL Archive - First Scripts

Big Bone Bulk Burier


bung_eye

2009-01-08 01:12:56

hey guys this is my very first script its extremely simple but it works ( i hope)
plz no flaming but i would like to know what ive stuffed up and how to improve it plz also vote in the poll

Created By Bung_Eye(IRC Name Pulance)

Credits:
Pretty much everyone that uses IRC you guys helped me heaps.

Description
This script Simply buries your big bones thats in your bank.

Future Updates include (if requested to be updated)
* Bank Pin
* Norm Bones
* Anything else dependng on your feedback

{ $$$$    $$  $$$$$$$     $$$$   $$$$$$  $$   $$  $$$$$$    $$$$    $$   $$  $$      $$  $$
$$ $$ $$ $$ $$ $$ $$ $$ $$$$ $$ $$ $$ $$ $$ $$ $$ $$ $$
$$$$$ $$ $$ $$$$ $$$$$ $$ $$ $$ $$$$ $$$$ $$$$$ $$ $$ $$ $$$$
$$ $$ $$ $$ $$ $$ $$ $$ $$ $$ $$$ $$ $$ $$ $$ $$ $$ $$ $$
$$$$ $$ $$$$$$$ $$$$ $$$$$$ $$ $$ $$$$$$ $$$$ $$$$$$$ $$$$$$ $$ $$

$$$$ $$ $$ $$$$ $$ $$$$$$ $$$$
$$ $$ $$ $$ $$ $$ $$ $$ $$ $$
$$$$$ $$ $$ $$$$ $$ $$$$ $$$$
$$ $$ $$ $$ $$ $$ $$ $$ $$ $$
$$$$ $$$$$$$ $$ $$ $$ $$$$$$ $$ $$

Created By Bung_Eye(IRC Name Pulance)

Credits:
Pretty much everyone that uses IRC you guys helped me heaps.

Description
This script Simply buries your big bones thats in your bank.

Instructions
1) Have your player standing at a bank booth with big bones in any visable bank spot.
2) Fill out the constants
* Choose to use SRLPlayerForm if True then dont worry about step 3
* BonesToBury is simply how many bones you want buried.
* BankName is what bank your at make sure that you standing at a booth
valid arguments for this are:
'feb' (Falador East Bank)
'fwb' (Falador West Bank)
'veb' (Varrock East Bank)
'vwb' (Varrock West Bank)
'db' (Draynor Bank)
'akb' (Al-Kharid Bank)
3) Declare players simple.


Future Updates include (if requested to be updated)
* Bank Pin
* Norm Bones
* Anything else dependng on your feedback}


program Big_Bone_Bulk_Burier;
{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/Users.scar}

var
BonesBuried, x,y, BigBoneDTM, BankBonesDTM: integer;

const
UseForm= true; //True to use SRLPlayerForm, False to use DeclarePlayers
BonesToBury= 500; //How many bones do you want to bury
BankName= 'veb'; //What bank to use


procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := ''; //username
Players[0].Pass := ''; //password
Players[0].Nick := ''; //3-4 letters from your username
Players[0].Active:= True
end;

procedure WithDrawBones;
begin
OpenBank(BankName, True, True);
BankBonesDTM := DTMFromString('78DA6334636060C86640016B172E649004D28' +
'C40FC1F0818F5808C340634C0884402695B22D438008942026AB4' +
'80440E01352037E7E357030034F709DA');
if FindDTM(BankBonesDTM,x,y,MSX1,MSY1,MSX2,MSY2)then
begin
Mouse(x,y,5,5,False);
wait (100+random(50))
ChooseOption('All');
wait(100+random(50));
repeat
CloseBank;
wait(1000+random(500));
until not BankScreen;
end else
begin
CloseBank;
wait(1000+random(500));
LogOut;
NextPlayer(False);
end;
end;

procedure BuryBones;
begin
BigBoneDTM := DTMFromString('78DA637466626078C28002562F98CF2002A41' +
'981F83F1030DA03D5DC6640038C482490F606AAB94F408D3950CD' +
'53026A5C816A5E1150E387A9C6404101450D00B36F0D75');
If FindDTM(BigBoneDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
repeat
Mouse(x,y,5,5,true);
if (BonesBuried mod 3) = 0 then FindNormalRandoms;
if (BonesBuried mod 3) = 0 then Findfight;
inc(BonesBuried);
If BonesBuried > BonesToBury Then logout;
Wait(1000+random(250))
until not FindDTM(BigBoneDTM,x,y,MIX1,MIY1,MIX2,MIY2)
end;
end;

procedure ProgressReport;
begin
Cleardebug;
WriteLn('###################################################################')
WriteLn('Thnx For Using Big Bone Bulk Burier')
WriteLn('You Have Succesfully Buried ' + inttostr(BonesBuried) + ' Bones')
WriteLn('You Have Gained ' + inttostr(BonesBuried * 15) + ' XP')
WriteLn('###################################################################')
end;

begin
SetUpSrl;
if UseForm = (True) then
SRLPlayerForm(True, [], [], [], [])
else DeclarePlayers;
repeat
LogInPlayer;
repeat
WithDrawBones;
BuryBones;
FindNormalRandoms;
FindFight;
ProgressReport;
NextPlayer (LoggedIn)
until(not loggedin);
NextPlayer(False);
until(false)
end.

randy marsh

2009-01-08 01:16:11

Why not post script up in scar tags as well :)

bung_eye

2009-01-08 01:18:14

alright y dat

randy marsh

2009-01-08 01:19:29

some people just prefer gazing over a script then d.l it!

bung_eye

2009-01-08 01:20:28

ok done it

randy marsh

2009-01-08 01:29:48

Why not add smart?
looks good tho will test this :)

bung_eye

2009-01-08 01:34:08

smart doesnt work as good for me so i just made a norm one mainly for testing seeing as its finnished ill add a smart version now and thnx for testing

PoPC0rN

2009-01-08 02:01:59

nice m8 i needed one of these :P
il post proggy once im done burying these 2000 bones xD

bung_eye

2009-01-08 03:25:48

kool thnx yea i cudnt find any bone buriers that used bank or big bones thats what gave me the idea

Floor66

2009-01-08 15:43:53

If ur member then burying bones is a waste.
Then you need to look out for an open Gilded Altar.

randy marsh

2009-01-08 16:37:40

i have a guiled altlar

NCDS

2009-01-08 17:07:06

Dont forget to Free your DTM's.

For Example:

procedure BuryBones;
begin
BigBoneDTM := DTMFromString('78DA637466626078C28002562F98CF2002A41' +
'981F83F1030DA03D5DC6640038C482490F606AAB94F408D3950CD' +
'53026A5C816A5E1150E387A9C6404101450D00B36F0D75');
If FindDTM(BigBoneDTM,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
repeat
Mouse(x,y,5,5,true);
if (BonesBuried mod 3) = 0 then FindNormalRandoms;
if (BonesBuried mod 3) = 0 then Findfight;
inc(BonesBuried);
If BonesBuried > BonesToBury Then logout;
Wait(1000+random(250))
until not FindDTM(BigBoneDTM,x,y,MIX1,MIY1,MIX2,MIY2)
end;
FreeDTM(BigBoneDTM);
end;

Other than that maybe try adding some antiban.
If you need help with anything feel free to PM me!

bung_eye

2009-01-08 20:17:37

thnx for letting us no to free the dtms will do that soon

Lvl6

2009-01-21 06:08:31

You have to free the DTMs.

Nice script. need better antiban and antirandoms.

NTARelix

2009-01-21 23:45:46

It seems to work well but for some reason I am getting randoms quite often. I should expect that though… No problems with the script so far. I have not yet tested the SMART version. I prefer to use VMWare. Nice script overall for beginner. Like lvl 6 said, needs more antiban functions.

skatedevil62

2009-01-22 01:09:07

Great job.Using on my newbz :P will post bugs if I find any.