/* /verbs/players/request.c * from the Dead Souls Mud Library * created by Descartes of Borg 951219 */ #include inherit LIB_VERB; static void create() { verb::create(); SetVerb("request"); SetRules("STR from LIV"); SetErrorMessage("Request what from whom?"); SetHelp("Syntax: request from \n\n" "This allows you to ask livings things for particular things. " "For example, in Newbieland, you might 'request clothes from " "man'. This command behaves identically to 'ask LIVING for " "SOMETHING'.\n" "See also: ask"); } mixed can_request_str_from_liv() { if( this_player()->GetParalyzed() ) { return "You cannot do anything."; } else { return 1; } } mixed do_request_str_from_liv(string str, object who) { this_player()->eventPrint("You request " + str + " from " + who->GetName() + "."); environment(this_player())->eventPrint(this_player()->GetName() + " requests " + str + " from " + who->GetName() + ".", ({ who, this_player() })); if( !(who->eventRequest(this_player(), remove_article(lower_case(str)))) ) who->eventPrint(this_player()->GetName() + " requests " + str + " from you."); return 1; }