Blockland Forums > Suggestions & Requests
Auto-Load
(1/3) > >>
Alpherio:
I'm hosting a salvage game-mode, and I'd like something that automatically reloads the resource bricks every 5 minutes or so.
Legodude77:
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...
Alpherio:
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.
phflack:
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);
}
otto-san:

--- Quote from: phflack on February 01, 2013, 09:23:33 PM ---probably need to change the schedual since i think it only goes up to 30000?
--- End quote ---
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.
Navigation
Message Index
Next page

Go to full version