Package net.sf.l2j.gameserver.model.actor.instance

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


   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.