deanironman
2012-06-26 19:49:10
I really need help this is my first time scripting and i have no freaking idea how to do this some help would really be appreciated. Im trying to make the player fish in the fishing guild (Lobsters) Thank bank and repeat this is what i got so far. Any help would be great !
program GuildFisherLobbs
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
const
{==========Smart Setup==========}
World = 0; // Input the runescape world number right here for it to select. You may leave it as 0 if you would like it to select a random world.
MEMBERS = False; // Select False if you are not a member. Select True if you are a member.
SIGNED = True; // Select True if you are using single account. Select False if not.
{===============================}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Your Runescape username goes right here.
Players[0].Pass := ''; //Your Runescape password goes right here.
Players[0].Active := True; //Set to True if you want to use this player. Set to False to disable this player.
Players[0].Pin := ''; //Put your Bank PIN here. Leave blank if you don't have a Bank PIN.
end;
procedure Cage;
var x, y: integer;
begin
if FindObj(x, y,)'in'8482403, 10),then //This will have the script find an object of your choice
begin
Mouse(x, y, 0, 0, true);
ChooseOption('ine');
wait(1500+random(1000)); // This will make the script wait for a certain time
until (InvFull);
end;
procedure WalkToBank;
begin
if (InvFull) then
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, ['0_0']);
ToBank := [Point(253, 153), Point(184, 161)];
SPS_WalkPath(ToBank);
end;
procedure BankRawLobster;
begin
WriteLn('Looking for bank.'); // Writes in the Debug Box
if FindBank('vwb') then // Finds the bank
begin
WriteLn('We have found the bank.');
if OpenBank('vwb', False, True) then // Opens the bank
begin
WriteLn('Proceeding to bank Lobs');
DepositAll; // Deposits All items in Inventory
CloseBank; // Closes the bankscreen
WriteLn('Banking completed. Proceeding to Rest.');
RestUntil(100); // Rests character
end;
end;
end;
program GuildFisherLobbs
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
const
{==========Smart Setup==========}
World = 0; // Input the runescape world number right here for it to select. You may leave it as 0 if you would like it to select a random world.
MEMBERS = False; // Select False if you are not a member. Select True if you are a member.
SIGNED = True; // Select True if you are using single account. Select False if not.
{===============================}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Your Runescape username goes right here.
Players[0].Pass := ''; //Your Runescape password goes right here.
Players[0].Active := True; //Set to True if you want to use this player. Set to False to disable this player.
Players[0].Pin := ''; //Put your Bank PIN here. Leave blank if you don't have a Bank PIN.
end;
procedure Cage;
var x, y: integer;
begin
if FindObj(x, y,)'in'8482403, 10),then //This will have the script find an object of your choice
begin
Mouse(x, y, 0, 0, true);
ChooseOption('ine');
wait(1500+random(1000)); // This will make the script wait for a certain time
until (InvFull);
end;
procedure WalkToBank;
begin
if (InvFull) then
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, ['0_0']);
ToBank := [Point(253, 153), Point(184, 161)];
SPS_WalkPath(ToBank);
end;
procedure BankRawLobster;
begin
WriteLn('Looking for bank.'); // Writes in the Debug Box
if FindBank('vwb') then // Finds the bank
begin
WriteLn('We have found the bank.');
if OpenBank('vwb', False, True) then // Opens the bank
begin
WriteLn('Proceeding to bank Lobs');
DepositAll; // Deposits All items in Inventory
CloseBank; // Closes the bankscreen
WriteLn('Banking completed. Proceeding to Rest.');
RestUntil(100); // Rests character
end;
end;
end;