[Release]Higher spawn rate

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Alpha Member MSDartz is offline
    MemberRank
    May 2008 Join Date
    PwnVilleLocation
    2,171Posts

    [Release]Higher spawn rate

    Credits to iTzDielawn
    Tired of all those threads now, asking how to fix it

    Find your respawnWorker function in MapleMap.Java

    Replace it with this

    PHP Code:
        private class RespawnWorker implements Runnable {

            @
    Override
            
    public void run() {
                
    int playersOnMap characters.size();

                if (
    playersOnMap == 0) {
                    return;
                }

                
    int ispawnedMonstersOnMap spawnedMonstersOnMap.get();
                
    int getMaxSpawn getMaxRegularSpawn() * 2;
                
    int numShouldSpawn getMaxSpawn ispawnedMonstersOnMap;
                 if (
    numShouldSpawn ispawnedMonstersOnMap getMaxSpawn) {
                    
    numShouldSpawn getMaxSpawn ispawnedMonstersOnMap;
                 }

                if (
    numShouldSpawn <= 0) {
                    return;
                }

                
    // k find that many monsters that need respawning and respawn them �.o
                
    List<SpawnPointrandomSpawn = new ArrayList<SpawnPoint>(monsterSpawn);
                
    Collections.shuffle(randomSpawn);
                
    int spawned 0;
                for (
    SpawnPoint spawnPoint randomSpawn) {
                    if (
    spawnPoint.shouldSpawn()) {
                        
    spawnPoint.spawnMonster(MapleMap.this);
                        
    spawned++;
                    }
                    if (
    spawned >= numShouldSpawn) {
                        break;
                    }
                }
            }
        } 
    And still in maplemap.java

    PHP Code:
    TimerManager.getInstance().register(new RespawnWorker(), 10000); 
    Change 10000 to a lower number.


  2. #2
    Account Upgraded | Title Enabled! Qualitys is offline
    MemberRank
    Mar 2009 Join Date
    277Posts

    Re: [Release]Fix to Spawn

    Nice release.

  3. #3
    Alpha Member MSDartz is offline
    MemberRank
    May 2008 Join Date
    PwnVilleLocation
    2,171Posts

    Re: [Release]Higher spawn rate

    Thanks.

    Waiting for KidFuck and Regurgitate to flame me.

  4. #4
    Valued Member iTzDielawn is offline
    MemberRank
    Jan 2008 Join Date
    102Posts

    Re: [Release]Higher spawn rate

    Thanks for the credits :P

    Also might want to add this part too:
    Find in MapleMap
    Code:
    TimerManager.getInstance().register(new RespawnWorker(), 10000);
    Change 10000 to something lower.

  5. #5
    Back? gmsinister is offline
    MemberRank
    Apr 2008 Join Date
    New YorkLocation
    1,655Posts

    Re: [Release]Higher spawn rate

    nice release buddy long time to post to lol.

  6. #6
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: [Release]Higher spawn rate

    i iz fl4m3!! i is need copmile?

  7. #7
    Alpha Member MSDartz is offline
    MemberRank
    May 2008 Join Date
    PwnVilleLocation
    2,171Posts

    Re: [Release]Higher spawn rate

    Woops, forgot that part.

  8. #8
    Proficient Member Nycrich67 is offline
    MemberRank
    Apr 2009 Join Date
    In front of a computerLocation
    151Posts

    Re: [Release]Higher spawn rate

    It's awesome.
    Thank's

  9. #9
    Enthusiast zxShootxz is offline
    MemberRank
    Apr 2009 Join Date
    46Posts

    Re: [Release]Higher spawn rate

    does this have alliances???

  10. #10
    Alpha Member MSDartz is offline
    MemberRank
    May 2008 Join Date
    PwnVilleLocation
    2,171Posts

    Re: [Release]Higher spawn rate

    Quote Originally Posted by zxShootxz View Post
    does this have alliances???
    yes lol it have alliance!1!!111

  11. #11
    Account Upgraded | Title Enabled! Abubakr is offline
    MemberRank
    Apr 2008 Join Date
    Mississauga,Ontario,CanadaLocation
    240Posts

    Re: [Release]Higher spawn rate

    Just if anyone is wondering what it does.


    The first code basically makes the max spawn 2x as much.
    So if in a map there is 60 monsters, up to 120 will spawn.

    The second line of code is how fast they come back. If you change from lets say 10000 to 100 then like a second after they die they will be back.


    That's what I think.

  12. #12
    none seryi is offline
    MemberRank
    Apr 2005 Join Date
    Honk KongLocation
    835Posts

    Re: [Release]Higher spawn rate

    Quote Originally Posted by zxShootxz View Post
    does this have alliances???
    and Family also.

  13. #13
    Valued Member DanceToNight is offline
    MemberRank
    Dec 2008 Join Date
    BluepieXD is a failure.Location
    101Posts

    Re: [Release]Higher spawn rate

    Quote Originally Posted by MSDartz View Post
    yes lol it have alliance!1!!111
    You know, you don't get any pro-er from releasing this, this wasn't even your work o.o. Flame will come (Not by me)

  14. #14
    Account Upgraded | Title Enabled! Popozow1012 is offline
    MemberRank
    Jul 2008 Join Date
    Where it's nine in the afternoonLocation
    549Posts

    Re: [Release]Higher spawn rate

    you've done it again dartz~

  15. #15
    Alpha Member MSDartz is offline
    MemberRank
    May 2008 Join Date
    PwnVilleLocation
    2,171Posts

    Re: [Release]Higher spawn rate

    Quote Originally Posted by Popozow1012 View Post
    you've done it again dartz~
    Pissed other people off? Yeah. :D



Page 1 of 2 12 LastLast

Advertisement