Re: [CODE] OBJ_LEVEL

From: Rick Glover (magik@thegrid.net)
Date: 11/19/98


-----Original Message-----
From: Igor <imestric@PUBLIC.SRCE.HR>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Thursday, November 19, 1998 1:33 AM
Subject:  [CODE] OBJ_LEVEL


>I've added a GET_OBJ_LEVEL into to obj structure and have
>encountered a few bugs. When i change the level of an object and save it
>(OasisOLC) and then restart the mud, the obj_level resets back to zero,
>although in objsave.c i wrote the neccesary flags in obj_to_store and
>obj_data..
>if anyone could help with this problem it would be appriciated
>
>oh, and about wear and wield, if someone has the obj_level on their mud
>implemented
>if you can just point me to a direction of making wear/wield objects above
>chars level
>not possible...


Objects are loaded as prototypes into memory in db.c (parse_object) and
saved in OLC in oedit.c (save_to_disk()).

If you want the object's level to be able to be changed while in the game
and saved in the player rent files as a separate object, then you should
change objsave.c, but otherwise you don't need to.  If you don't save it in
objsave.c, it'll just use the prototype's value.

Put a check in perform_wear() for the level check.

Rick


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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