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

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


           case 9154: // Scroll of Wind Walk - For Event XML:2058
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2058, 1, 1, 0));
             useScroll(activeChar, 2058, 1);
             break;
           case 9155: // Scroll of Shield - For Event XML:2059
             activeChar.broadcastPacket(new MagicSkillUser(playable, activeChar, 2059, 1, 1, 0));
             useScroll(activeChar, 2059, 1);
             break;
           default:
             break;
    }
View Full Code Here


            if (_effect.getLevel() < 2)
            {
                MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, _skill.getId(), 1, 1, 0);
                activeChar.sendPacket(MSU);
                activeChar.broadcastPacket(MSU);
                _effect.addNumCharges(1);
                activeChar.sendPacket(new EtcStatusUpdate(activeChar));
                activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
            }
            else if (_effect.getLevel() == 2)
View Full Code Here

        activeChar.disableAllSkills();

        L2Skill skill = SkillTable.getInstance().getInfo(escapeSkill, 1);
        MagicSkillUser msu = new MagicSkillUser(activeChar, escapeSkill, 1, skill.getHitTime(), 0);
        activeChar.broadcastPacket(msu);
        SetupGauge sg = new SetupGauge(0, skill.getHitTime());
        activeChar.sendPacket(sg);
        //End SoE Animation section

        SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
View Full Code Here

    //activeChar.sendPacket(sm2);

    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

        }
        else if (!pet.isDead() && !activeChar.isMounted())
        {
          if(!activeChar.disarmWeapons()) return;
          Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, pet.getTemplate().npcId);
          activeChar.broadcastPacket(mount);
          activeChar.setMountType(mount.getMountType());
          activeChar.setMountObjectID(pet.getControlItemId());
          pet.unSummon(activeChar);
        }
      }
View Full Code Here

      {
        if (activeChar.setMountType(0))
        {
          if (activeChar.isFlying())activeChar.removeSkill(SkillTable.getInstance().getInfo(4289, 1));
          Ride dismount = new Ride(activeChar.getObjectId(), Ride.ACTION_DISMOUNT, 0);
          activeChar.broadcastPacket(dismount);
          activeChar.setMountObjectID(0);
        }
      }
      break;
    case 32: // Wild Hog Cannon - Mode Change
View Full Code Here

      if(player.getBoat().getObjectId() == _boatId)
      {
        player.setInBoatPosition(new Point3D(_x,_y,_z));
        player.getPosition().setHeading(_heading);
        StopMoveInVehicle msg = new StopMoveInVehicle(player,_boatId);
        player.broadcastPacket(msg);
      }
    }
  }

  @Override
View Full Code Here

    if (_packageSale)
      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_PACKAGE_SELL);
    else
      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_SELL);
    player.broadcastUserInfo();
    player.broadcastPacket(new PrivateStoreMsgSell(player));
  }

  @Override
  public String getType()
  {
View Full Code Here

    if (_partyDuel && looser.getParty() != null)
    {
      for (L2PcInstance temp : looser.getParty().getPartyMembers())
        temp.broadcastPacket(new SocialAction(temp.getObjectId(), 7));
    }
    else looser.broadcastPacket(new SocialAction(looser.getObjectId(), 7));
  }

  /**
   * Do the countdown and send message to players if necessary
   * @return current count
View Full Code Here

      )
      {
        ChairSit cs = new ChairSit(activeChar,((L2StaticObjectInstance)target).getStaticObjectId());
        activeChar.sendPacket(cs);
        activeChar.sitDown();
        activeChar.broadcastPacket(cs);
        break;
      }

      if (activeChar.isSitting())
        activeChar.standUp();
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.