Use the source ForestStory the right time and stop the mobs born with it have to be giving restart the server. I wonder if that has any script to possar of respawnmob, or if it's something do with the functions of the source?
HELP ME PLEASE
Printable View
Use the source ForestStory the right time and stop the mobs born with it have to be giving restart the server. I wonder if that has any script to possar of respawnmob, or if it's something do with the functions of the source?
HELP ME PLEASE
Are you logged in with a gm account?
No no, those are own players, after a while the mobs are not born again, the map is no mob and thus restarting the server so that the mobs re-born.
---
@Edit.
Using the following script could run the auto respawn in "x" time?
PHP Code:/*
* @autor JavaScriptz
* Auto Respawn
* 26/09/12
*/
var setupTask;
function init() {
scheduleNew();
}
function scheduleNew() {
var cal = java.util.Calendar.getInstance();
cal.set(java.util.Calendar.HOUR, 0);
cal.set(java.util.Calendar.MINUTE, 10);
cal.set(java.util.Calendar.SECOND, 0);
var nextTime = cal.getTimeInMillis();
while (nextTime <= java.lang.System.currentTimeMillis()) {
nextTime += 1000 * 1000;
}
setupTask = em.scheduleAtTimestamp("start", nextTime);
}
function cancelSchedule() {
setupTask.cancel(true);
}
function start() {
scheduleNew();
em.getChannelServer().respawnMaps(); // Function respawn? ;x
var iter = em.getInstances().iterator();
while (iter.hasNext()) {
var eim = iter.next();
}
}
?
bump.
try recompile everything..