Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2MinionInstance


    }
  }

  private void spawnSingleMinion(int minionid)
  {
    L2MinionInstance monster = new L2MinionInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(minionid), _master);
    monster.setReflection(_master.getReflection());
    if(_master.getChampion() == 2)
    {
      monster.setChampion(1);
    }
    monster.onSpawn();
    monster.setHeading(_master.getHeading());
    addSpawnedMinion(monster);
    monster.spawnMe(_master.getMinionPosition());
  }
View Full Code Here


    }
    L2MonsterInstance boss = ((L2MinionInstance) actor).getLeader();
    if(boss != null && !boss.isDead())
    {
      Location loc = actor.getLoc();
      L2MinionInstance newMinion = new L2MinionInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(Eidolon_ID), boss);
      newMinion.setSpawnedLoc(loc);
      newMinion.onSpawn();
      newMinion.spawnMe(loc);
      newMinion.getAI().setGlobalAggro(0);
      newMinion.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, boss.getRandomHated(), 1);
      MinionList ml = boss.getMinionList();
      if(ml != null)
      {
        ml.addSpawnedMinion(newMinion);
      }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2MinionInstance

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.