(no subject)

From: Malcor (malcor@cyberportal.net)
Date: 07/06/96


Ok I am trying to make the healer "autocleric" and i just can't seem to
define "heal" as below; 
NOTE:  In interpreter.c, you must define a command called 'heal' for this
   spec_proc to work.  Just define it as do_not_here, and the mob will take 
   care of the rest.  (If you don't know what this means, look in interpreter.c
   for a clue.)
i get the message:
gcc -c -g   spec_procs.c
spec_procs.c: In function `healer':
spec_procs.c:1699: `argument' undeclared (first use this function)
spec_procs.c:1699: (Each undeclared identifier is reported only once
spec_procs.c:1699: for each function it appears in.)
spec_procs.c:1701: `POS_FIGHTING' undeclared (first use this function)
spec_procs.c:1708: `me' undeclared (first use this function)
*** Error code 1                                 

and the lines read:

 argument = one_argument(argument, buf);

    if (GET_POS(ch) == POS_FIGHTING) return TRUE;

    if (*buf) {
      for (i=0; prices[i].number > SPELL_RESERVED_DBC; i++) {
        if (is_abbrev(buf, prices[i].name))
          if (GET_GOLD(ch) < prices[i].price) {
            act("$n tells you, 'You don't have enough gold for that spell!'",
                FALSE, (struct char_data *) me, 0, ch, TO_VICT);  
any ideas ?

thanks
Malcor



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