Examples of addDamageHate()


Examples of com.l2jfrozen.gameserver.model.L2Attackable.addDamageHate()

      return;

    if (target != null) {
      // Add the target to the actor _aggroList or update hate if already
      // present
      me.addDamageHate(target, 0, aggro);

      // Set the actor AI Intention to AI_INTENTION_ATTACK
      if (getIntention() != CtrlIntention.AI_INTENTION_ATTACK) {
        // Set the L2Character movement type to run and send
        // Server->Client packet ChangeMoveType to all others
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Attackable.addDamageHate()

          int hating = npc.getHating(target);

          // Add the attacker to the L2Attackable _aggroList with 0 damage and 1 hate
          if(hating == 0)
          {
            npc.addDamageHate(target, 0, 1);
          }
        }
      }

      // Chose a target from its aggroList
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Attackable.addDamageHate()

    L2Attackable me = (L2Attackable) _actor;

    if(target != null)
    {
      // Add the target to the actor _aggroList or update hate if already present
      me.addDamageHate(target, 0, aggro);

      // Get the hate of the actor against the target
      aggro = me.getHating(target);

      if(aggro <= 0)
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Attackable.addDamageHate()

        return;
      }
     
      for(L2Character aggroed : me.getAggroListRP().keySet())
      {
        me.addDamageHate(aggroed, 0, aggro);
      }

      aggro = me.getHating(mostHated);
      if(aggro <= 0)
      {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2ChestInstance.addDamageHate()

        {
          activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 13));
          if (Rnd.get(100) < chestTrapLimit)
            chest.chestTrap(activeChar);
          chest.setInteracted();
          chest.addDamageHate(activeChar, 0, 1);
          chest.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, activeChar);
        }
        chest = null;
      }
      target = null;
View Full Code Here

Examples of l2p.gameserver.model.L2Character.addDamageHate()

        // Выбираем случайную цель
        L2Character hated = actor.getRandomHated();
        if(hated != null)
        // Делаем необходимые приготовления, для атаки в конце движения
        {
          hated.addDamageHate(guard, 0, Rnd.get(1, 100));
        } // Это нужно, чтобы гвард не перестал атаковать цель после первых ударов
        guard.setAttackTimeout(getMaxAttackTimeout() + System.currentTimeMillis()); // Это нужно, чтобы не сработал таймаут
        guard.getAI().setAttackTarget(hated); // На всякий случай, не обязательно делать
        guard.getAI().changeIntention(CtrlIntention.AI_INTENTION_ATTACK, hated, null); // Переводим в состояние атаки
        guard.getAI().addTaskAttack(hated); // Добавляем отложенное задание атаки, сработает в самом конце движения
View Full Code Here

Examples of l2p.gameserver.model.L2Player.addDamageHate()

    else if(event.equalsIgnoreCase("32595-04.htm"))
    {
      monster = st.addSpawn(SHILENSEVIL, 152520, -57685, -3438, 60000);
      Functions.npcSay(monster, "You are not the owner of that item!");
      monster.setRunning();
      player.addDamageHate(monster, 0, 999);
      monster.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
    }
    else if(event.equalsIgnoreCase("32595-08.htm"))
    {
      st.playSound(SOUND_MIDDLE);
View Full Code Here

Examples of l2p.gameserver.model.L2Player.addDamageHate()

          HateInfo hateInfo = playable.getHateList().get(npc);
          if(hateInfo == null || hateInfo.hate <= 0)
          {
            continue;
          }
          player_target.addDamageHate(npc, 0, hateInfo.hate + 100);
          hateInfo.hate = 0;
        }
      }
    }
    if(isSSPossible())
View Full Code Here

Examples of l2p.gameserver.model.L2Player.addDamageHate()

    else if(event.equalsIgnoreCase("32597-05.htm"))
    {
      monster1 = Quest.addSpawnToInstance(SHILENSEVIL1, new Location(-23768, -8968, -5412), 0, player.getReflection().getId());
      Functions.npcSay(monster1, "You are not the owner of that item!");
      monster1.setRunning();
      player.addDamageHate(monster1, 0, 999);
      monster1.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
      int SHILENSEVIL2 = 27343;
      monster2 = Quest.addSpawnToInstance(SHILENSEVIL2, new Location(-23768, -9080, -5413), 0, player.getReflection().getId());
      monster2.setRunning();
      player.addDamageHate(monster2, 0, 999);
View Full Code Here

Examples of l2p.gameserver.model.L2Player.addDamageHate()

      player.addDamageHate(monster1, 0, 999);
      monster1.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
      int SHILENSEVIL2 = 27343;
      monster2 = Quest.addSpawnToInstance(SHILENSEVIL2, new Location(-23768, -9080, -5413), 0, player.getReflection().getId());
      monster2.setRunning();
      player.addDamageHate(monster2, 0, 999);
      monster2.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
      monster3 = Quest.addSpawnToInstance(SHILENSEVIL2, new Location(-23768, -8824, -5413), 0, player.getReflection().getId());
      monster3.setRunning();
      player.addDamageHate(monster3, 0, 999);
      monster3.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
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.