Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.MagicSkillUser


    L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLevel);

    if (player.getFirstEffect(skill) == null)
    {
      skill.getEffects(this, player);
      broadcastPacket(new MagicSkillUser(this, player, skill.getId(), skillLevel,
                        skill.getHitTime(), 0));
      return true;
    }
    return false;
  }
View Full Code Here


            _lastNpcSpawn.setCurrentHp(_lastNpcSpawn.getMaxHp());
            _lastNpcSpawn.setTitle("TvT Event Participation");
            _lastNpcSpawn.isAggressive();
            _lastNpcSpawn.decayMe();
            _lastNpcSpawn.spawnMe(_npcSpawn.getLastSpawn().getX(), _npcSpawn.getLastSpawn().getY(), _npcSpawn.getLastSpawn().getZ());
            _lastNpcSpawn.broadcastPacket(new MagicSkillUser(_lastNpcSpawn, _lastNpcSpawn, 1034, 1, 1, 1));
        }
        catch (Exception e)
        {
            System.out.println("TvTEventEngine[TvTEvent.startParticipation()]: exception: " + e);
            return false;
View Full Code Here

      activeChar.getAppearance().setHairStyle(6);
      break;
    }

        // Create a summon effect!
        MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2003, 1, 1, 0);
        activeChar.broadcastPacket(MSU);

    // Update the changed stat for the character in the DB.
    activeChar.store();
View Full Code Here

        if (!(obj instanceof L2Character))
          activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        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

        // 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*/);
  }
 
View Full Code Here

        // Charge Spiritshot
    weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_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*/);
  }
 
View Full Code Here

        if (!petSummon.isRespawned())
          petSummon.store();

            activeChar.setPet(petSummon);

        activeChar.sendPacket(new MagicSkillUser(activeChar, 2046, 1, 1000, 600000));
        activeChar.sendPacket(new SystemMessage(SystemMessageId.SUMMON_A_PET));
            L2World.getInstance().storeObject(petSummon);
        petSummon.spawnMe(activeChar.getX()+50, activeChar.getY()+100, activeChar.getZ());
            activeChar.sendPacket(new PetInfo(petSummon));
        petSummon.startFeed(false);
View Full Code Here

    if (!(playable instanceof L2PcInstance))
      return;
    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

        /*
         * 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);
            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);
            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);
            useFw(activeChar, 2025, 1);
            playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
        }
View Full Code Here

                return;
            }

            if (_effect.getLevel() < 2)
            {
                MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, _skill.getId(), 1, 1, 0);
                activeChar.sendPacket(MSU);
                activeChar.broadcastPacket(MSU);
                _effect.addNumCharges(1);
                activeChar.sendPacket(new EtcStatusUpdate(activeChar));
                activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.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.