Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2NpcInstance.doCast()


    int skillId = 2139;
    for(L2Player player : L2World.getAroundPlayers(actor, 200, 200))
    {
      if(player != null && !player.isInZonePeace() && player.getEffectList().getEffectsBySkillId(skillId) == null)
      {
        actor.doCast(SkillTable.getInstance().getInfo(skillId, 1), player, true);
      }
    }
    return false;
  }
View Full Code Here


        attacker.getPlayer().setKarma(attacker.getPlayer().getKarma() + 5);
        attacker.sendChanges();
      }
      else if(chance < 4)
      {
        actor.doCast(SkillTable.getInstance().getInfo(4578, 1), attacker, true);
      }
      else
      {
        actor.doCast(SkillTable.getInstance().getInfo(4185, 7), attacker, true);
      }
View Full Code Here

      {
        actor.doCast(SkillTable.getInstance().getInfo(4578, 1), attacker, true);
      }
      else
      {
        actor.doCast(SkillTable.getInstance().getInfo(4185, 7), attacker, true);
      }
      Functions.npcSay(actor, attacker.getName() + ", " + _retreatText[Rnd.get(_retreatText.length)]);
      _lastAction = System.currentTimeMillis();

    }
View Full Code Here

      else if(actor.getNpcId() == 18368)
      {
        Functions.npcSay(actor, "Убирайтесь прочь...");
      }
      L2Skill petrification = SkillTable.getInstance().getInfo(4578, 1); // Petrification
      actor.doCast(petrification, attacker, true);
      if(attacker.getPet() != null)
      {
        actor.doCast(petrification, attacker.getPet(), true);
      }
      return;
View Full Code Here

      }
      L2Skill petrification = SkillTable.getInstance().getInfo(4578, 1); // Petrification
      actor.doCast(petrification, attacker, true);
      if(attacker.getPet() != null)
      {
        actor.doCast(petrification, attacker.getPet(), true);
      }
      return;
    }
    // 18367 не отвечают на атаку, но зовут друзей
    if(actor.getNpcId() == 18367)
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.