Examples of SocialAction


Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

          // Notify the L2PcInstance AI with AI_INTENTION_INTERACT
          player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
        }
        else
        {
          SocialAction sa = new SocialAction(getObjectId(), Rnd.nextInt(8));
          broadcastPacket(sa);
          sendPacket(sa);
          showChatWindow(player, 0);
        }
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

        (!activeChar.isAllSkillsDisabled() || activeChar.isInDuel()) &&
        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.serverpackets.SocialAction

        {
          activeChar.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));
          return false;
        }
        L2Character character = (L2Character)target;
        character.broadcastPacket(new SocialAction(target.getObjectId(),action));
      }
      else
        return false;
    }
    catch(Exception e)
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

       while(it.hasNext()){
           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.serverpackets.SocialAction

          if (Config.DEBUG) _log.info("Newbie character ended: " + getActiveChar().getCharId());
            }
          }

          getActiveChar().setCurrentCp(getMaxCp());
            getActiveChar().broadcastPacket(new SocialAction(getActiveChar().getObjectId(), 15));
            getActiveChar().sendPacket(new SystemMessage(SystemMessageId.YOU_INCREASED_YOUR_LEVEL));
        }

        getActiveChar().rewardSkills(); // Give Expertise skill of this level
        if (getActiveChar().getClan() != null)
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

     * Send a packet SocialAction to all L2PcInstance in the _KnownPlayers of the L2NpcInstance and create a new RandomAnimation Task.<BR><BR>
     */
    public void onRandomAnimation()
    {
        // Send a packet SocialAction to all L2PcInstance in the _KnownPlayers of the L2NpcInstance
        SocialAction sa = new SocialAction(getObjectId(), Rnd.get(2, 3));
        broadcastPacket(sa);
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

    else _player.sendPacket(new ItemList(_player, false));

    // Refresh player stats
    _player.broadcastUserInfo();

    SocialAction atk = new SocialAction(_player.getObjectId(), 17);

    _player.broadcastPacket(atk);

    sm = new SystemMessage(SystemMessageId.THE_OWNER_OF_S2_HAS_APPEARED_IN_THE_S1_REGION);
    sm.addZoneName(_player.getX(), _player.getY(), _player.getZ()); // Region Name
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

                }
                else
                {
                    // Send a Server->Client packet SocialAction to the all L2PcInstance on the _knownPlayer of the L2NpcInstance
                    // to display a social action of the L2NpcInstance on their client
                    SocialAction sa = new SocialAction(getObjectId(), Rnd.get(8));
                    broadcastPacket(sa);

                    // Open a chat window on client with the text of the L2NpcInstance
                    if(isEventMob){ L2Event.showEventHtml(player, String.valueOf(getObjectId())); }
                    else
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

          }
            break;
        }
        if (Rnd.get(100) <= chestChance)
        {
          activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(),3));
            chest.setSpecialDrop();
            chest.setMustRewardExpSp(false);
            chest.setInteracted();
            chest.reduceCurrentHp(99999999, activeChar);
        }
        else
        {
            activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(),13));
            if (Rnd.get(100) < chestTrapLimit) chest.chestTrap(activeChar);
            chest.setInteracted();
            chest.addDamageHate(activeChar,0,1);
            chest.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, activeChar);
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

    if (looser == null) return;

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