Simul efun: query_user_data - get information about players/wizards Synopsis: mixed query_user_data(string name) Description: Partial restore of player/wizard with name "name". This a substitution for restore_object() of players' and wizards' .o-files. Only some game related data is accessable. Return value: An array of 2 arrays: ({ /* sizeof() == 2 */ ({ /* sizeof() == 12 */ "active", "title", "level", "alignment", "al_title", "gender", "age", "host", "last_login", "domain", "guild", "testplayer" }), ({ /* sizeof() == 12 */ , // 3: logged in, 2: active, 1: inactive, // 0: does not exists, see 'man user_exists' , , , , , , // in heart_beats! , , , , }) }) Examples: mixed data = query_user_data(player_name); int active = data[1][member_array("active", data[0])]; int level = data[1][member_array("level", data[0])]; Or (doesn't always work - don't know when): int active = assoc("active", data); int level = assoc("level", data); Note: The order of elements returned in the array is not guaranteed. The values should be fetched by the labels like in the "Examples". Valid labels are shown in "Return value:". See also: lib/user_exists, efun/restore_object, lib/valid_name, lib/valid_mailaddr, efun/assoc