Sir R. M8gic1an
2009-06-22 14:01:18
// * Procedure OrderWorlds(by: string; Descending: boolean); // by Rasta Magician
// * Function ChooseWorldBy(SettingsNames:TStringArray; SettingsDescending: TBooleanArray; Members, PVP: boolean): boolean; // by Rasta Magician
Along with WorldSwitcher.scar being moved from /misc/ to /core/ it came with two new routines!
Procedure OrderWorlds(by: string; Descending: boolean)
will sort your by "by" in order "descending"; Descending is the arrow on the left.
Function ChooseWorldBy(SettingsNames:TStringArray; SettingsDescending: TBooleanArray; Members, PVP: boolean): boolean;
Will open the world screen, and choose a world for you by settings "SettingsNames" and ordered by "SettingDescending". It will also check for Members and PVP. it Skips full worlds.
If it fails to find a world that suits you, it will call SelectWorld(RandomWorld(Members, PVP)) and return false.
here are the settings:
'world', 'players', 'location', 'activity', 'loot', 'qc' or 'quick chat', 'pvp', 'type'
Lots o' Love
SRL Development Team