ID:174076
 
In my game, I have monster blockers (because the monsters are on the same screen as you travel on). Now when my monsters go up to the monster blockers, they stay there for a while and I assume it's because they are constantly tring to pass the monster blockers. Is there a way I can stop them from doing this? It is rather annoying.

Also, can someone give me a code for the game to auto reboot every 30 minutes? I saw someone with one before, but it doesn't seem to like my game. Please help.
<this doesn't belong in Code Problems>

For the reboot code,

world/New()
..()
RebootTime="I don't know how many ticks is thirty minutes"
sleep(RebootTime)
world.Reboot()

var/RebootTime
In response to Airjoe
i think you forgot the part where it reboots, either way, can u help with the other part? *what is the command for an automated reboot*
In response to Metroid
For the reboot, this will work better.

world
New()
..() // stabalization, and after the world loads
RebootWorld(1800) // There are 1800 seconds in thirty minutes

proc/RebootWorld(s as number) // s is the number of seconds to reboot
spawn(s*10)
// use spawn so you can use other things in world/New()
// 1 is a millisecond, 10 is one second, so you can multiply it by two because s is in seconds, not milliseconds
world.Reboot() // Reboot the world

And for the "humping monsters":

When your monsters move, make it so when a monster is trying to enter the nomonstersallowed area, step it back and change the mob var that the monster has to null so it wont chase it back.

EG:

area/nomonstersmayenter
Enter(atom/movable/A) // when a movable atom enters this area
if(ismob(A)) // if it is a mob
var/mob/M = A // make it so you can use mob vars
if(istype(M,/mob/monster)) // if its type is /mob/monster or higher
step(M,turn(M.dir,180)) // make it step the opposite direction it is already facing
M.target = null // I am assuming that there is a var called target where the monsters will follow you
return ..() // if it isn't the type of a monster, it may enter

Hope it helps,
~~ Dragon Lord ~~

PS: If there are any things that don't work, tell me. :)
In response to Metroid
oops! My bad. It's fixed now.
You could use Unknown Person's, but mine is simpler(spelling?)
In response to Unknown Person
For the reboot thing, i get:
Main.dm:8:error: Bad input type: number
In response to Metroid
proc/RebootWorld(s as num)

It's "as num", not "as number".
In response to Crispy
I get Out of memory. after I set RebootWorld(1) and wait a bit, it doesnt even reset the server or anything, it just tells me Out of memory. Also, my exp and expreq vars go away in my stat panels.
In response to Metroid
Metroid wrote:
I get Out of memory. after I set RebootWorld(1) and wait a bit, it doesnt even reset the server or anything, it just tells me Out of memory. Also, my exp and expreq vars go away in my stat panels.

SOMEONE PLEASE HELP DAMNIT!
In response to Metroid
I've been running out of memory too...
In response to Metroid
Metroid wrote:
SOMEONE PLEASE HELP DAMNIT!

If people aren't helping, nine times out of ten it's because they don't know.
In response to DarkCampainger
Very confusing ain't it? Make sure you check for viruses on your comp. After I did that myself, I found Trojans and Hackers getting into my comp. Seems that they screwed my comp big time and ended up being the reason. Of course, I had to reinstall Windows, (dunno if u wanna do that). Just tring to help ya =P I dont have the problem anymore, might just be a Windows thing. A lot of people have problems with BYOND and Windows. Too many Windows viruses and trojans going around at late, make sure you have a firewall up 24/7 and if you can, try to change from windows into a different processing software. Might help a lot, Byond needs to work with icons on Linux, helpful it would be. Windows really sucks, and until im done using BYOND forever, I'm gonnna have to live with Windows due to the text only mode for Linux. Sigh....Oh well, just a suggestion though. =P
In response to Metroid
I have a dial-up modem.... so If I get a virus, i have to watch it download For About An hour =D