Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()


        // send packets
        InventoryUpdate iu = new InventoryUpdate();
        iu.addModifiedItem(itemInstance);
        player.sendPacket(iu);
        player.broadcastPacket(new CharInfo(player));
        player.sendPacket(new UserInfo(player));

        iu = null;

        // informations
View Full Code Here


        }
      }
      effects = null;
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2042, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    else if(itemId == 1832) // advanced antidote
    {
View Full Code Here

        }
      }
      effects = null;
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2043, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    else if(itemId == 1833) // bandage
    {
View Full Code Here

        }
      }
      effects = null;
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 34, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    else if(itemId == 1834) // emergency dressing
    {
View Full Code Here

        }
      }
      effects = null;
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2045, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    else if(itemId == 3889) // potion of recovery
    {
View Full Code Here

        activeChar.stopRooting(null);
      }

      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2042, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }

    activeChar = null;
View Full Code Here

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

      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
      {
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

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.