Results 1 to 3 of 3

Thread: How do I do if this script is for only one player

  1. #1
    Join Date
    Nov 2007
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I do if this script is for only one player

    I need to know what to do if i´m making a script to train only one player, and I don´t want to use the DeclarePlayers platform from SRL, how can I do it?

  2. #2
    Join Date
    Jul 2007
    Location
    St. Louis, Missouri, USA.
    Posts
    575
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can still use the DeclarePlayers procedure in SRL, just only have one character declared. Simple as that.

    Ex:
    SCAR Code:
    procedure DeclarePlayers;
    begin
      NumberOfPlayers(1);
      CurrentPlayer := 0;

      Players[0].Name         := 'yeahwoho';    // UserName
      Players[0].Pass         := 'password';    // Password
      Players[0].Nick         := 'hwoh'; //3-4 letters from username
      Players[0].Active       := True;
    end;

    if you want to fix the NextPlayer(False) 'bug' where it won't terminate the script after your character is done do something like
    SCAR Code:
    if not LoggedIn then
    begin
      PlayersDone := PlayersDone + 1;
      if (HowManyPlayers < PlayersDone) then TerminateScript;
      NextPlayer(False);
    end;

    Thats actually something you can use in a script with any amount of players so it will terminate when out of players to use. You just have to be careful and set it up right.
    -You can call me Mick-



  3. #3
    Join Date
    Nov 2007
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    K thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to not leave you pass in a script/Srl Player Form tut
    By Waddo in forum Outdated Tutorials
    Replies: 20
    Last Post: 12-06-2010, 07:40 PM
  2. Unknown Identifier 'player' in script???
    By cloutier15 in forum OSR Help
    Replies: 6
    Last Post: 05-11-2008, 11:40 AM
  3. Range Script - F2P - Locked Player Position
    By Tri in forum RS3 Outdated / Broken Scripts
    Replies: 7
    Last Post: 11-06-2007, 02:14 AM
  4. WOOT 30 hours same script same player!!!
    By geerhedd in forum SRL Site Discussion
    Replies: 11
    Last Post: 05-25-2007, 10:04 PM

Posting Permissions

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