[Newbie]Error with Muti Attack Pointers

From: Nicholas S. Wourms (Prospero@bbs.x-net.net)
Date: 12/10/96


I have been fiddling around with multi-attack pointers for awhile.  I was
hoping mabye somone can identify the int(s) or struct(s) that I am lacking,
which give me the respective errors.  Any help would be greatly appreciated!
CODE(fight.c)

***<SNIP>***
void perform_violence(void)
{
  struct char_data *ch;
  extern struct index_data *mob_index;

  
  for (ch = combat_list; ch; ch = next_combat_list) {
    next_combat_list = ch->next_fighting;
    
    if (AWAKE(ch) && (ch->in_room == ch->specials.fighting->in_room)) {
           hit(ch, ch->specials.fighting, TYPE_UNDEFINED);
        if((GET_SKILL(ch, SKILL_SECOND) > 0)) {
           if(GET_SKILL(ch, SKILL_SECOND) > number(1,200)-5*GET_LEVEL(ch))
              if(FIGHTING(ch));
                 hit(ch,FIGHTING(ch),TYPE_UNDEFINED);
        }
        if(!IS_NPC(ch) && (GET_SKILL(ch, SKILL_TRIPLE) > 0)) {
           for(i=0;i<4;i++){
              if(GET_SKILL(ch, SKILL_TRIPLE) > number(1,500)-10*GET_LEVEL(ch))
                 if(FIGHTING(ch));
                    hit(ch,FIGHTING(ch),TYPE_UNDEFINED);
           }
        }
        if(IS_AFFECTED(ch,AFF_HASTE)) {
           if(FIGHTING(ch));
              hit(ch,FIGHTING(ch),TYPE_UNDEFINED);
        }
      } else { /* Not in same room */
         stop_fighting(ch);
    }
    if (FIGHTING(ch) == NULL || ch->in_room != FIGHTING(ch)->in_room) {
***<SNIP>***

The Errors:
-----------
gcc -c -g -O   fight.c
fight.c: In function `perform_violence':
fight.c:867: structure has no member named `specials'
fight.c:868: structure has no member named `specials'
fight.c:874: `SKILL_TRIPLE' undeclared (first use this function)
fight.c:874: (Each undeclared identifier is reported only once
fight.c:874: for each function it appears in.)
fight.c:875: `i' undeclared (first use this function)
fight.c:881: `AFF_HASTE' undeclared (first use this function)
*** Error code 1

I know that the undeclared stuff is from me not adding the appropriate
extern ot int lines at the beginning of the code.  However, I am not sure
which extern or int lines to put.  Also, I am not exactly sure how to deal
with the "structure has no member" error.  Is it another one of those
undeclared extern or int variables or what?  Finally, how do I declare the
'i' variable?  I know this sounds a bit newbish, but I am at a loss here.
Thanks in advance for any help you can give.
 | | |  Nicholas S. Wourms
( o o ) E-MAIL: Prospero@bbs.x-net.net
   >    ------------------------------
 \___/  "If seeing is believing, then
         not seeing is imagining."
  
+-----------------------------------------------------------+
| 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