ID:176644
Dec 23 2002, 6:44 pm
|
|
How would i make it so after awhile the monsters that were killed can come back to life in the spot they normaly start at without reboot the whole server?
|
Dec 23 2002, 7:01 pm
|
|
Repop()
|
Repop proc (world)
Format: Repop() Default action: Reload the obj and mob instances defined in the world map. This "repopulates" a world to its initial state. Only objects that were destroyed will be recreated. |
In response to OneFishDown
|
|
Warning with Repop()...
there is a major illogical aspect to it... an Item that has been picked up will NOT repop unless that item is somehow destroyed or the wearer of it logs off then back on... a potential way around that would be to clone the original object when it gets picked up, then delete the original... If you want to prevent lots of an object from existing, the simple repop may work...but note that it is VERY weird for someone to let it repop by logging off then back on... It's probably better to clone stuff when picked up (at a speed drop) |
In response to Abraxas
|
|
Well, if I get you right, if you dont want a lot of a certain item to circulate around, either A: Dont put that item on the map, make it spawn a little after the world starts up(im not going to explain this part, figure it out for yourself,) or B: Manually put in the items yourself when you start the game, say have a gm run around and spawn the items, or give the gm a verb that spawns the items. I think these are both viable solutions to what you just described.
|
In response to Jotdaniel
|
|
I think ya missed my point...and my post.
Unless you clone/delete items on pickup, they will never respawn... it's almost as -if- you manually dropped them after the world started for how rarely they'll respawn... Except they'll respawn only after their holders log off |
In response to Abraxas
|
|
Correct, and if you read more carefully youd understand why. The Repop() proc only respawns obj's/mob's that have been deleted, if an obj has simply been put into someone inventory it has not been deleted, if you manually delete an item, or as you say delete the item and create a new one in inventory, then it will repop that item, but repop has been designed NOT to repop items that are simply picked up, as I see it.
|