Examples of broadcastPacket()


Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

        activeChar.getAI().getIntention()==CtrlIntention.AI_INTENTION_IDLE)
    {
      if (Config.DEBUG) _log.fine("Social Action:" + _actionId);

      SocialAction atk = new SocialAction(activeChar.getObjectId(), _actionId);
      activeChar.broadcastPacket(atk);
      /*
      // Schedule a social task to wait for the animation to finish
      ThreadPoolManager.getInstance().scheduleGeneral(new SocialTask(this), 2600);
      activeChar.setIsParalyzed(true);
      */
 
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

        // Remove the item from inventory.
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);

    // Broadcast the changes to the char and all those nearby.
    UserInfo ui = new UserInfo(activeChar);
    activeChar.broadcastPacket(ui);
  }

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

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

           try{L2PcInstance character = L2World.getInstance().getPlayer(it.next().toString());
           character.setCurrentHpMp(character.getMaxHp(), character.getMaxMp());
           character.setCurrentCp(character.getMaxCp());
           Revive revive = new Revive(character);
           SocialAction sa = new SocialAction(character.getObjectId(), 15);
           character.broadcastPacket(sa);
           character.sendPacket(sa);
           character.sendPacket(revive);
           character.broadcastPacket(revive);}catch(Exception e){}
       }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

           Revive revive = new Revive(character);
           SocialAction sa = new SocialAction(character.getObjectId(), 15);
           character.broadcastPacket(sa);
           character.sendPacket(sa);
           character.sendPacket(revive);
           character.broadcastPacket(revive);}catch(Exception e){}
       }

   }

   void polyTeam(int team, String id){
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

       while(it.hasNext()){
        try{   L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
        target.getPoly().setPolyInfo("npc", id);
        target.teleToLocation(target.getX(), target.getY(), target.getZ(), true);
        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);
            UserInfo info2 = new UserInfo(target);
            target.sendPacket(info2);}catch(Exception e){}
       }

   }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

           target.getPoly().setPolyInfo(null, "1");
        target.decayMe();
        target.spawnMe(target.getX(),target.getY(),target.getZ());
        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);
            UserInfo info2 = new UserInfo(target);
            target.sendPacket(info2);}catch(Exception e){}
       }

   }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

    L2PcInstance activeChar = getClient().getActiveChar();
    if(activeChar == null)
      return;
        L2BoatInstance boat = BoatManager.getInstance().GetBoat(_id);
        GetOffVehicle Gon = new GetOffVehicle(activeChar,boat,_x,_y,_z);
        activeChar.broadcastPacket(Gon);
  }

  /* (non-Javadoc)
   * @see net.sf.l2j.gameserver.BasePacket#getType()
   */
 
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

          break;
        case 2: // wyvern
          if(!activeChar.disarmWeapons()) return;
          Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, sitem.getNpcId());
            activeChar.sendPacket(mount);
            activeChar.broadcastPacket(mount);
            activeChar.setMountType(mount.getMountType());
            activeChar.setMountObjectID(item.getObjectId());
        }
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

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

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()

      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);
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.