> Also noone replied to my message about autoloot code... Noone have it?
> Denis
act.other.c:
"autoexits enabled.\r\n},
+ {"AutoLooting disabled.\r\n",
+ "AutoLooting enabled.\r\n}
also to the 'switch(subcmd)' block, add:
case SCMD_AUTOEXIT:
result = PRF_TOG_CHK(ch, PRF_AUTOEXIT);
break;
+ case SCMD_AUTOLOOT:
+ result = PRF_TOG_CHK(ch, PRF_AUTOLOOT);
+ break;
fight.c:
in damage():
die(victim, ch);
+ if (IS_NPC(victim) && !IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOLOOT)
+ command_interpreter(ch, "get all corpse");
in interpreter.c:
{"autoexit"......
+ {"autoloot", POS_DEAD, do_gen_tog, 0, SCMD_AUTOLOOT},
in interpreter.h:
#define SCMD_AUTOEXIT 15
+ #define SCMD_AUTOLOOT 16
in structs.h:
#define PRF_ROOMFLAGS (1 << 21) .........
+ #define PRF_AUTOLOOT (1 << 22)
Think thats about it...
***************************************************************************
* Ron Hensley strider@hippy.org *
* Computer Programmer strider@dmv.com *
* DelMarVa OnLine complaints@/dev/null *
* 749-1111 Ext. 403 *
***************************************************************************
This archive was generated by hypermail 2b30 : 12/07/00 PST