key.c

./lib/room/city/pub/key.c · 786 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/*  The keys to the inn at skandles downfall 
 *  Angel (c), 1993, All Rights Reserved
 */

string name;
int number;

query_name() { return "key"; }

id(str) {
 if(name) return str == name || str == "key" || str == "skandles downfall";
 else
   return str == "key" || str == "skandles downfall";
}


set_key_id(string str) {
  return name = str;
}

set_number(int i) {
  return number = i;
}


query_auto_load() {
  return "room/city/pub/key:"+ name +", "+number;
}

init_arg(string str) {
  return sscanf(str, "%s, %d", name, number);
}

short() {
 return "A small key";
}

long() {
  write("This is a small tarnished bronze key bearing the room number "+
  number +" in its center.\nIt has the name Skandles Downfall across  "+
  "its middle.\n");
  return 1;
}

drop() { return 1; }

Site Stats

Snippets: 1791
Codebases: 571