Re: [CODE] Small Problem

From: George (gagreer@dragon.ham.muohio.edu)
Date: 10/03/96


On Wed, 2 Oct 1996, Brian Guilbault wrote:

> 
> ACMD(do_zap)
> {
>   struct char_data *victim;
>   int zap_points;
> 
>   one_argument(argument, arg);
> 
>   if (!*arg) {
>     send_to_char("Who do you want to zap?\r\n", ch);
>     return;
>   }

Use that lovely get_char_vis() function here to assign victim :)

>   if (IS_NPC(victim)) {
>     send_to_char("You can't zap a mob!\r\n", ch);
>     return;
>   }
[snip]

-George
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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