Package npc.model

Examples of npc.model.HellboundRemnantInstance


    if ((target == null) || !(target instanceof HellboundRemnantInstance))
    {
      player.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return false;
    }
    final HellboundRemnantInstance npc = (HellboundRemnantInstance) target;
    if (npc.isDead())
    {
      player.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return false;
    }
    player.broadcastPacket(new MagicSkillUse(player, npc, 2358, 1, 0, 0));
    npc.onUseHolyWater(player);
    return true;
  }
View Full Code Here


    if(playable.getTarget() == null || !(playable.getTarget() instanceof HellboundRemnantInstance))
    {
      playable.sendPacket(Msg.THAT_IS_THE_INCORRECT_TARGET);
      return;
    }
    HellboundRemnantInstance target = (HellboundRemnantInstance) playable.getTarget();
    // Моб уже мертвый
    if(target.isDead() || target.isDying())
    {
      playable.sendPacket(Msg.THAT_IS_THE_INCORRECT_TARGET);
      return;
    }
    playable.broadcastPacket(new MagicSkillUse(playable, target, 2358, 1, 0, 0));
    target.onUseHolyWater(playable);
  }
View Full Code Here

TOP

Related Classes of npc.model.HellboundRemnantInstance

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.