make.c~
MudOSa4DGD/mudlib/dgd/sfun/make.c~ · 585 B
From the archive MudOSa4DGD-30.06.98.tar.gz
Download the archive « Back to the archive contents
/*
* make.c
*
* SFUN: make an object and set its environment
*
* (C) Frank Schmidt, Jesus@NorseMUD
*
*/
static varargs object make(string thing, mixed dest) {
object ob;
string name;
name = getuid();
if (thing[0] != '.' && thing[0] != '~' && thing[0] != '/')
thing = "~/" + thing;
thing = parse_path(thing, directory_name(this_object()), name);
ob = clone_object(thing);
#ifdef MUDOS_INVENTORY
if (!dest)
dest = this_object();
#ifdef MUDOS_LIVING
if (living(ob))
ob->move_player(dest);
else
#endif
ob->move(dest);
#endif
return ob;
}