FALSE ALARM!
Epic fail at scripting >.<
FALSE ALARM!
Epic fail at scripting >.<
Last edited by jayzarks95; 07-22-2009 at 01:36 PM.
pwned
Maybe I just didn't see it, but I don't think that you called LoginPlayer anywhere in your script?
You need to call that for the player to get logged in.
hmmmm
where do i put that?
lol
i just spent 5 mins typing that all out lolz.
FAIL.
pwned
okay well where in the script do i put LoginPlayers, cuz thats what i thought from the begining and i just started putting it in random places to see (lol) and then i gave up.
it was a last resort i searched for tuts and such for a good 15 mins
pwned
look at above post i edited it
Don't just put it after DeclarePlayers anywhere though. Put it where you want to Login.
More specifically, in your MainLoop.
well where do i want to log in lol, i put it after
and it didn't workSCAR Code:procedure DeclarePlayers;
begin
CurrentPlayer :=0;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active :=True;
LoginPlayers;
end;
pwned
No not in the DeclarePlayers procedure. In your main loop after you call DeclarePlayers.
SCAR Code:begin
Smart_Server := 152;//World
Smart_Members := False;//Members?
Smart_Signed := True;//Signed?
Smart_SuperDetail := False;//SMART high detail?
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer; //Here
AntiBan;
ChopTree;
Banking;
end.
Edit:
3 notes also:
You really need a main loop with repeat until(false); so that it repeats chopping and banking and doesn't just do it once. Like so:
SCAR Code:begin
Smart_Server := 152;//World
Smart_Members := False;//Members?
Smart_Signed := True;//Signed?
Smart_SuperDetail := False;//SMART high detail?
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
repeat
AntiBan;
ChopTree;
Banking;
if(not(LoggedIn))then NextPlayer(False);
until(false);
end.
I also put that last line in there so that it will switch to the next player if your current player is not logged in at this point. You need if(not(LoggedIn))then Exit; at the beginning of your choptree and Banking procedures. This way, it will not try to chop or bank if the character is logged out.
Also, try calling AntiBan randomly throughout your script (In the ChopTree procedure is probably best).
Last edited by JAD; 07-22-2009 at 01:30 PM.
[Runtime Error] : Out Of Range in line 338 in script C:\Documents and Settings\Jeremy\Desktop\SCAR 3.21\includes\SRL/SRL/Core/Login.scar
i have saw this posted before..
didn't read about it tho, it did compile tho >.<
and started up for a sec
pwned
you want it in your MainLoop.
That is your MainLoop. The part of the script that loops through the code to complete the task.SCAR Code:begin
Smart_Server := 152;//World
Smart_Members := False;//Members?
Smart_Signed := True;//Signed?
Smart_SuperDetail := False;//SMART high detail?
SetUpSRL;
ActivateClient;
DeclarePlayers;
LogInPlayer; // added it here
AntiBan;
ChopTree;
Banking;
end.
Edit: Threaded Discussion FTL -.-
There are currently 1 users browsing this thread. (0 members and 1 guests)