[NEED HELP] Respawn mob v83

Results 1 to 5 of 5
  1. #1
    Sorcerer Supreme GabrielSin is offline
    Member +Rank
    Apr 2010 Join Date
    483Posts

    [NEED HELP] Respawn mob v83

    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


  2. #2
    Sorcerer Supreme operationcaw is offline
    Member +Rank
    Aug 2010 Join Date
    364Posts

    Re: [NEED HELP] Respawn mob v83

    Are you logged in with a gm account?

  3. #3
    Sorcerer Supreme GabrielSin is offline
    Member +Rank
    Apr 2010 Join Date
    483Posts

    Re: [NEED HELP] Respawn mob v83

    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.HOUR0);
        
    cal.set(java.util.Calendar.MINUTE10);
        
    cal.set(java.util.Calendar.SECOND0);
        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();
        }


    ?
    Last edited by GabrielSin; 26-09-12 at 04:22 PM.

  4. #4
    Sorcerer Supreme GabrielSin is offline
    Member +Rank
    Apr 2010 Join Date
    483Posts

    Re: [NEED HELP] Respawn mob v83

    bump.

  5. #5
    Sorcerer Supreme operationcaw is offline
    Member +Rank
    Aug 2010 Join Date
    364Posts

    Re: [NEED HELP] Respawn mob v83

    try recompile everything..



Advertisement