Re: [CODE] spec procs

From: Nathan Davies (alamar@MARQUIS.NETINC.CA)
Date: 08/15/97


> Hello,
>
> Well i feel stupid as i know this ones been overhashed, and ive made
> plenty of spec procs myself. But I cant seem to get down the arguements
> passed to a mob procedure.
>
> This is not the function, just a skeleton showing debug code to see and
> verify what im getting passed.
>
> player would type:
>   repair sword
>
> Ive got the repair command in interpreter as
>   { "repair"    , "repa", POS_STANDING, do_not_here , 0, 0 },
> as its only a command before a weaponsmith in his shop.
>
> SPECIAL(weapons_repair) {
>
>   if (CMD_IS("repair")) {
>     send_to_char(argument,ch);
>     send_to_char("\r\n",ch);
>     argument = one_argument(argument,buf);
>     send_to_char(buf,ch);
>     argument = one_argument(argument,buf2);
>     send_to_char(buf2,ch);
>   }
>
>   return TRUE;
> }
Try two_arguments( argument, buf1, buf2 );

buf1 should contain repair, buf2 should contain sword...

Av fun, good luck an hey...enjoy life :)

Nathan Davies,
alamar@mail.netinc.ca


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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