Examples of addDamageHate()


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

      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);
    }
    else if(event.equalsIgnoreCase("exit"))
    {
      r.startCollapseTimer(1000);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Attackable.addDamageHate()

                {
                    // Get the hate level of the L2Attackable against this L2Character target contained in _aggroList
                    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
            L2Character hated;
View Full Code Here

Examples of net.sf.l2j.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 net.sf.l2j.gameserver.model.L2Attackable.addDamageHate()

            _globalAggro = -25;
            return;
          }
         
      for(L2Character aggroed : me.getAggroListRP().keySet())
        me.addDamageHate(aggroed, 0, aggro);

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

Examples of net.sf.l2j.gameserver.model.L2Attackable.addDamageHate()

                {
                    // Get the hate level of the L2Attackable against this L2Character target contained in _aggroList
                    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
            L2Character hated;
View Full Code Here

Examples of net.sf.l2j.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);

            // 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 L2PcInstance
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2ChestInstance.addDamageHate()

        else
        {
            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);
        }
      }
    }
  }
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.