Re: [NEWBIE]Mud crashes whenever a char starts a fight

From: Bob Mills (romills@GTE.NET)
Date: 09/05/98


Alrighty, I think I figured it out, but I need to know something first.  The
only mobs that crash it are the ones I added, so is there any format changes
in the mob files when you patch in OLC+

Thanks again for the help

Bob

> Last night I finally got OLC+ patched in, and everything compiled fine.
> Only prob is that now whenever a mob attacks, it crashes the mud.  I ran
> the debugger and it showed me where it was crashing, but I am not the
> best at C yet so I am a little clueless.  This happened with just stock
> circle and the OLC patched in.
>
> Thanks for any help
>
> Here is what debugger showed me
>
> void hitprcnt_mtrigger(char_data *ch)
> {
>   trig_data *t;
>   char buf[MAX_INPUT_LENGTH];
>
>   if (!SCRIPT_CHECK(ch, MTRIG_HITPRCNT) || !FIGHTING(ch) ||
>       AFF_FLAGGED(ch, AFF_CHARM))  **** Debugger pointed out this
> line.****
>     return;
>
>   for (t = TRIGGERS(SCRIPT(ch)); t; t = t->next) {
>     if (TRIGGER_CHECK(t, MTRIG_HITPRCNT) && GET_MAX_HIT(ch) &&
>  (((GET_HIT(ch) * 100) / GET_MAX_HIT(ch)) <= GET_TRIG_NARG(t))) {
>
>       ADD_UID_VAR(buf, t, FIGHTING(ch), "actor", 0)
>       script_driver(ch, t, MOB_TRIGGER, TRIG_NEW);
>       break;
>     }
>   }
> }
>
> --
> Bob Mills
> romills@gte.net
> ICQ#  5521683
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+


     +------------------------------------------------------------+
     | 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