ID:175800
Mar 9 2003, 12:01 pm
|
|
Thanks for your help yesterday, Lummox and Kunark. I fixed my rollback bug, but now I have another one to fix. Whenever I reboot my world, not everyone gets saved. How can I fix this so they get saved when I reboot, so I don't have to wait for everyone to logout to save?
|
Mar 9 2003, 12:05 pm
|
|
make the game manualy save right before reboot
|
Oh ya, another bug, or perhaps not. How can I make items players have taken off the ground respawn? I mean, the item is taken and only respawns with defeated monsters if it is destroyed. So, how can I make them respawn while the player still getting to keep the item?
|
In response to Koolguy900095
|
|
Is there a form of code I can enter to activate for reboot, such as if its not caused by a command but by CTRL+R?
|
In response to Ryuo
|
|
mob/verb/reboot()
world.Reboot() just stick the saving in there |
In response to Ryuo
|
|
The problem you're having here is that the objs still exist, but they're just in another location. Notice how they respawn when the person that picks them up logs out? In order to fix this, you'll have to change how they're picked up:
obj/item/verb/Get() That's all you need. Since the object no longer exists, it will respawn correctly when you use Repop(). Of course, I suggest you use a different method of respawning items, or you'll just saturate the market with these. Something more like this would be... obj/item/verb/Get() And that will "respawn" the items every 10 repops. |
In response to Magnus VI
|
|
I havent tried and sometimes there are restrictions or they just don't work, but I'm pretty sure you can just stick it in the world.Reboot() proc like this
Reboot() //Do stuff here ..() But I don't know if that will do it for when you reboot the world from DS, but I know it will through calling it in a proc. |
Your putting it in Logout() is the problem...
Put it in client/Del() then call ..() at the end. Example: client/Del() Save_me() ..() You do this because during reboot it doesn't manually logout everyone, it just deletes them instead. But make sure you have this also: mob/Logout() ..() del(src) |