ID:178580
 
Could somebody give me a good example of a repop code? I don't quite understand how it works.
proc
repopulate()
world.Repop()
spawn(rand(10,40))
repopulate()
In response to Nadrew
I tried this code but it didn't work:

verb
get()
set src in oview(1)
usr << "You get [src]"
Move(usr)
repopulate(src)
proc
repopulate(src)
world.Repop(src)
spawn(rand(10,40))
repopulate(src)
In response to Likwiddraino000
I don't see what you're trying to do, but Repop() repopulates everything in the world.
In response to Likwiddraino000
Likwiddraino000 wrote:
I tried this code but it didn't work:

verb
get()
set src in oview(1)
usr << "You get [src]"
Move(usr)
repopulate(src)
proc
repopulate(src)
world.Repop(src)
spawn(rand(10,40))
repopulate(src)

Why are you passing src to repopulate? Are you trying to repopulate all of the mobs? That's what world.Repop does.
In response to Nadrew
I thought everything had to have src passed or whatever, it's so confusing. I never know when there's gonna be this one little tiny error that screws everything up. Do I put the code under world or something? And do I get rid of all of the srcs in it?
I'm guessing you don't want the object to get moved, so just do this:

obj/get/verb/get()
new src(usr)//doesn't move the object on the ground