Re: autoloot (fwd)

From: Naji M. Khudairi (oracle@blkbox.com)
Date: 02/24/95


On Fri, 24 Feb 1995, Jeff Teker Fink wrote:

> 
> Wheel of Fish! <piraeus@connectus.com> writes:
> > 
> > Ok.. I added an autoloot flag and what have you into the source.. I then
> > popped the following code into act.offensive.c right after the raw_kill in
> > void do_kill
> > 
> > if (PLR_FLAGGED(ch, PRF_AUTOLOOT)) 
> >   do_get(ch, "all corpse" 0, 0);
> > 
> > yet.. it FAILS every damn time *sigh* . where did I go wrong?
> 
> How do players set their own autoloot flag to on?
> -Jeff
> 

shouldn't that read:  if (PRF_FLAGGED(ch, PRF_AUTOLOOT))  ???
                          ^^^Preference bits, not player bits, right?

You also need to add a command in interpreter that will call 
do_gen_toggle so your players can turn it on.

--
 Naji M. Khudairi..........................................oracle@blkbox.com 

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAy85QCAAAAEEAMx+xxg5NE02y3GhkYhvt1MsxJqqO116GBsB1MuIofqsKLcr
kkH92+yk/eoPDp8/HcSbHtSukbaAG7wxb5bPj4qIVu3YGrJ3Y8QcFt0trytP80hu
2S8S29uFzdJgBlLse5jY1o02qKhNbX8mMoBjuE4Sh9gEr+QuwqupeJs4D1UdAAUR
tCROYWppIE0uIEtodWRhaXJpIDxvcmFjbGVAYmxrYm94LmNvbT6JAJUDBRAvOUBc
q6l4mzgPVR0BAeFdA/9dlCpdxivF0T9eaqoApIqJlMBs7fXzJZn+RKhQs7pxbAIq
3akiZClKxR4513Y/OWOtFwwE6PBfrSm4sa2gh8gbL/RwcT9VhcdNePGRjPZO9zv/
AAsroaPDXSOIrNHn1PcuJfR3wwTg6S+a7EKBc0yrDulnMaZb+9LprS+iUYVReA==
=YDOx
-----END PGP PUBLIC KEY BLOCK-----



This archive was generated by hypermail 2b30 : 12/07/00 PST