Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser


    }
    int unstuckTimer = (Config.UNSTUCK_INTERVAL*1000 );
    player.setTarget(player);
    player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    player.disableAllSkills();
    MagicSkillUser msk = new MagicSkillUser(player, 361, 1, unstuckTimer, 0);
    Broadcast.toSelfAndKnownPlayersInRadius(player, msk, 810000);
    SetupGauge sg = new SetupGauge(0, unstuckTimer);
    player.sendPacket(sg);

    RaidbossLevel70 ef = new RaidbossLevel70(player);
View Full Code Here


          e.exit(true);
          break;
        }
      }
      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
    {
      L2Effect[] effects = activeChar.getAllEffects();
      for(L2Effect e : effects)
      {
        if(e.getSkill().getSkillType() == L2Skill.SkillType.POISON && e.getSkill().getLevel() <= 7)
        {
          e.exit(true);
          break;
        }
      }
      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
    {
      L2Effect[] effects = activeChar.getAllEffects();
      for(L2Effect e : effects)
      {
        if(e.getSkill().getSkillType() == L2Skill.SkillType.BLEED && e.getSkill().getLevel() <= 3)
        {
          e.exit(true);
          break;
        }
      }
      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
    {
      L2Effect[] effects = activeChar.getAllEffects();
      for(L2Effect e : effects)
      {
        if(e.getSkill().getSkillType() == L2Skill.SkillType.BLEED && e.getSkill().getLevel() <= 7)
        {
          e.exit(true);
          break;
        }
      }
      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
    {
      L2Effect[] effects = activeChar.getAllEffects();
      for(L2Effect e : effects)
      {
        if(e.getSkill().getId() == 4082)
        {
          e.exit(true);
        }
      }

      effects = null;
      activeChar.setIsImobilised(false);

      if(activeChar.getFirstEffect(L2Effect.EffectType.ROOT) == null)
      {
        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);
    }
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
      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.INCOMPATIBLE_ITEM_GRADE));
      }
      return;
    }
    else if(itemId == 5703 || itemId >= 5803 && itemId <= 5807)
    {
      if(itemId == 5703 && activeChar.getExpertiseIndex() == 0 || // Lucky Charm (No Grade)
      itemId == 5803 && activeChar.getExpertiseIndex() == 1 || // Lucky Charm (D Grade)
      itemId == 5804 && activeChar.getExpertiseIndex() == 2 || // Lucky Charm (C Grade)
      itemId == 5805 && activeChar.getExpertiseIndex() == 3 || // Lucky Charm (B Grade)
      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));
      }
      return;
    }
    else if(itemId >= 8515 && itemId <= 8520) // Charm of Courage XML: 5041
    {
      if(itemId == 8515 && activeChar.getExpertiseIndex() == 0 || // Charm of Courage (No Grade)
      itemId == 8516 && activeChar.getExpertiseIndex() == 1 || // Charm of Courage (D Grade)
      itemId == 8517 && activeChar.getExpertiseIndex() == 2 || // Charm of Courage (C Grade)
      itemId == 8518 && activeChar.getExpertiseIndex() == 3 || // Charm of Courage (B Grade)
      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));
      }
      return;
    }
    else if(itemId >= 8954 && itemId <= 8956)
    {
      if(activeChar.getLevel() < 76)
        return;

      if(!playable.destroyItem("Consume", item.getObjectId(), 1, null, false))
        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));
          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;
      }
      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);
        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);
        break;
      case 3930: // Scroll of Haste XML:2054
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2054, 1, 1, 0));
        useScroll(activeChar, 2054, 1);
        break;
      case 3931: // Scroll of Agility XML:2055
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2055, 1, 1, 0));
        useScroll(activeChar, 2055, 1);
        break;
      case 3932: // Scroll of Mystic Enpower XML:2056
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2056, 1, 1, 0));
        useScroll(activeChar, 2056, 1);
        break;
      case 3933: // Scroll of Might XML:2057
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2057, 1, 1, 0));
        useScroll(activeChar, 2057, 1);
        break;
      case 3934: // Scroll of Wind Walk XML:2058
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2058, 1, 1, 0));
        useScroll(activeChar, 2058, 1);
        break;
      case 3935: // Scroll of Shield XML:2059
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2059, 1, 1, 0));
        useScroll(activeChar, 2059, 1);
        break;
      case 4218: // Scroll of Mana Regeneration XML:2064
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2064, 1, 1, 0));
        useScroll(activeChar, 2064, 1);
        break;
      case 5593: // SP Scroll Low Grade XML:2167
        activeChar.sendPacket(new MagicSkillUser(playable, playable, 2167, 1, 1, 0));
        activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2167, 1, 1, 0));
        activeChar.addExpAndSp(0, 500);
        break;
      case 5594: // SP Scroll Medium Grade XML:2167
        activeChar.sendPacket(new MagicSkillUser(playable, playable, 2167, 1, 1, 0));
        activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2167, 1, 1, 0));
        activeChar.addExpAndSp(0, 5000);
        break;
      case 5595: // SP Scroll High Grade XML:2167
        activeChar.sendPacket(new MagicSkillUser(playable, playable, 2167, 1, 1, 0));
        activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2167, 1, 1, 0));
        activeChar.addExpAndSp(0, 100000);
        break;
      case 6037: // Scroll of Waking XML:2170
        //activeChar.broadcastPacket(new MagicSkillUser(playable, playable, 2170, 1, 1, 0));
        useScroll(activeChar, 2170, 1);
        break;
      case 9146: // Scroll of Guidance - For Event XML:2050
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2050, 1, 1, 0));
        useScroll(activeChar, 2050, 1);
        break;
      case 9147: // Scroll of Death Whipser - For Event XML:2051
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2051, 1, 1, 0));
        useScroll(activeChar, 2051, 1);
        break;
      case 9148: // Scroll of Focus - For Event XML:2052
        activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2052, 1, 1, 0));
        useScroll(activeChar, 2052, 1);
        break;
      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);
        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);
        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);
        break;
      default:
        break;
    }
View Full Code Here

    /*
     * Elven Firecracker
     */
    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);
    }
    /*
     * Firework
     */
    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);
    }
    /*
     * Lage Firework
     */
    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

        //Wind Walk Buff for Both
        L2Skill skill;
        SystemMessage sm;
        skill = SkillTable.getInstance().getInfo(1204, 2);
        skill.getEffects(player, player);
        player.broadcastPacket(new MagicSkillUser(player, player, skill.getId(), 2, skill.getHitTime(), 0));
        sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
        sm.addSkillName(1204);
        player.sendPacket(sm);
        if (!player.isMageClass())
        {
          //Haste Buff to Fighters
          skill = SkillTable.getInstance().getInfo(1086, 1);
          skill.getEffects(player, player);
          player.broadcastPacket(new MagicSkillUser(player, player, skill.getId(), 1, skill.getHitTime(), 0));
          sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
          sm.addSkillName(1086);
          player.sendPacket(sm);
        }
        else
        {
          //Acumen Buff to Mages
          skill = SkillTable.getInstance().getInfo(1085, 1);
          skill.getEffects(player, player);
          player.broadcastPacket(new MagicSkillUser(player, player, skill.getId(), 1, skill.getHitTime(), 0));
          sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
          sm.addSkillName(1085);
          player.sendPacket(sm);
        }
      }
View Full Code Here

        _throneSpawns.get(index).init();
        _throneSpawns.get(index).getLastSpawn().getStatus().setCurrentHp(999999999);
        _throneSpawns.get(index).getLastSpawn().decayMe();
        _throneSpawns.get(index).getLastSpawn().spawnMe(_throneSpawns.get(index).getLastSpawn().getX(), _throneSpawns.get(index).getLastSpawn().getY(), _throneSpawns.get(index).getLastSpawn().getZ());
        _throneSpawns.get(index).getLastSpawn().setTitle(team+" Throne");
        _throneSpawns.get(index).getLastSpawn().broadcastPacket(new MagicSkillUser(_throneSpawns.get(index).getLastSpawn(), _throneSpawns.get(index).getLastSpawn(), 1036, 1, 5500, 1));
        _throneSpawns.get(index).getLastSpawn()._isCTF_throneSpawn=true;
        // Spawn flag
        _flagSpawns.set(index, new L2Spawn(tmpl));
        _flagSpawns.get(index).setLocx(_flagsX.get(index));
        _flagSpawns.get(index).setLocy(_flagsY.get(index));
View Full Code Here

    // Charge Blessed Spiritshot
    weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT);

    // Send message to client
    activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SPIRITSHOT));
    Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);

    activeChar = null;
    weaponInst = null;
    weaponItem = null;
  }
View Full Code Here

        }
        else
        {
          L2Character target = (L2Character) obj;

          target.broadcastPacket(new MagicSkillUser(target, activeChar, skill, level, hittime, 0));
          activeChar.sendMessage(obj.getName() + " performs MSU " + skill + "/" + level + " by your request.");

        }
      }
      catch(Exception e)
View Full Code Here

    L2PcInstance activeChar = (L2PcInstance) playable;
    int itemId = item.getItemId();

    if(itemId == 5562)
    { //crystal_carol_01
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2140, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_01");
    }
    else if(itemId == 5563)
    { //crystal_carol_02
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2141, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_02");
    }
    else if(itemId == 5564)
    { //crystal_carol_03
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2142, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_03");
    }
    else if(itemId == 5565)
    { //crystal_carol_04
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2143, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_04");
    }
    else if(itemId == 5566)
    { //crystal_carol_05
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2144, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_05");
    }
    else if(itemId == 5583)
    { //crystal_carol_06
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2145, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_06");
    }
    else if(itemId == 5584)
    { //crystal_carol_07
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2146, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_07");
    }
    else if(itemId == 5585)
    { //crystal_carol_08
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2147, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_08");
    }
    else if(itemId == 5586)
    { //crystal_carol_09
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2148, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_09");
    }
    else if(itemId == 5587)
    { //crystal_carol_10
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2149, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_carol_10");
    }
    else if(itemId == 4411)
    { //crystal_journey
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2069, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_journey");
    }
    else if(itemId == 4412)
    { //crystal_battle
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2068, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_battle");
    }
    else if(itemId == 4413)
    { //crystal_love
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2070, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_love");
    }
    else if(itemId == 4414)
    { //crystal_solitude
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2072, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_solitude");
    }
    else if(itemId == 4415)
    { //crystal_festival
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2071, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_festival");
    }
    else if(itemId == 4416)
    { //crystal_celebration
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2073, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_celebration");
    }
    else if(itemId == 4417)
    { //crystal_comedy
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2067, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_comedy");
    }
    else if(itemId == 5010)
    { //crystal_victory
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2066, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_victory");
    }
    else if(itemId == 6903)
    { //music_box_m
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2187, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"EtcSound.battle");
    }
    else if(itemId == 7061)
    { //crystal_birthday
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2073, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound2.crystal_celebration");
    }
    else if(itemId == 7062)
    { //crystal_wedding
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2230, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"SkillSound5.wedding");
    }
    else if(itemId == 8555)
    { //VVKorea
      MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2272, 1, 1, 0);
      activeChar.broadcastPacket(MSU);
      //playCrystalSound(activeChar,"EtcSound.VVKorea");
    }
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
View Full Code Here

      activeChar.soulShotLock.unlock();
    }

    // Send message to client
    activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SOULSHOT));
    Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);

    activeChar = null;
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser

Copyright © 2018 www.massapicom. 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.