Results 1 to 11 of 11

Thread: SRL bug??

  1. #1
    Join Date
    Jul 2009
    Location
    scs, MI
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRL bug??

    FALSE ALARM!




    Epic fail at scripting >.<
    Last edited by jayzarks95; 07-22-2009 at 01:36 PM.
    pwned

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  3. #3
    Join Date
    Jul 2009
    Location
    scs, MI
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmmmm
    where do i put that?
    lol
    i just spent 5 mins typing that all out lolz.
    FAIL.
    pwned

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by JAD View Post
    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.
    correct u need to put loginplayer for it to log in and if u have any question just add my msn id be happy to help u


    edit after declareplayers;

  5. #5
    Join Date
    Jul 2009
    Location
    scs, MI
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  6. #6
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    look at above post i edited it

  7. #7
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Don't just put it after DeclarePlayers anywhere though. Put it where you want to Login.

    More specifically, in your MainLoop.

  8. #8
    Join Date
    Jul 2009
    Location
    scs, MI
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well where do i want to log in lol, i put it after
    SCAR 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;
    and it didn't work
    pwned

  9. #9
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by jayzarks95 View Post
    well where do i want to log in lol, i put it after
    SCAR 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;
    and it didn't work
    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.

  10. #10
    Join Date
    Jul 2009
    Location
    scs, MI
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [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

  11. #11
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    you want it in your MainLoop.
    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.
    That is your MainLoop. The part of the script that loops through the code to complete the task.

    Edit: Threaded Discussion FTL -.-

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •