Package net.sf.l2j.gameserver.serverpackets

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


        ptarget.sendMessage("Congratulations you are married!");
        ptarget.setMarried(true);
        ptarget.setMaryRequest(false);

        //wedding march
        MagicSkillUser MSU = new MagicSkillUser(player, player, 2230, 1, 1, 0);
        player.broadcastPacket(MSU);
        MSU = new MagicSkillUser(ptarget, ptarget, 2230, 1, 1, 0);
        ptarget.broadcastPacket(MSU);

        // fireworks
        L2Skill skill = SkillTable.getInstance().getInfo(2025,1);
        if (skill != null)
        {
            MSU = new MagicSkillUser(player, player, 2025, 1, 1, 0);
            player.sendPacket(MSU);
            player.broadcastPacket(MSU);
            player.useMagic(skill, false, false);

            MSU = new MagicSkillUser(ptarget, ptarget, 2025, 1, 1, 0);
            ptarget.sendPacket(MSU);
            ptarget.broadcastPacket(MSU);
            ptarget.useMagic(skill, false, false);

        }
View Full Code Here


            L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
            if (player.getFirstEffect(skill) == null)
            {
                skill.getEffects(_caster, player);
                broadcastPacket(new MagicSkillUser(_caster, player, skill.getId(), skillLevel, skill.getHitTime(), 0));
                SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
                sm.addSkillName(skillId);
                player.sendPacket(sm);
                return true;
            }
View Full Code Here

            if (player.getFirstEffect(skill) == null)
            {
                setTarget(player);
                doCast(skill);

                MagicSkillUser msu = new MagicSkillUser(_caster, player, skill.getId(), 1, skill.getHitTime(), 0);
                broadcastPacket(msu);

                return true;
            }
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.