Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.SocialAction


        if (!Config.ALLOW_TALK_WHILE_SITTING && player.isSitting() || player.isAlikeDead()) {
            return;
        }
        if (System.currentTimeMillis() - _lastSocialAction > 10000
                && !getTemplate().getAIParams().getBool("randomAnimationDisabled", false)) {
            broadcastPacket(new SocialAction(getObjectId(), 2));
            _lastSocialAction = System.currentTimeMillis();
        }
        player.sendActionFailed();
        player.stopMove(false);
        if (_isBusy) {
View Full Code Here


    {
      food = CRYSTAL_SPICE;
    }
    int objectId = getObjectId();
    // display the social action of the beast eating the food.
    broadcastPacket(new SocialAction(objectId, 2));
    // if this pet can't grow, it's all done.
    if(growthCapableMobs.containsKey(npcId))
    {
      // do nothing if this mob doesn't eat the specified food (food gets consumed but has no effect).
      if(growthCapableMobs.get(npcId).spice[food].length == 0)
View Full Code Here

    {
      addSkills(player);
    }
    player.setHero(true);
    player.updatePledgeClass();
    player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
    if(player.getClan() != null && player.getClan().getLevel() >= 5)
    {
      player.getClan().incReputation(1000, true, "Hero:activateHero:" + player);
      player.getClan().broadcastToOtherOnlineMembers(new SystemMessage(SystemMessage.CLAN_MEMBER_S1_WAS_NAMED_A_HERO_2S_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addString(player.getName()).addNumber(Math.round(1000 * Config.RATE_CLAN_REP_SCORE)), player);
    }
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

      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

        activeChar.sendPacket(Msg.YOU_CANNOT_DO_ANYTHING_ELSE_WHILE_FISHING);
        return;
      }
     
      if(Config.ALT_SOCIAL_ACTION_REUSE && FloodProtector.tryPerformAction(activeChar, FloodProtector.Action.DO_SOCIAL))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), action.value));
      else if (!Config.ALT_SOCIAL_ACTION_REUSE)
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), action.value));
     
      return;
    }
    final L2Object target = activeChar.getTarget();
    final L2Summon pet = activeChar.getPet();
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.SocialAction

Copyright © 2018 www.massapicom. 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.