Re: [newbie]second attack

From: Jeff Almeida (jalmeida@IX.NETCOM.COM)
Date: 01/19/98


At 03:34 PM 1/19/98 -0600, you wrote:


I actually just got through debugging this myself, I had to make sure that
there was still a valid mob (FIGHTING and IN ROOM) in order to not crash on
the second hit.

>> the mud crashes and dumps core after seemingly random amount
>
>> + if (!IS_NPC(ch) && GET_POS(FIGHTING(ch)) >= POS_FIGHTING) {
>> +   if (GET_SKILL(ch,SKILL_SEC_ATTACK) > 0) {
>> +     if (number(1,101) < GET_SKILL(ch,SKILL_SEC_ATTACK)) {
>> +       hit(ch,FIGHTING(ch),TYPE_UNDEFINED);
>> +     }
>> +   }
>> + }
>>
>>
>>  hit(ch,FIGHTING(ch),TYPE_UNDEFINED)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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