Examples of broadcastPacket()


Examples of com.l2jfrozen.gameserver.model.L2Character.broadcastPacket()

                else
                    player.startAbnormalEffect(0x0800);
                player.setIsParalyzed(true);
                StopMove sm = new StopMove(player);
                player.sendPacket(sm);
               player.broadcastPacket(sm);
               }
             }
       catch (Exception e)
       {}
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Object.broadcastPacket()

              }
              Hero.getInstance().deleteHero(target, false);
            }
            else
            {
              target.broadcastPacket(new SocialAction(target.getObjectId(), 16));
              for (L2Skill skill : HeroSkillTable.getHeroSkills())
              {
                target.addSkill(skill);
              }
              Hero.getInstance().putHero(target, false);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Summon.broadcastPacket()

      activeChar.sendPacket(new SystemMessage(SystemMessageId.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    }

    pet.setName(_name);
    pet.broadcastPacket(new NpcInfo(pet, activeChar));
    activeChar.sendPacket(new PetInfo(pet));
    // The PetInfo packet wipes the PartySpelled (list of active spells' icons).  Re-add them
    pet.updateEffectIcons(true);

    // set the flag on the control item to say that the pet has a name
View Full Code Here

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

      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
    if (itemId == 8192 && Frintezza.getObjectId() == 29045)
    {
      Frintezza.broadcastPacket(new SocialAction(Frintezza.getObjectId(), 2));
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
  }
 
  @Override
View Full Code Here

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

                public void run() {
                    try {
                        _baium.setCurrentHpMp(hp, mp);
                        _baium.setIsInvul(true);
                        //_baium.setIsImobilised(true);
                        _baium.broadcastPacket(new SocialAction(_baium.getObjectId(), 2));
                        startQuestTimer("baium_wakeup", 15000, _baium, null);
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

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

    }
   
    if (activeChar.isFakeDeath())
    {
      activeChar.stopFakeDeath(null);
      activeChar.broadcastPacket(new Revive(activeChar));
      return;
    }
    else if (!activeChar.isAlikeDead())
    {
      _log.warning("Living player [" + activeChar.getName() + "] called RestartPointPacket! Ban this player!");
View Full Code Here

Examples of l2p.gameserver.model.L2Character.broadcastPacket()

      if(target.isPlayer())
      {
        L2Player deadplayer = (L2Player) target;
        deadplayer.restoreExp();
      }
      target.broadcastPacket(new SocialAction(target.getObjectId(), 15));
      target.broadcastPacket(new Revive(target));
      target.doRevive();
    }
    else
    {
View Full Code Here

Examples of l2p.gameserver.model.L2Player.broadcastPacket()

      activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      player.sendMessage("Admin has changed the enchantment of your " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      if(activeChar != player && ench >= (itemInstance.getItem().getType2() == L2Item.TYPE2_WEAPON ? 6 : 5))
      {
        player.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), player);
        player.broadcastPacket(new SystemMessage(SystemMessage.C1_HAS_SUCCESSFULY_ENCHANTED_A__S2_S3).addName(player).addNumber(ench).addItemName(itemInstance.getItemId()));
      }
      if(Config.ProtectEnchantGMEnable && ench > Config.ProtectEnchantGMMax)
      {
        mOption.banAcc(activeChar, "ProtectEnchantGM");
        mOption.banAcc(player, "ProtectEnchantGM");
View Full Code Here

Examples of l2p.gameserver.model.L2Summon.broadcastPacket()

        }
        pet.chargeSpiritShot(L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT);
        skillid = 2009;
        break;
    }
    pet.broadcastPacket(new MagicSkillUse(pet, pet, skillid, 1, 0, 0));
    player.getInventory().destroyItem(item, consumption, false);
  }

  public final int[] getItemIds()
  {
View Full Code Here

Examples of l2p.gameserver.model.PartyRoom.broadcastPacket()

        if(room == null)
        {
          activeChar.sendActionFailed();
          return;
        }
        room.broadcastPacket(cs);
        break;
      case COMMANDCHANNEL_ALL:
        if(!activeChar.isInParty() || !activeChar.getParty().isInCommandChannel())
        {
          activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_AUTHORITY_TO_USE_THE_COMMAND_CHANNEL);
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.