Re: Autoloot with Get Patch

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


I just changed the fight.c to this
      if (IS_NPC(victim) && !IS_NPC(ch) && PRF_FLAGGED(ch,
PRF_AUTOLOOT))
      {
        die(victim);
        do_get(ch,"all corpse",0,0);
      } else
        die(victim);

and it's still crashing with this dump...

#0  0x4007643f in strcpy ()
#1  0x81a96a0 in ?? ()
#2  0x80561e2 in do_get (ch=0x81a7850, argument=0x80a9a05 "all corpse",
cmd=0,
    subcmd=0) at act.item.c:319
#3  0x8071cdd in damage (ch=0x81a7850, victim=0x81a96a0, dam=30052,
    attacktype=300) at fight.c:817
#4  0x8071f89 in hit (ch=0x81a7850, victim=0x81a96a0, type=-1) at
fight.c:909
#5  0x80589db in do_hit (ch=0x81a7850, argument=0xbffff703 " puff",
cmd=133,
    subcmd=0) at act.offensive.c:116

I'm new to the whole debugging with debugger world so any assistance
would be greatly appreciated...

Thanks,
>Nathan Davies,

>My point was: If I can type exactly what your autoloot does and it works,
>then something might be wrong with the autoloot. (Like checking
>IS_NPC(vict) after they are dead.)
>
>A GDB trace would be nice.
>
>--
>George Greer  -  Me@Null.net   | Genius may have its limitations, but
>stupidity
>


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