Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Objects saving through copyover (http://www.topmudsites.com/forums/showthread.php?t=348)

Jaegar 09-07-2004 04:52 PM

I am trying to figure out how to get objects to save through a copyover if they are in a certain item type.  An example would be for all items in a donation pit would save through a copyover.  I know that saving items in the donation pit is not a good idea, just using it as an example.  Any help on this would be a great help.

Thanks,

Jaegar

Enola_Phoenix 09-07-2004 04:56 PM

Add the persist flag to the room/object, that will keep it from being deleted during a copyover, useful for lockers, clan halls, cabinets, etc......

Jaegar 09-08-2004 02:31 AM

Haven't been able to find anything on a persist flag.  Any ideas where I could obtain more information on it?

Amnon 09-08-2004 08:23 AM

I doubt that's a part of the stock code... so...

What you need to code is a datafile where objects save on every few minutes and on every copyover. Basically, it just saves the object as a line of data, then when the game reboots it reads those lines and turns it into an object.


All times are GMT -4. The time now is 03:43 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022