Re: Seg. fault, multi-attack

From: Matthew T. Churilla (
Date: 09/20/95

Ok try this for a change this is my multiattack code.  

    attacks = 1;
    if(number(1,101) <= GET_SKILL(ch, SKILL_2X))
    if(number(1,101) <= GET_SKILL(ch, SKILL_3X))
    while(attacks-- > 0)
      if((GET_POS(ch) == POS_FIGHTING) && (GET_POS(FIGHTING(ch)) > POS_DEAD))

This code soes work on the sun that I run it on.  For some reason it seems 
that other operating systems are tollerant to referencing a pointer
to a dead mob but suns aren't.  Rember that if a mob dies in the middle of an
attack it is removed from the game and the fighting flag is removed from the 


Matthew Churilla
Duquesne University CCIT User Consultant
E-Mail Addresses
-------------------------------------------------------------------------------	  	Math\Computer Science Account		   	CCIT Next Account	   	Duquesne University E-Mail Account
"The difference between the right word and the almost right word is the
difference between lightning and a lightning bug."
					-Mark Twain

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