Results 1 to 2 of 2

Thread: Best Way to SetUp a script with multiplayer and multilocation?

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

    Default Best Way to SetUp a script with multiplayer and multilocation?

    So, thinking about making some if my scripts multilocation/ores/etc
    Can anyone point me to a script or write me some example code of how to best handle this?
    Both in declare players (I assume just make more player integer/strings?)
    And also within the script itself how to check what location/setting each player chose and use? Like a nice pretty way, would records be best? I like to use cases although many people say records are nicer/prettier cases seem to do the job and can be made to look nice too.

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Take a look at the type under Players.simba:

    Simba Code:
    type
      TUser = record
        Name: string;                   // * User Name
        Pass: string;                   // * User Pass
        Pin: string;                    // * Current Users Pin Number
        Member: boolean;                // * For Login
        WorldInfo: TVariantArray;       // * [Members {Boolean}, World {Integer}, PVP {Boolean}]
        Nick: string;                   // * Screen Name for random detection
        {NickTPA: TPointArray;          // * TPA Of Player Name}
        Level: array[0..24] of Integer; // * Levels of all skills.
        Active: Boolean;                // * Set to True if Ok, False if Lost.
        Loc: string;                    // * User Location
        Status: string;                 // * User Status
        Skill: string;                  // * User Action to Perform
        Worked: Integer;                // * Time User has worked
        Banked: Integer;                // * Number of Banks User has done
        Rand: string;                   // * Current Random
        Booleans: array of Boolean;     // * For reports, etc.
        Integers: array of Integer;     // * For reports, etc.
        Strings: array of string;       // * For reports, etc.
        Extendeds: array of Extended;   // * For reports, etc.
        Arrays: array of TVariantArray; // * For custom arrays.
        BoxRewards: TStringArray;       // * Partial texts for rewards, place in desired order.
      end;

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
  •