Results 1 to 4 of 4

Thread: SRLPlayerForm, Smart and LoginPlayer

  1. #1
    Join Date
    Jun 2009
    Location
    The Netherlands
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRLPlayerForm, Smart and LoginPlayer

    Hey all,

    It's been a while but I'm trying to get back into scar :P. Going fine overall but have two questions.

    First of all, this is what I got now, it's just for testing.
    Code:
    procedure SetupScript;
    begin
        Smart_Server        := 66;
        Smart_Members     := True;
        Smart_Signed        := True;
        Smart_SuperDetail  := False;
    
        ClearDebug;
        
        SetupSRL;
        SRLPlayerForm(True, [], [], [], []);
    end;
    
    begin
        SetupScript
    
        LoginPlayer;
    end.
    Now, I would like to get the smart world number from SRLPlayerForms, but as the form is loading AFTER the smart window is loaded it won't change a thing. Does anyone know how to fix this?

    Also, when I put my user info in the playerform, and run LoginPlayer; it won't enter anything in the runescape "username" and "password' box. Is the form broken?

    I know I could use a declareplayers procedure but I like the cleanness of srlplayerform :P

    Thanks.

  2. #2
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Call SRLPlayerFrom before SetupSRL. You'd need to make one of the Players.Integers vars take the SMART server you wish to load. Then set Smart_Server to whatever that variable is.

    Also you need to remember to press Save and Start every time you edit/add some information to SRLPlayerForm.

    EG

    SCAR Code:
    procedure SetupScript;
    begin
        SRLPlayerForm(True, ['SMART Server'], [], [], []);
       
        Smart_Server        := Players[0].Integers[0];
        Smart_Members     := True;
        Smart_Signed        := True;
        Smart_SuperDetail  := False;

        ClearDebug;
       
        SetupSRL;
    end;

    begin
        SetupScript

        LoginPlayer;
    end.

    You should bear in mind however that SRLPlayerForm is not supposed to take script settings. It's just for the Player settings (eg. user, pass, nick, bank pin, number of loads, tree type).
    Last edited by ZephyrsFury; 06-20-2009 at 05:22 PM.

  3. #3
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    In addition to Zeph's reply, smart loads a SERVER, and whichever server it is, it does not affect your script in any way. What you might wish to go is add a constant called WorldN and then you can switch to that world like this:

    SCAR Code:
    const
      SmartWorld = 55;

    begin
      SetupSRL;
      SelectWorld(SmartWorld)
      //...
    end.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  4. #4
    Join Date
    Jun 2009
    Location
    The Netherlands
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks . solved my "problem". and @ Rasta Magician, never knew that thanks!

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
  •