blob: b9ced9d0c6ecaa47fe09b23ee10bbf6b0711a2c1 [file] [log] [blame]
// ----------------------------------------------------------------------
// Zwischenobjekt zum Lesen der Spielerdaten auch von nichteingeloggten.
// ----------------------------------------------------------------------
#include "teller.h"
#include <config.h>
inherit "std/player/base";
create() {
used_attributes_offsets = ([]);
}
string name;
string race;
string hands;
//mapping autoload;
_query_name() { return name; }
playername() { return name; }
_set_name( str ) { return name=str; }
_query_race()
{
if( race )
return race;
string shell = master()->query_userlist(lower_case(name), USER_OBJECT);
if (shell)
race = shell->QueryProp(P_RACE);
return race;
}
_query_hands()
{
if( hands ) return hands;
return ({ " nicht", 0 });
}
_query_autoload()
{
return autoload;
}
Load( str )
{
restore_object( SAVEPATH+str[0..0]+"/"+str );
}
Notlogged() { return TRUE; }
QueryMoney()
{
if( !mappingp(autoload) )
return 0;
return autoload["/items/money"];
}
QueryEnemies()
{
return ({({}),({})});
}
QueryAttributeOffset( arr ) { return "?"; }