Package l2p.gameserver.model

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


    if(count != 0)
    {
      activeChar.setSellList(listsell);
      activeChar.setPrivateStoreType(_package ? L2Player.STORE_PRIVATE_SELL_PACKAGE : L2Player.STORE_PRIVATE_SELL);
      activeChar.broadcastUserInfo(true);
      activeChar.broadcastPacket(new PrivateStoreMsgSell(activeChar));
      activeChar.sitDown();
    }
    else
    {
      L2TradeList.cancelStore(activeChar);
View Full Code Here


    }
    if (count > 0)
    {
      activeChar.setBuyList(listbuy);
      activeChar.setPrivateStoreType(L2Player.STORE_PRIVATE_BUY);
      activeChar.broadcastPacket(new ChangeWaitType(activeChar, ChangeWaitType.WT_SITTING));
      activeChar.broadcastUserInfo(true);
      activeChar.broadcastPacket(new PrivateStoreMsgBuy(activeChar));
      activeChar.sitDown();
      return;
    }
View Full Code Here

    {
      activeChar.setBuyList(listbuy);
      activeChar.setPrivateStoreType(L2Player.STORE_PRIVATE_BUY);
      activeChar.broadcastPacket(new ChangeWaitType(activeChar, ChangeWaitType.WT_SITTING));
      activeChar.broadcastUserInfo(true);
      activeChar.broadcastPacket(new PrivateStoreMsgBuy(activeChar));
      activeChar.sitDown();
      return;
    }
    L2TradeList.cancelStore(activeChar);
  }
View Full Code Here

    L2Player looser;
    for(Long looserId : loosers)
    {
      if((looser = L2ObjectsStorage.getAsPlayer(looserId)) != null)
      {
        looser.broadcastPacket(new SocialAction(looser.getObjectId(), SocialAction.BOW));
      }
    }
  }

  /**
 
View Full Code Here

    for(TeamMember member : _members)
    {
      L2Player player = member.getPlayer();
      if(player != null)
      {
        player.broadcastPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()));
      }
    }
  }

  public boolean logout(L2Player player)
View Full Code Here

      if (number == 0)
      {
        player.sendPacket(Msg.YOU_MAY_NOT_THROW_THE_DICE_AT_THIS_TIMETRY_AGAIN_LATER);
        return;
      }
      player.broadcastPacket(new Dice(player.getObjectId(), itemId, number, player.getX() - 30, player.getY() - 30, player.getZ()), new SystemMessage(
          SystemMessage.S1_HAS_ROLLED_S2).addString(player.getName()).addNumber(number));
    }
  }
 
  private int rollDice(L2Player player)
View Full Code Here

    if (!check(player, item))
      return;
   
    player.stopMove();
    player.block();
    player.broadcastPacket(new MagicSkillUse(player, player, _skillId, 1, 5000, 600000));
    player.sendPacket(Msg.SUMMON_A_PET);
    // continue execution in 5 seconds
    ThreadPoolManager.getInstance().scheduleAi(new SummonFinalizer(player, item), 5000, true);
  }
 
View Full Code Here

      return;
    }
    if(activeChar.getPrivateStoreType() == L2Player.STORE_PRIVATE_NONE && !activeChar.isInTransaction() && !activeChar.isActionsDisabled() && !activeChar.isSitting())
    {
      if(Config.ALT_SOCIAL_ACTION_REUSE && FloodProtector.tryPerformAction(activeChar, FloodProtector.Action.DO_SOCIAL))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), _actionId));
      else if (!Config.ALT_SOCIAL_ACTION_REUSE)
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), _actionId));
    }
  }
}
View Full Code Here

    if(activeChar.getPrivateStoreType() == L2Player.STORE_PRIVATE_NONE && !activeChar.isInTransaction() && !activeChar.isActionsDisabled() && !activeChar.isSitting())
    {
      if(Config.ALT_SOCIAL_ACTION_REUSE && FloodProtector.tryPerformAction(activeChar, FloodProtector.Action.DO_SOCIAL))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), _actionId));
      else if (!Config.ALT_SOCIAL_ACTION_REUSE)
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), _actionId));
    }
  }
}
View Full Code Here

      player.sendPacket(Msg.THE_SOUL_CRYSTAL_WAS_NOT_ABLE_TO_ABSORB_A_SOUL, Msg.ActionFail);
      return;
    }
    // Soul Crystal Casting section
    int skillHitTime = SkillTable.getInstance().getInfo(2096, 1).getHitTime();
    player.broadcastPacket(new MagicSkillUse(player, 2096, 1, skillHitTime, 0));
    player.sendPacket(new SetupGauge(0, skillHitTime));
    // End Soul Crystal Casting section
    // Continue execution later
    player._skillTask = ThreadPoolManager.getInstance().scheduleAi(new CrystalFinalizer(player, target), skillHitTime, true);
  }
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.