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

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


            if (skill.isOffensive())
            {
              if ((player instanceof L2PcInstance) || (player instanceof L2Summon))
              {
                player.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
                activeChar.updatePvPStatus(player);
              }
              else if (player instanceof L2Attackable)
              {
                // notify the AI that she is attacked
                player.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
View Full Code Here


              if (player instanceof L2PcInstance)
              {
                // Casting non offensive skill on player with pvp flag set or with karma
                if (!player.equals(this) && ((((L2PcInstance) player).getPvpFlag() > 0) || (((L2PcInstance) player).getKarma() > 0)))
                {
                  activeChar.updatePvPStatus();
                }
              }
              else if ((player instanceof L2Attackable) && !(skill.getSkillType() == L2Skill.SkillType.SUMMON) && !(skill.getSkillType() == L2Skill.SkillType.BEAST_FEED) && !(skill.getSkillType() == L2Skill.SkillType.UNLOCK) && !(skill.getSkillType() == L2Skill.SkillType.DELUXE_KEY_UNLOCK))
              {
                activeChar.updatePvPStatus();
View Full Code Here

                  activeChar.updatePvPStatus();
                }
              }
              else if ((player instanceof L2Attackable) && !(skill.getSkillType() == L2Skill.SkillType.SUMMON) && !(skill.getSkillType() == L2Skill.SkillType.BEAST_FEED) && !(skill.getSkillType() == L2Skill.SkillType.UNLOCK) && !(skill.getSkillType() == L2Skill.SkillType.DELUXE_KEY_UNLOCK))
              {
                activeChar.updatePvPStatus();
              }
            }
          }
        }
      }
View Full Code Here

      player = ((L2Summon) this).getOwner();
    }
   
    if (player != null)
    {
      player.updatePvPStatus(target);
    }
   
    // Check if hit isn't missed
    if (!hitted)
    {
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.