Examples of DecoyInstance


Examples of lineage2.gameserver.model.instances.DecoyInstance

  @Override
  public void useSkill(Creature caster, List<Creature> targets)
  {
    Player activeChar = caster.getPlayer();
    NpcTemplate DecoyTemplate = NpcHolder.getInstance().getTemplate(getNpcId());
    DecoyInstance decoy = new DecoyInstance(IdFactory.getInstance().getNextId(), DecoyTemplate, activeChar, _lifeTime);
    decoy.setCurrentHp(decoy.getMaxHp(), false);
    decoy.setCurrentMp(decoy.getMaxMp());
    decoy.setHeading(activeChar.getHeading());
    decoy.setReflection(activeChar.getReflection());
    activeChar.setDecoy(decoy);
    decoy.spawnMe(Location.findAroundPosition(activeChar, 50, 70));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.