Package net.sf.l2j.gameserver.model.actor.instance

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


       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

           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

    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

          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

      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

      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

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

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

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