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

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


                 (itemId == 8598 && activeChar.getExpertiseIndex()==4) || // Scroll: Recovery (A Grade)
                 (itemId == 8599 && activeChar.getExpertiseIndex()==5))   // Scroll: Recovery (S Grade)
            {
        if (!playable.destroyItem("Consume", item.getObjectId(), 1, null, false))
          return;
        activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2286, 1, 1, 0));
        activeChar.reduceDeathPenaltyBuffLevel();
        useScroll(activeChar, 2286, itemId - 8593);
            }
         else
           activeChar.sendPacket(new SystemMessage(SystemMessageId.INCOMPATIBLE_ITEM_GRADE));
View Full Code Here


          (itemId == 5806 && activeChar.getExpertiseIndex()==4) || // Lucky Charm (A Grade)
          (itemId == 5807 && activeChar.getExpertiseIndex()==5))   // Lucky Charm (S Grade)
      {
        if (!playable.destroyItem("Consume", item.getObjectId(), 1, null, false))
          return;
        activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2168, activeChar.getExpertiseIndex()+1, 1, 0));
        useScroll(activeChar, 2168, activeChar.getExpertiseIndex()+1);
        activeChar.setCharmOfLuck(true);
      }
      else
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCOMPATIBLE_ITEM_GRADE));
View Full Code Here

                 (itemId == 8519 && activeChar.getExpertiseIndex()==4) || // Charm of Courage (A Grade)
                 (itemId == 8520 && activeChar.getExpertiseIndex()==5))   // Charm of Courage (S Grade)
             {
           if (!playable.destroyItem("Consume", item.getObjectId(), 1, null, false))
             return;
             activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 5041, 1, 1, 0));
              useScroll(activeChar, 5041, 1);
              activeChar.setCharmOfCourage(true);
             }
         else
           activeChar.sendPacket(new SystemMessage(SystemMessageId.INCOMPATIBLE_ITEM_GRADE));
View Full Code Here

        return;
         switch(itemId)
      {
        case 8954: // Blue Primeval Crystal XML: 2306
          activeChar.sendPacket(new MagicSkillUser(playable, playable, 2306, 1, 1, 0));
          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 1, 1, 0));
          activeChar.addExpAndSp(0, 50000);
          break;
        case 8955: // Green Primeval Crystal XML: 2306
          activeChar.sendPacket(new MagicSkillUser(playable, playable, 2306, 2, 1, 0));
          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 2, 1, 0));
View Full Code Here

          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 1, 1, 0));
          activeChar.addExpAndSp(0, 50000);
          break;
        case 8955: // Green Primeval Crystal XML: 2306
          activeChar.sendPacket(new MagicSkillUser(playable, playable, 2306, 2, 1, 0));
          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 2, 1, 0));
          activeChar.addExpAndSp(0, 100000);
          break;
        case 8956: // Red Primeval Crystal XML: 2306
          activeChar.sendPacket(new MagicSkillUser(playable, playable, 2306, 3, 1, 0));
          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 3, 1, 0));
View Full Code Here

          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 2, 1, 0));
          activeChar.addExpAndSp(0, 100000);
          break;
        case 8956: // Red Primeval Crystal XML: 2306
          activeChar.sendPacket(new MagicSkillUser(playable, playable, 2306, 3, 1, 0));
          activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2306, 3, 1, 0));
          activeChar.addExpAndSp(0, 200000);
          break;
        default:
          break;
      }
View Full Code Here

      return;

    switch(itemId)
    {
      case 3926: // Scroll of Guidance XML:2050
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2050, 1, 1, 0));
             useScroll(activeChar, 2050, 1);
             break;
           case 3927: // Scroll of Death Whipser XML:2051
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2051, 1, 1, 0));
             useScroll(activeChar, 2051, 1);
View Full Code Here

      case 3926: // Scroll of Guidance XML:2050
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2050, 1, 1, 0));
             useScroll(activeChar, 2050, 1);
             break;
           case 3927: // Scroll of Death Whipser XML:2051
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2051, 1, 1, 0));
             useScroll(activeChar, 2051, 1);
             break;
           case 3928: // Scroll of Focus XML:2052
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2052, 1, 1, 0));
             useScroll(activeChar, 2052, 1);
View Full Code Here

           case 3927: // Scroll of Death Whipser XML:2051
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2051, 1, 1, 0));
             useScroll(activeChar, 2051, 1);
             break;
           case 3928: // Scroll of Focus XML:2052
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2052, 1, 1, 0));
             useScroll(activeChar, 2052, 1);
             break;
           case 3929: // Scroll of Greater Acumen XML:2053
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2053, 1, 1, 0));
             useScroll(activeChar, 2053, 1);
View Full Code Here

           case 3928: // Scroll of Focus XML:2052
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2052, 1, 1, 0));
             useScroll(activeChar, 2052, 1);
             break;
           case 3929: // Scroll of Greater Acumen XML:2053
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2053, 1, 1, 0));
             useScroll(activeChar, 2053, 1);
             break;
           case 3930: // Scroll of Haste XML:2054
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2054, 1, 1, 0));
             useScroll(activeChar, 2054, 1);
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.