
Originally Posted by
Zammy Pl0x;
Zammy Pl0x = Future SCAR master Scripter
BTW, lol at your humility!

Originally Posted by
pur3b100d
a boolean consists of 2 outcomes true and false so u dont need bank and drop only bank
for example
if bank = true then bank;
if bank = false then drop;
is this what you was looking for?
I agree with pur3b100d, in the player setup I would have a boolean variable called Bank which could either set to True or False, if True then it woud bank else it would drop the fish.
Now for the banking to work you will have to move the character first to a bank using map walking which could be tricky if working with several locations. Next you would have to code the script so it opens a bank booth, deposits all fished items and closes the bank (look at core\Bank.scar for functions to do with banking). You would also have to move the character back to fishing spot using map walking.
Here is a simple banking procedure which opens Al Kharid Bank and deposits all items from slot 2 to slot 28:
SCAR Code:
procedure Banking;
begin
c := 0; //Sets failsafe variable to 0.
repeat
FindObjCustom(x, y, ['ank', 'ooth'], [7829886, 8693443], 5); //Searches the screen for any colors within 5 tolerance of 7829886 or 8693443 and also contain uptext of 'ank' and 'ooth'
c := c + 1; //Adds one to failsafe variable.
until (IsUpText('ooth')) OR (c > 9);//Will repeat trying to find bank both until it finds it or it c > 9.
if (c > 9) then //if it failed to find the bank booth after 10 tries then
begin
Writeln('Could not find bank booth.'); //Outputs text to debug box.
LogOut; //Logs out current player.
Exit; //Exits the procedure.
end else
begin
Mouse(x, y, 2, 2, False); //Right clicks on bank booth.
Wait(350 + Random(650)); //Random wait.
ChooseOption('Use-quickly'); //Chooses 'Use-quickly' option.
Wait(1850 + Random(650)); //Random wait.
Deposit(2, 28, True); //Deposits all items from slot 2 to slot 28.
Wait(650 + Random(350)); //Random wait.
CloseBank; //Closes bank screen.
end;
end;
This doesn't include map walking, I suggest reading this to learn how to map walk.