Re: Autoloot

From: Graham Gilmore (
Date: 07/23/95

On Sun, 23 Jul 1995, Mark Garringer wrote:

> I am trying to implement an autoloot for my MUD. But I am having trouble 
> figuring out what I should pass to do_get from fight.c
> Advice? 
> Thanks.
> --Ziz, NetShamen
	In damage() of fight.c there's a part which dishes out xp for the 
kill.  In this part you could transfer the gold from the victim to the 
	GET_GOLD(ch) += GET_GOLD(victim); 
	GET_GOLD(victim) = 0;

	and write an appropriate message ("You plunder %d gold from the 
body of %s before it even hits the ground."  ;).

	And if you have an auto-split for grouped members as well, do 
that in the group-gain part. :)

	Graham Gilmore

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