Package net.sf.l2j.gameserver.serverpackets

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


        activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
        //SoE Animation section
        activeChar.setTarget(activeChar);
        activeChar.disableAllSkills();

        MagicSkillUser msk = new MagicSkillUser(activeChar, 1050, 1, unstuckTimer, 0);
        Broadcast.toSelfAndKnownPlayersInRadius(activeChar, msk, 810000/*900*/);
        SetupGauge sg = new SetupGauge(0, unstuckTimer);
        activeChar.sendPacket(sg);
        //End SoE Animation section

View Full Code Here


          _delay = (int) (Config.ALT_GAME_CREATION_SPEED * _player.getMReuseRate(_skill)
              * GameTimeController.TICKS_PER_SECOND / Config.RATE_CONSUMABLE_COST)
              * GameTimeController.MILLIS_IN_TICK;

          // FIXME: please fix this packet to show crafting animation (somebody)
          MagicSkillUser msk = new MagicSkillUser(_player, _skillId, _skillLevel, _delay, 0);
          _player.broadcastPacket(msk);

          _player.sendPacket(new SetupGauge(0, _delay));
          ThreadPoolManager.getInstance().scheduleGeneral(this, 100 + _delay);
        }
View Full Code Here

          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);
                }
          } catch (Exception e) { }
View Full Code Here

                                else
                                {
                                    skill.useSkill(_owner, targets);
                                }

                                MagicSkillUser msu = new MagicSkillUser(_owner, _target, skill.getId(),
                                                                        _level, 0, 0);
                                _owner.broadcastPacket(msu);
                            }
                        }
                    }
View Full Code Here

                            }
                            else
                            {
                                skill.useSkill(_owner, targets);
                            }
                            MagicSkillUser msu = new MagicSkillUser(_owner, target, skill.getId(),
                                                                    _level, 0, 0);
                            _owner.broadcastPacket(msu);
                        }
                    }
                }
View Full Code Here

            spawn.getLastSpawn().decayMe();
            spawn.getLastSpawn().spawnMe(spawn.getLastSpawn().getX(), spawn.getLastSpawn().getY(),
                                         spawn.getLastSpawn().getZ());

            spawn.getLastSpawn().broadcastPacket(
                                                 new MagicSkillUser(spawn.getLastSpawn(),
                                                                    spawn.getLastSpawn(), 1034, 1, 1, 1));

            npcs.add(String.valueOf(spawn.getLastSpawn().getObjectId()));

        }
View Full Code Here

      activeChar.sendMessage("Incorrect command arguments.");
  }

  private void doAnimation(L2PcInstance activeChar)
  {
    Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, 1008, 1, 4000, 0), 2250000/*1500*/);
    activeChar.sendPacket(new SetupGauge(0, 4000));
  }
View Full Code Here

      obj.getPoly().setPolyInfo(type, id);
      //animation
      if(obj instanceof L2Character)
      {
        L2Character Char = (L2Character) obj;
        MagicSkillUser msk = new MagicSkillUser(Char, 1008, 1, 4000, 0);
        Char.broadcastPacket(msk);
        SetupGauge sg = new SetupGauge(0, 4000);
        Char.sendPacket(sg);
      }
      //end of animation
View Full Code Here

        }
        else
        {
            player = (L2Character)target;
        }
        player.broadcastPacket(new MagicSkillUser(activeChar, player, id, 1, 1, 1));

    }
View Full Code Here

    int reuseDelay = (int) (skill.getReuseDelay() * getStat().getMReuseRate(skill));
    reuseDelay *= 333.0 / (skill.isMagic() ? getMAtkSpd() : getPAtkSpd());
   
    // Send a Server->Client packet MagicSkillUser with target, displayId, level, skillTime, reuseDelay
    // to the L2Character AND to all L2PcInstance in the _KnownPlayers of the L2Character
    broadcastPacket(new MagicSkillUser(this, target, displayId, level, hitTime, reuseDelay));
   
    // Send a system message USE_S1 to the L2Character
    if ((this instanceof L2PcInstance) && (magicId != 1312))
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.USE_S1);
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.