Re: [code]

From: Thomas Larsson (aarcerak@rocketmail.com)
Date: 01/21/02


Im trying to make a fireshield and have this so far
plus i have defined the spell all the same places as
sanctuary. the code compiles fine, and start up fine,
but then crashes, what could be wrong ?

  if (AFF_FLAGGED(victim, AFF_FIRE_SHIELD) &&
attacktype >= TYPE_HIT &&
    attacktype <= TYPE_STAB && (number(1, 81) <
GET_LEVEL(victim) ||
    GET_POS(victim) == POS_DEAD)) {
    damage(victim, ch, GET_POS(victim) == POS_DEAD ?
dam / 2 : dam / 4,
    TYPE_UNDEFINED);
    act("$N blows you with his fire shield.", FALSE,
ch, 0, victim, TO_CHAR);
    act("You blow $n with your fire shield.", FALSE,
ch, 0, victim, TO_VICT);
  }


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT