Re: [CODE/IDEA] Few things

From: Mark Gerritsen (m.p.h.gerritsen@STUDENT.UTWENTE.NL)
Date: 04/23/98

At 08:15 PM 4/22/98 -0500, Chuck Reed wrote:
>   if(CMD_IS("learn"))
>     send_to_char("Worked.\r\n", ch);
>   else
>     send_to_char("Didn't.\r\n", ch);
>   return TRUE;

Spec_procs "intercept" the commands you type before they go to the command
interpreter (or whatever it is). Your prof_teacher_swimming intercepts the
commands, and since they aren't "learn", you get "Didn't." That's how you
coded the spec_proc. My guess as to why you are getting "Huh?!?" when you
type learn is cuz you haven't put an entry for it in interpreter.c:

{ "learn",  POS_RESTING, do_not_here

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST