Examples of addDamageHate()


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

        for(int i = 0; i < 20; i++)
        {
          L2Attackable newNpc = (L2Attackable) addSpawn(27189, npc.getX(), npc.getY(), npc.getZ(), 0, false, 30000);
          L2Character originalKiller = isPet ? killer.getPet() : killer;
          newNpc.setRunning();
          newNpc.addDamageHate(originalKiller, 0, 999);
          newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, originalKiller);
          if(Rnd.nextBoolean())
          {
            if (originalKiller != null)
            {
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.L2Attackable.addDamageHate()

          }
          npc.onDecay();
          L2Attackable newNpc = (L2Attackable) this.addSpawn(monster.getIdPoly(), npc);
          L2Character originalAttacker = isPet ? attacker.getPet() : attacker;
          newNpc.setRunning();
          newNpc.addDamageHate(originalAttacker, 0, 999);
          newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, originalAttacker);
         
          // NPC Spawn Effect L2OFF
          NPCSpawnTask spawnEffectTask = new NPCSpawnTask(newNpc, 4000, 800000);
          Thread effectThread = new Thread(spawnEffectTask);
View Full Code Here

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

          npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(), Message[Rnd.get(monster.getMessage())]));
        }
        L2Attackable newNpc = (L2Attackable) this.addSpawn(monster.getIdPoly(), npc);
        L2Character originalAttacker = isPet ? killer.getPet() : killer;
        newNpc.setRunning();
        newNpc.addDamageHate(originalAttacker, 0, 999);
        newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, originalAttacker);
      }
    }
    return super.onKill(npc, killer, isPet);
  }
View Full Code Here

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

              Integer[] minions = MINIONS.get(npcId);
              for(Integer minion : minions)
              {
                L2Attackable newNpc = (L2Attackable) this.addSpawn(minion, (npc.getX() + Rnd.get(-150, 150)), (npc.getY() + Rnd.get(-150, 150)), npc.getZ(), 0, false, 0);
                newNpc.setRunning();
                newNpc.addDamageHate(attacker, 0, 999);
                newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, attacker);
              }
              minions = null;
            }
          }
View Full Code Here

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

            Integer[] minions = MINIONS.get(npcId);
            for(Integer minion : minions)
            {
              L2Attackable newNpc = (L2Attackable) addSpawn(minion, npc.getX() + Rnd.get(-150, 150), npc.getY() + Rnd.get(-150, 150), npc.getZ(), 0, false, 0);
              newNpc.setRunning();
              newNpc.addDamageHate(attacker, 0, 999);
              newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, attacker);
            }
            minions = null;
          }
        }
View Full Code Here

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

          {
            for(Integer minion : minions)
            {
              L2Attackable newNpc = (L2Attackable) this.addSpawn(minion, npc.getX() + Rnd.get(-150, 150), npc.getY() + Rnd.get(-150, 150), npc.getZ(), 0, false, 0);
              newNpc.setRunning();
              newNpc.addDamageHate(attacker, 0, 999);
              newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, attacker);
            }
          }
          else
          {
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);
          }
        }

        target = null;
      }
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.