query_carrying.c
ds2.1.1/lib/secure/sefun/query_carrying.c · 295 B
From the archive ds2.1.1.zip
Download the archive « Back to the archive contents
int query_carrying(object who, mixed thing){
if(objectp(thing)) thing = base_name(thing);
if(last(thing,2) == ".c") truncate(thing,2);
if(!file_exists(thing+".c")) return 0;
foreach(object ob in deep_inventory(who)){
if(base_name(ob) == thing) return 1;
}
return 0;
}