Examples of OrfenInstance


Examples of npc.model.OrfenInstance

  {
    if (super.thinkActive())
    {
      return true;
    }
    final OrfenInstance actor = getActor();
    if (actor.isTeleported() && (actor.getCurrentHpPercents() > 95))
    {
      actor.setTeleported(false);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of npc.model.OrfenInstance

   */
  @Override
  protected void onEvtAttacked(Creature attacker, int damage)
  {
    super.onEvtAttacked(attacker, damage);
    final OrfenInstance actor = getActor();
    if (actor.isCastingNow())
    {
      return;
    }
    final double distance = actor.getDistance(attacker);
    if ((distance > 300) && (distance < 1000) && (_damSkills.length > 0) && Rnd.chance(10))
    {
      Functions.npcSay(actor, MsgOnRecall[Rnd.get(MsgOnRecall.length - 1)].sprintf(attacker.getName()));
      teleToLocation(attacker, Location.findFrontPosition(actor, attacker, 0, 50));
      final Skill r_skill = _damSkills[Rnd.get(_damSkills.length)];
View Full Code Here

Examples of npc.model.OrfenInstance

   */
  @Override
  protected void onEvtSeeSpell(Skill skill, Creature caster)
  {
    super.onEvtSeeSpell(skill, caster);
    final OrfenInstance actor = getActor();
    if (actor.isCastingNow())
    {
      return;
    }
    final double distance = actor.getDistance(caster);
    if ((_damSkills.length > 0) && (skill.getEffectPoint() > 0) && (distance < 1000) && Rnd.chance(20))
    {
      Functions.npcSay(actor, MsgOnRecall[Rnd.get(MsgOnRecall.length)].sprintf(caster.getName()));
      teleToLocation(caster, Location.findFrontPosition(actor, caster, 0, 50));
      final Skill r_skill = _damSkills[Rnd.get(_damSkills.length)];
View Full Code Here

Examples of npc.model.OrfenInstance

  {
    if(super.thinkActive())
    {
      return true;
    }
    OrfenInstance actor = getActor();
    if(actor == null)
    {
      return true;
    }
    if(actor.isTeleported() && actor.getCurrentHpPercents() > 95)
    {
      actor.setTeleported(false);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of npc.model.OrfenInstance

  @Override
  protected void onEvtAttacked(L2Character attacker, int damage)
  {
    super.onEvtAttacked(attacker, damage);
    OrfenInstance actor = getActor();
    if(actor == null || actor.isCastingNow())
    {
      return;
    }
    double distance = actor.getDistance(attacker);
    // if(attacker.isMuted() &&)
    if(distance > 300 && distance < 1000 && _dam_skills.length > 0 && Rnd.chance(10))
    {
      Functions.npcSay(actor, MsgOnRecall[Rnd.get(MsgOnRecall.length - 1)].sprintf(attacker.getName()));
      teleToLocation(attacker, Location.getAroundPosition(actor, attacker, 0, 50, 3));
View Full Code Here

Examples of npc.model.OrfenInstance

  @Override
  protected void onEvtSeeSpell(L2Skill skill, L2Character caster)
  {
    super.onEvtSeeSpell(skill, caster);
    OrfenInstance actor = getActor();
    if(actor == null || actor.isCastingNow())
    {
      return;
    }
    double distance = actor.getDistance(caster);
    if(_dam_skills.length > 0 && skill.getEffectPoint() > 0 && distance < 1000 && Rnd.chance(20))
    {
      Functions.npcSay(actor, MsgOnRecall[Rnd.get(MsgOnRecall.length)].sprintf(caster.getName()));
      teleToLocation(caster, Location.getAroundPosition(actor, caster, 0, 50, 3));
      L2Skill r_skill = _dam_skills[Rnd.get(_dam_skills.length)];
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.