Package com.l2jfrozen.gameserver.model.spawn

Examples of com.l2jfrozen.gameserver.model.spawn.L2GroupSpawn


    try
    {
      for(int i = 0; i < getMaxMobCount(); i++)
      {
        L2GroupSpawn spawn = new L2GroupSpawn(getTemplate());

        int signX = Rnd.nextInt(2) == 0 ? -1 : 1;
        int signY = Rnd.nextInt(2) == 0 ? -1 : 1;
        int randX = Rnd.nextInt(MobGroupTable.RANDOM_RANGE);
        int randY = Rnd.nextInt(MobGroupTable.RANDOM_RANGE);

        spawn.setLocx(x + signX * randX);
        spawn.setLocy(y + signY * randY);
        spawn.setLocz(z);
        spawn.stopRespawn();

        SpawnTable.getInstance().addNewSpawn(spawn, false);
        getMobs().add((L2ControllableMobInstance) spawn.doGroupSpawn());
        spawn = null;
      }
    }
    catch(ClassNotFoundException e)
    {
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.spawn.L2GroupSpawn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.