Keasbey
2013-02-16 18:36:59
So I've put a couple of hours of reading tutorials and messing around with Simba and come up with the first few building blocks for a fletching script I want to make. It compiles fine, but when I click run, SMART loads , and the script goes through once without logging the player in (all of my writeln statements are printed ) , and then terminates on its own :(
If anyone could help me I'd really appreciate it.. I was expecting errors but not like this lol ( especially since it compiled. ).
Anyway.. here's the code.. Sorry it's not to standards, it is in my Simba window but when I copy/paste it my computer decides to get rid of formatting :/
If anyone could help me I'd really appreciate it.. I was expecting errors but not like this lol ( especially since it compiled. ).
Anyway.. here's the code.. Sorry it's not to standards, it is in my Simba window but when I copy/paste it my computer decides to get rid of formatting :/
Program Stringing;
{$DEFINE SMART}
{$i srl/srl.simba}
//Login at draynor bank
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Pin :='';
Players[0].Nick :='';
//Players[0].WorldInfo:=[44]; //If You Want A Home World
Players[0].Active:=True; //Don't Touch
WORLDSWITCHERENABLED:=False; //Don't Touch
end;
Function ClearInv: Boolean;
Begin
Result := findbank('db')
if not Result then
WriteLn('Please Login Already In The Draynor Village Bank');
if Result then
begin
Wait(RandomRange(100,350));
DepositAll;
Wait(RandomRange(50,200));
Withdraw(9, 0, 14);
Wait(RandomRange(1,75));
Withdraw(9, 1, 14);
Wait(RandomRange(1,100));
WriteLn(' Successfully Withdrew Supplies ');
end;
end;
Function FindStringAndBows: Boolean;
begin
Result := ItemActivated(1);
If not result then
begin
MMouse(871, 359, 4, 4);
Wait(RandomRange(1,75));
ClickMouse2(true);
Wait(RandomRange(1, 75));
MMouse(958, 464, 4, 4);
Wait(RandomRange(1, 75));
ClickMouse2(true);
WriteLn('Successfully Used Supplies')
end;
end;
begin;
ActivateClient;
SetUpSRL;
DeclarePlayers;
ClearInv;
FindStringAndBows
end.