Re: [Circle] NEWBIE: AutoLoot, AutoSplit, etc..

From: Dan Johnson (danpatti@dreamscape.com)
Date: 11/18/96


On 18 Nov 96 at 10:55, Dan Johnson wrote:

> 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)) {
     opps..sorry typo its if (IS_NPC....
> >       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) &&
    same thing here: if (IS_NPC....
>   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   |
> +-----------------------------------------------------------+
> 
> 
+-----------------------------------------------------------+
| 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