Re: [MULTI PATCH] Crashes with George's Patch

From: Davies, Nathan (DaviesN@AECL.CA)
Date: 10/09/97


I agree with your solution, which makes sense.  After the victim has
died, it's extracted and should cause a problem regardless, but the
autoloot isn't the problem.  It's been working fine for months, the
autoloot + multiple is the problem.

Any ideas George?

>Nathan Davies,

>>I am also having this problem though I didn't notice until this mail
>>came through(mud isn't open yet)...
>>
>>the offending lines seem to be...
>>
>>if (IS_NPC(victim) && !IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOLOOT))
>>  do_get(ch,"all corpse",0,0);
>>
>>I don't see any prob with it though...its' right after the die( victim )
>>call...
>>
>  I do believe that's your problem.
>you probably shouldn't have a check for IS_NPC(victim) after you've
>already killed the victim.
>
>you may need something like
>if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOLOOT))
>  {
>  if (IS_NPC(victim))
>     { die(victim); do_get(ch, "all corpse", 0, 0); }
>  }
>else die(victim);
>
>
>Code On
>Akuma the Raging Coder
>
>


     +------------------------------------------------------------+
     | 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/08/00 PST