At 08:30 PM 2/17/99 -0600, you wrote: >Hi. I've had the problem of containers turning up with negative weight all >over my mud. I've ptested enough to find out that when a player dies, >their containers go to their corpse and have the exact weight the object's >prototype has instead of the weight + what's inside of it. For instance, >let's say they are carrying (or holding, it happens on both) a box that has >an empty weight of 10. Now, we put 200 scrolls in it giving it a weight of >210 (scrolls are 1 each). The character dies, their eq is transfered to >their corpse, but the box with 200 scrolls in it now has a weight of 10. >Thus, we remove all the scrolls and the box weighs -190. I don't think the >code that handles object transfer has been altered, but here it is just in <SNIP> > GET_OBJ_EXTRA(corpse) = ITEM_NODONATE; > GET_OBJ_EXTRA(corpse) = ITEM_NOAUCT; I donno about your problem though but the above lines you should propably change to something like GET_OBJ_EXTRA(corpse) = ITEM_NODONATE | ITEM_NOAUCT; or SET_BIT(GET_OBJ_EXTRA(corpse), ITEM_NODONATE); SET_BIT(GET_OBJ_EXTRA(corpse), ITEM_NOAUCT); +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST