SRL Archive - OSR Help

Best Way to SetUp a script with multiplayer and multilocation?


YoHoJo

2012-01-12 13:33:48

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.

footballjds

2012-01-12 13:38:34

Take a look at the type under Players.simba:

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;