----- Original Message -----
From: "flawed" <flawed@IO.COM>
>
> >> 947    if (GET_SKILL(ch, SKILL_SECOND_ATTACK) >= number(1, 101)) {
> >> 948       if (GET_SKILL(ch, SKILL_THIRD_ATTACK) >= number(1, 201)) apr++;
> >> 949       apr++;
> >> 950     }
>
Change the above to something like this:
  if (!IS_NPC(ch)) {
    if (GET_SKILL(ch, SKILL_SECOND_ATTACK) >= number(1, 101)) {
      if (GET_SKILL(ch, SKILL_THIRD_ATTACK) >= number(1, 201)) apr++;
      apr++;
    }
  } else {
    /* Handle mobs here */
  }
This way the GET_SKILL check is only called for players.
Welcor
--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST