Re: Corpse Looting

From: Hades (tourach@cyber1.servtech.com)
Date: 03/09/96


> 
> Okay Guys,
> 
> I greatly appreciate all the responses to my room bitvector post and now 
> I have just one more question. We are having major problems on Quarantine 
> involving corpse looting. What I would like to do is log when a player 
> takes an object from another's corpse. Logging the get from a corpse is 
> easy, but how do I distinguish between PC and NPC corpses since all 
> corpses are in the *corpse list, and are not segregated by player or NPC 
> types? Logging every item taken from every corpse is ridiculous. Anyone 
> have any solutions? Hacks are appreciated too :-)
> 
Easy enough... to the memory struct of an obj make a boolean var like this:
bool  is_npc_corpse;

then in make_corpse if the corpse is fromn an NPC set that boolean variable
to 1, otherwise leave it 0. You can now distinguish.



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