Keasbey
2013-02-13 07:03:09
I've read a few tutorials, I understand them no problem, but when it comes to actually piecing bits of code together on my own, I get some weird errors.
Right now I'm trying to make a simple fletching script, for now I just want to make maple shieldbow's , will work on adding the rest of them once I have my skeleton for my script complete. At the moment I've gotten only as far as depositing everything in the inventory on startup, and I recieve an error when I try to compile with my main loop, which isn't making sense to me.
The script I have so far is at the bottom, but I also need a few simple questions answered:
1) What is the code for exiting a program/ending the script? For example, in the code below i want to put " if result:=false " then the result would be the script exiting.
2) What is the code for 6hr relog? Is there a general code for this? ( such as procedure declareplayers )
Right now I'm trying to make a simple fletching script, for now I just want to make maple shieldbow's , will work on adding the rest of them once I have my skeleton for my script complete. At the moment I've gotten only as far as depositing everything in the inventory on startup, and I recieve an error when I try to compile with my main loop, which isn't making sense to me.
The script I have so far is at the bottom, but I also need a few simple questions answered:
1) What is the code for exiting a program/ending the script? For example, in the code below i want to put " if result:=false " then the result would be the script exiting.
2) What is the code for 6hr relog? Is there a general code for this? ( such as procedure declareplayers )
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;
Var
db: string;
Begin
if findbank(db)then
Result := true;
Wait(RandomRange(100,350));
depositall;
end
begin;
ActivateClient;
SetUpSRL;
DeclarePlayers;
Clearinv;
end.