Re: Autoloot

From: The Mighty Spaz Twit (spaz@helix.net)
Date: 07/25/95


On Tue, 25 Jul 1995, Jörgen Zigge Sigvardsson wrote:

Some stuff

> for(object = corpse->contents; object != NULL; object = object->nextcontent)
> 	obj_to_room(object, corpse->in_room);
> 
> Something like that. 
> But the big crash is when the mob has gold coins when I slay him/her/it(?).
> The corpse -> boots or whatever works just fine. I made a lovely pair of gloves
> made out of fido. :) Then I killed the cityguard that has gold coins, CRASH!
> 
> When I debugged it + core, the debugger said it crashes at GET_GOLD(ch) (the cointransfer
> from mob to obj). 


Ok, just another quickie: do you remember to obj_from_container? also, 
make sure you do the gold thing before tossing the corpse into /dev/null

Chris 

> I guess I have a few hours of fun ahead of me.. NOT! :)
> 
> Ziggur @ BlueMage douglas.cse.hks.se 4000
> 
> 	
> 
> 
> 
> 



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