> > > > > > if(GET_LEVEL(ch) > 14) > > > hit(ch, FIGHTING(ch), TYPE_UNDEFINED); > > > /* Warrior's 4th Attack at level 20 */ > > >Warriors will get attacks at 10 15 20 and 25 > > > > > >change the class name to make more attacks for more clases > > if your going to use this peice of code, you'd better change the if clause to: if ((GET_LEVEL(ch) > 14) && FIGHTING(ch)) otherwise you will be calling hit() with a null victim and you'll run into one of those nasty segmentation faults.
This archive was generated by hypermail 2b30 : 12/07/00 PST