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

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


      case 9149: // Scroll of Acumen - For Event XML:2053
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2053, 1, 1, 0));
        useScroll(activeChar, 2053, 1);
        break;
      case 9150: // Scroll of Haste - For Event XML:2054
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2054, 1, 1, 0));
        useScroll(activeChar, 2054, 1);
        break;
      case 9151: // Scroll of Agility - For Event XML:2055
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2055, 1, 1, 0));
        useScroll(activeChar, 2055, 1);
View Full Code Here


      case 9150: // Scroll of Haste - For Event XML:2054
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2054, 1, 1, 0));
        useScroll(activeChar, 2054, 1);
        break;
      case 9151: // Scroll of Agility - For Event XML:2055
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2055, 1, 1, 0));
        useScroll(activeChar, 2055, 1);
        break;
      case 9152: // Scroll of Enpower - For Event XML:2056
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2056, 1, 1, 0));
        useScroll(activeChar, 2056, 1);
View Full Code Here

      case 9151: // Scroll of Agility - For Event XML:2055
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2055, 1, 1, 0));
        useScroll(activeChar, 2055, 1);
        break;
      case 9152: // Scroll of Enpower - For Event XML:2056
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2056, 1, 1, 0));
        useScroll(activeChar, 2056, 1);
        break;
      case 9153: // Scroll of Might - For Event XML:2057
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2057, 1, 1, 0));
        useScroll(activeChar, 2057, 1);
View Full Code Here

      case 9152: // Scroll of Enpower - For Event XML:2056
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2056, 1, 1, 0));
        useScroll(activeChar, 2056, 1);
        break;
      case 9153: // Scroll of Might - For Event XML:2057
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2057, 1, 1, 0));
        useScroll(activeChar, 2057, 1);
        break;
      case 9154: // Scroll of Wind Walk - For Event XML:2058
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2058, 1, 1, 0));
        useScroll(activeChar, 2058, 1);
View Full Code Here

      case 9153: // Scroll of Might - For Event XML:2057
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2057, 1, 1, 0));
        useScroll(activeChar, 2057, 1);
        break;
      case 9154: // Scroll of Wind Walk - For Event XML:2058
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2058, 1, 1, 0));
        useScroll(activeChar, 2058, 1);
        break;
      case 9155: // Scroll of Shield - For Event XML:2059
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2059, 1, 1, 0));
        useScroll(activeChar, 2059, 1);
View Full Code Here

      case 9154: // Scroll of Wind Walk - For Event XML:2058
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2058, 1, 1, 0));
        useScroll(activeChar, 2058, 1);
        break;
      case 9155: // Scroll of Shield - For Event XML:2059
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2059, 1, 1, 0));
        useScroll(activeChar, 2059, 1);
        break;
      default:
        break;
    }
View Full Code Here

     */
    if(itemId == 6403) // elven_firecracker, xml: 2023
    {
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2023, 1, 1, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      useFw(activeChar, 2023, 1);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    /*
 
View Full Code Here

     */
    else if(itemId == 6406) // firework, xml: 2024
    {
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2024, 1, 1, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      useFw(activeChar, 2024, 1);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    /*
 
View Full Code Here

     */
    else if(itemId == 6407) // large_firework, xml: 2025
    {
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2025, 1, 1, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      MSU = null;
      useFw(activeChar, 2025, 1);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }

View Full Code Here

        if (!activeChar.disarmWeapons())
          return;
       
        Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, sitem.getNpcId());
        activeChar.sendPacket(mount);
        activeChar.broadcastPacket(mount);
        activeChar.setMountType(mount.getMountType());
        activeChar.setMountObjectID(item.getObjectId());
    }
   
    activeChar = null;
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.