Thanks to the violent activities of fellow cowizens like Chaotic Bob, Thorn was made aware of a bug in the treasure handling logic in the creatures made by the spawn command. If you kill such a creature when it has never been given treasure to drop, then it drops a copy of something random from ther cowiverse.
So Thorn would like to ask all coders assistance in fixing the many spawned creatures amuk in this world. The treasure logic is the same whether they came from passive or aggro templates. Just code them and select the ##justdied block, replacing it with the following blocks (yes, both of them):
##justdied:
$actdead = (slumps to the floor,gasps one last breath then falls,cries out in agony then is silent);
say 'msg',"[$actor] $actdead.";
find $actor,'pouch';
if $found_id > 0 then picktreasure;
##picktreasure:
find $found_id,random;
if $found_id > 0 then treasure;
Thank you for your assistence...