On 18 Nov 96 at 8:58, Brad Freshour wrote: > I just got AutoLoot and AutoSplit off of a WWW site that had snippets of > code. I'm a new Admin, and "inserted" everything in where it needed to be. > But when I compile (BSD using GCC), I get an error as follows: > > fight.c: In function `damage': > fight.c:764: too many arguments to function `die' > > Here is the snippet of code that it says as the error: > > } > /* Cant determine GET_GOLD on corpse, so do now and store */ > sprintf(local_buf,"%ld", (long)local_gold); > } > > die(victim,ch); > > /* If Autoloot enabled, get all corpse */ You forgot to add: if (IN_NPC(victim) && !IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOLOOT)) { > do_get(ch,"all corpse",0,0); > } > /* If Autoloot AND AutoSplit AND we got money, split with group */ also, you for got: if (ISS_AFFECTED(ch, AFF_GROUP) && (local_gold > 0) && PRF_FLAGGED(ch, PRF_AUTOSPLIT) && PRF_FLAGGED(ch, PRF_AUTOLOOT)) { > do_split(ch,local_buf,0,0); > } > } you will need to also add: } > > Hope that helps!!! -VOLAR- Dan Johnson > --- > Thanks for any help you can give me. > > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > > +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST