ID:147259
 
The problem is that it displays a run time message rather then the message appointed which is "blah blah blah" .

world
New()
..()
spawn() region_info()

proc
region_info()
sleep(60) // adjust to 9000 when done testing!
src << "blah blah blah!"
..()


After the appointed time it displays this runtime error:

runtime error: Cannot execute null.region info().
proc name: region info (/proc/region_info)
source file: initialization.dm,13
usr: null
src: null
call stack:
region info()
: New()
ZLegend wrote:
The problem is that it displays a run time message rather then the message appointed which is "blah blah blah" .

world
> New()
> ..()
> spawn() region_info()
>
> proc
> region_info()
> sleep(60) // adjust to 9000 when done testing!
> src << "blah blah blah!"
> ..()

After the appointed time it displays this runtime error:
<SMALL><font color = red>
runtime error: Cannot execute null.region info().
proc name: region info (/proc/region_info)
source file: initialization.dm,13
usr: null
src: null
call stack:
region info()
: New()
</font color></SMALL>

I believe that's because you're sending the message to src, which in this case would be the world. Changing it so the message is sent to world should fix this problem.
In response to SSJ Radditz
Forget that thing that about the src,usr and me defining M because it's still not working. I also tried to not put ..() but without that I don't even get a runtime message indicating the proc wouldn't be executed without ..()

So... Im lost at this point...
In response to SSJ Radditz
world
New()
..()
spawn(30) region_info()

proc
region_info()
spawn(30) // adjust to 4800(8minutes) when done testing!
world << "blah blah blah!"
return

The world only executes the proc once then lays it aside. Any ideas on how to make this happen over and over as long as the world is up?
In response to ZLegend
world/New()
..()
spawn() region_info()

proc/region_info()
spawn while(1) // infinite loop
sleep(60)
world << "Blah blah blah."


This should loop it forever "Blah blah blah." every minute.

You can change the time too.

~~> Dragon Lord
In response to ZLegend
world
New()
..()
spawn(30) region_info()

proc
region_info()
spawn(30) // adjust to 4800(8minutes) when done testing!
world << "blah blah blah!"
usr.region_info()//call the proc again by
//adding this line of text
//instead of return

This should work
In response to Unknown Person
Could you break done the line:
 spawn while(1)

?
I posted in your Newbie Central thread with a fairly comprehensive solution. =)

Also, please don't cross-post next time. Thanks.