Results 1 to 5 of 5

Thread: DeclarePlayers, Nick, LoginPlayer, AntiRandomsetc.

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default DeclarePlayers, Nick, LoginPlayer, AntiRandomsetc.

    Can someone post me an outline/skeleton/sample script of how all this should be set up using the SRL OSR git include

    No multiplier necessary, but it would be nice to see though, but no biggie there!

    Also do we currently have something that at least searches for nick to detect random and then logs out? If so, what do I call?

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Here's what I've been using with the latest OSR
    Simba Code:
    program DefaultOSR;
      {$DEFINE SMART8}
      {$include SRL-OSR/SRL/SRL.simba}
      {$include SRL-OSR/SRL/misc/debug.simba}
      {$include SRL-OSR/SRL/misc/smartgraphics.simba}

    var
      i, x, y : integer;
      b : TBox;
      s : string;
      TPA : TPointArray;
      top : Array of TOptions;

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Pin  := '';

      Players[0].Nick := '3 chars of your RSN go here for future random event detecting!';
      Players[0].Active := True;
    end;

    begin
      SetupSRL;
      DeclarePlayers;
      LoginPlayer;
    end.

    Here's what my folder paths look like as of current on Windows 7: (NOTE: unsure if they're to change later down the road)

    SRL (EOC)
    Code:
    C:\Simba\Includes\SRL\core
    C:\Simba\Includes\SRL\misc
    C:\Simba\Includes\SRL\SRL.simba
    and
    SRL (OSR)
    Code:
    C:\Simba\Includes\SRL-OSR\SRL\core
    C:\Simba\Includes\SRL-OSR\SRL\misc
    C:\Simba\Includes\SRL-OSR\SRL\SRL.simba
    Font Dir too:
    Last edited by Le Jingle; 03-06-2013 at 02:50 AM.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Perfect thanks!

    Is OSR Debug any diff than normal?
    Also what's the SmartGraphics.simba for?

    Any clue about using nick to search for randoms?

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Perfect thanks!

    Is OSR Debug any diff than normal?
    Also what's the SmartGraphics.simba for?

    Any clue about using nick to search for randoms?
    The include for debug and smartgraphics are just for development purposes, nothing important for basic script with those (forgot to remove for more basic layout).

    Don't think the randoms are implemented yet, but I do remember Fawaki posting about it, and I hazily remember doing that in a couple scripts when I first joined SRL. I think it's used to help find your character's nick when a random event pops up on screen.

  5. #5
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Not meaning to post off topic but I can't wait to use statchars to magically get the users fletching lvl

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
  •