Author Topic: Auto-Load  (Read 835 times)

I'm hosting a salvage game-mode, and I'd like something that automatically reloads the resource bricks every 5 minutes or so.

Well you could use that beta build cycle with just the same minigame and build and just make the minigame 5-10 minutes per round...

I wouldn't really want people to be brought back to their spawns every time, Plus this script probably wouldn't be longer than 5-10 lines.

probably just loop /reloadbricks
something along the lines of this should work, probably need to change the schedual since i think it only goes up to 30000?
function reloadstuff()
{
    cancel($reloadstuff);
    commandtoserver('reloadbricks');
    $reloadstuff = schedual(300000, 0, reloadstuff);
}

probably need to change the schedual since i think it only goes up to 30000?
Only in events. In the actual schedule function, there's not really a limit. It just doesn't handle scientific notation very well (so i recall).

Your function probably won't work extremely well for this, though. /reloadbricks loads the last save uploaded to the server. Not the last one loaded. Unless that's been changed and I never knew about it. Also probably good to note that 'schedule' is misspelled, but that's just a typo.

If it just needs to be reloaded and you set the temp.bls (or whatever it's called) file to whatever save it needs to be, it'll work fine of course.
« Last Edit: February 01, 2013, 10:56:59 PM by otto-san »

or you could set the reload file to be the bricks he wants loaded

You could use the slayer map cycler and make it always load the same map

You could use the slayer map cycler and make it always load the same map
I wouldn't really want people to be brought back to their spawns every time, Plus this script probably wouldn't be longer than 5-10 lines.
Do you even read?

Do you even read?
If you reload the bricks people will get stuck inside new bricks
So respawning them is probably a good idea

If you reload the bricks people will get stuck inside new bricks
So respawning them is probably a good idea

You can destroy bricks in salvage, so it's not a big issue

It would be better to respawn I think, but whatever suits you.