/* * Function information room * Feb 7 '02 by Avelan */ #include "defs.h" inherit ROOM_OBJ; void setup(){ set_light(80); set_short("function room"); set_long("Welcome to the clothing section, you " "have now received a clothing object in your inventory." " Type 'more trousers' to see the code, after that" " if you have any doubts on what each of those" " functions do, take the appropriate exit here.\n" "Note that even if you _think_ you know what the" " function does, you might not know exactly how" " it works and when should it be used.\n"); add_exit("back",ITEMSC "start","path"); add_exit("add_pocket",ITEMSC "add_pocket","path"); } /* setup() */ void event_enter(object ob, string mess, object from){ object *bings; object bing; int ping = 0; bings = deep_inventory(ob); foreach(bing in bings){ if(file_name(bing)[25..30] == "ex_clo"){ ping = 1; } } if(!ping){ clone_object("/d/learning/school/items/ex_clo")->move(ob); } } /* event_enter() */