hamster31
2011-12-11 23:12:08
How Long have You Played Runescape?
9 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Visual Basic, learning Java, learning to program using simba
Are you a member of any other communities?
Robotzindisguise. I have used the scripts over there but this is much more interesting as you can program your own.
Tell us about yourself…
Please show us one (or multiple) of your scripts.
9 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Visual Basic, learning Java, learning to program using simba
Are you a member of any other communities?
Robotzindisguise. I have used the scripts over there but this is much more interesting as you can program your own.
Tell us about yourself…
From: hamster31
My name is Ham. I live in PA, and love working with computers. Going to university for a finance degree. Messing around with computers is my hobby and learning something new is my passion. I enjoy a challange and try to think outside the box if i have to to get something to work.
Please show us one (or multiple) of your scripts.
//THIS IS A BETA POUCH MAKER! PLEASE BABY SIT FOR NOW!!!
//Working towards perfecting summoning script
program PouchMaker;
{$DEFINE SMART}
{$i srl/srl.scar}
{$i sps/sps.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // 3-4 lowercase letters from username; used for random event detection
Players[0].Active := True; // Set to true if you want to use Player 0
Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
end;
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//////////////////////////// SETUP ENDS HERE ////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
procedure SummonWalk; //Map walks to the Location
var
Gate: TPointArray;
Summon: TPointArray;
x,y: Integer;
begin
if FindNormalRandoms then //finds randoms and if in random, logs out if
if not LoggedIn then
begin
TerminateScript;
end else
SPS_Areas := ['8_7', '9_7'];
Gate := [Point(3634, 3149), Point(3685, 3123), Point(3698, 3078), Point(3696, 3043),
Point(3700, 3014), Point(3672, 2980), Point(3638, 2959), Point(3631, 2910),
Point(3627, 2873), Point(3555, 2845)];
Summon := [Point(3545, 2848), Point(3536, 2875), Point(3535, 2875), Point(3535, 2875), Point(3534, 2874)];
Writeln('Walking to Gate');
SetupSRL;
SPS_WalkPath(Gate);
findcolor(x,y,197102,MMX1,MMY1,MMX2,MMY2)
if x<MMCX then
begin
If (findobjcustom(x,y,['Open'],[8420225,8354175,7959417],5)) then //Finds gate to see if its open or not
begin
mouse(x,y,0,0,true);
SPS_WalkPath(Summon);
end
end else
SPS_WalkPath(Summon);
end;
procedure BacktoBank; //Return Path to the Bank After teleport
var
x,y:integer;
t:integer;
begin
if FindNormalRandoms then //finds randoms and if in random, logs out if
if not LoggedIn then
begin
TerminateScript;
end else
t := t+100;
MakeCompass('N');
Mouse(565,96,2,2,true);
wait(500);
repeat
wait(t);
until (Not IsMoving)
if findsymbol(x,y,'bank') then
begin
Mouse(x,y,5,5,true);
Writeln('Bank found');
t:=0;
end;
end;
procedure TrapDoor;
var
x,y,t: integer;
begin
if FindNormalRandoms then //finds randoms and if in random, logs out if
if not LoggedIn then
begin
TerminateScript;
end else
t:=t+1000;
Makecompass(115+random(5));
setangle(true);
wait(1000 + random(500));
repeat
wait(t);
until (Not IsMoving)
if (findobjcustom(x,y,['Open','Climb'],[855309, 921102, 798517],5))then
begin
Writeln('TrapDoor found');
movemouse(x,y);
If(WaitUptext('Open', 300)) then
begin
Mouse(x, y, 0, 0, true);
repeat
wait(t);
until (not IsMoving)
wait(300);
mousebox(232,154,251,152,1);
t:=0;
end else
If(WaitUptext('Climb', 300)) then
begin
Mouse(x, y, 0, 0, true);
t:=0;
end;
end;
end;
procedure MakePouch;
var
x,y,c,t,a,b:integer;
begin
if FindNormalRandoms then //finds randoms and if in random, logs out if
if not LoggedIn then
begin
TerminateScript;
end else
c := 105 + random(30);
t := t+1000;
makecompass(c);
repeat
wait(t);
until (not IsMoving)
wait(1000 + random(500));
if (findobjcustom(x,y,['Infuse','pouch'],[2389103, 2058596, 2058082,1992032],5)) then
begin
writeln('Obilisk Found');
movemouse(x,y);
wait(500+ random(250));
mouse(x,y,0,0,true);
wait(2000 + random(1000));
if (findcolor(a,b,105157,200,35,210,45)) then
Writeln('Color Found');
begin
Mousebox(50,71,75,80,3);
GetMousePos(x, y);
Mouse(x, y, 0, 0, false);
Wait(1000 + random(50));
ChooseOption('use-All');
Wait(1000 + random(500));
mousebox(690,222,710,227,1);
end else
begin
Mousebox(200,35,210,45,1);
Mousebox(50,71,75,80,3);
GetMousePos(x, y);
Mouse(x, y, 0, 0, false);
Wait(1000 + random(50));
ChooseOption('use-All');
Wait(1000 + random(500));
mousebox(690,222,710,227,1);
end;
end;
end;
procedure WithdrawItems;
var
x,y: integer;
begin
if FindNormalRandoms then //finds randoms and if in random, logs out if
if not LoggedIn then
begin
TerminateScript;
end else
makecompass('N');
if OpenBank(Players[CurrentPlayer].Loc, False, False) then
begin
MouseBox(45, 100, 60, 113, 3);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, false);
Wait(380 + random(50));
ChooseOption('raw-All');
end;
end;
CloseBank;
MMouse(711,438,2,2);
wait(1000);
if (Waituptext('pouch',1000)) then
begin
logout;
TerminateScript;
end;
Wait(750 + random(200));
end;
procedure WithdrawBank; //Finding Bank Procedure
var
Tr, Bo: integer;
x, y: integer;
begin
if FindNormalRandoms then //finds randoms and if in random, logs out if
if not LoggedIn then
begin
TerminateScript;
end else
if BankScreen = false then
begin
writeln('Trying to open bank..');
MakeCompass('N');
SetAngle(true);
OpenBankFast('fwb');
end;
repeat
wait(10);
Tr := Tr +1;
until (Tr = 1000) or (BankScreen = true);
if BankScreen = True then
begin
Writeln('Bank successfully Opened');
wait(1000 + random(1000));
if BankScreen then
begin
Wait (200 + Random(300));
FixBank;
if (InvFull) then
Mousebox(570, 260, 585, 265, 3);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, false);
Wait(380 + random(50));
ChooseOption('sit-All');
end;
ActivateClient;
WithdrawItems;
end;
end else
if BankScreen = False then
begin
Bo := Bo +1;
writeln('Lets Try that again' + IntToStr(Bo) + ' Times');
if (Bo >= 5) then
begin
writeln('Could not Find Bank, Logging Out Now'); //Logout;
NextPlayer(false);
end;
end;
CloseBank;
end;
begin
smart_server := 1;
smart_members := true;
smart_signed := true;
smart_superDetail := false;
clearDebug();
setupSRL();
ActivateClient;
DeclarePlayers;
if not loggedin then
loginplayer;
repeat
withdrawbank; //Withdraws the Item
SummonWalk; //Walks to the Gate between Falador and Tavelery and then to the trapdoor
TrapDoor; //Finds and Enters Trapdoor
MakePouch; //Infuses Pouch
wait(6000 + random(2000)); //Random Wait
BacktoBank; //Walks back to Bank
until(false); //KEEPS ON GOING
end.