Examples of reduceCurrentHp()


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

        {
          activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(),3));
            chest.setSpecialDrop();
            chest.setMustRewardExpSp(false);
            chest.setInteracted();
            chest.reduceCurrentHp(99999999, activeChar);
        }
        else
        {
            activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(),13));
            if (Rnd.get(100) < chestTrapLimit) chest.chestTrap(activeChar);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceCurrentHp()

                    {
                       L2PcInstance player = (L2PcInstance)target;
                    if (!player.isInvul())
                    {
                      player.setCurrentCp(1); // Set CP to 1
                               player.reduceCurrentHp(damage, activeChar);
                    }
                   }
                    else if (target instanceof L2MonsterInstance) // If is a monster remove first damage and after 50% of current hp
                    {
                     target.reduceCurrentHp(damage, activeChar);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceCurrentHp()

   void killTeam(L2PcInstance activeChar, int team){
       LinkedList<String> linked = L2Event.players.get(team);
       Iterator<String> it = linked.iterator();
       while(it.hasNext()){
           try{L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
           target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar);}catch(Exception e){}
       }

   }
   void resTeam(int team){
       LinkedList<String> linked = L2Event.players.get(team);
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.