Examples of onAction()


Examples of games.stendhal.server.actions.query.WhoAction.onAction()

    assertThat(player.events().get(0).get("text"), equalTo("0 Players online: "));
    player.clearEvents();

    player.setAdminLevel(AdministrationAction.getLevelForCommand("ghostmode"));
    player.setGhost(true);
    pq.onAction(player, action);
    assertThat(player.events().get(0).get("text"), equalTo("1 Players online: player(!0) "));
    player.clearEvents();
   
    player.setAdminLevel(AdministrationAction.getLevelForCommand("ghostmode") + 1);
    player.setGhost(true);
View Full Code Here

Examples of games.stendhal.server.actions.query.WhoAction.onAction()

    assertThat(player.events().get(0).get("text"), equalTo("1 Players online: player(!0) "));
    player.clearEvents();
   
    player.setAdminLevel(AdministrationAction.getLevelForCommand("ghostmode") + 1);
    player.setGhost(true);
    pq.onAction(player, action);
    assertThat(player.events().get(0).get("text"), equalTo("1 Players online: player(!0) "));
  }

}
View Full Code Here

Examples of l2p.gameserver.model.L2Object.onAction()

    {
      String targetName = wordList[1];
      L2Object obj = L2World.getPlayer(targetName);
      if(obj != null && obj.isPlayer())
      {
        obj.onAction(activeChar, false);
      }
      else
      {
        activeChar.sendMessage("Player " + targetName + " not found");
      }
View Full Code Here

Examples of l2p.gameserver.model.L2Object.onAction()

      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getTarget() != target)
    {
      target.onAction(activeChar, _attackId == 1);
      return;
    }
    if(target.getObjectId() != activeChar.getObjectId() && activeChar.getPrivateStoreType() == L2Player.STORE_PRIVATE_NONE && !activeChar.isInTransaction())
    {
      target.onForcedAttack(activeChar, _attackId == 1);
View Full Code Here

Examples of l2p.gameserver.model.L2Object.onAction()

      if(activeChar.getAggressionTarget() != null && activeChar.getAggressionTarget() != obj)
      {
        activeChar.sendActionFailed();
        return;
      }
      obj.onAction(activeChar, _actionId == 1);
    }
    catch(NullPointerException e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of net.sf.arianne.marboard.server.action.Action.onAction()

   * @param caster the user performing this action
   * @param action the action to be performed provided by marauroa
   */
  public void execute(RPObject caster, RPAction action) {
    Action actionHandler = actionFactory.create(action.get("type"));
    actionHandler.onAction((User) caster, action);
  }


  /**
   * This method is called *before* adding an action by RPScheduler so you can
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Object.onAction()

  private void handleTarget(String command, L2PcInstance activeChar) {
    try {
      String targetName = command.substring(13);
      L2Object obj = L2World.getInstance().getPlayer(targetName);
      if ((obj != null) && (obj instanceof L2PcInstance)) {
        obj.onAction(activeChar);
      } else {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Player "+targetName+" not found");
        activeChar.sendPacket(sm);
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Object.onAction()

    if (activeChar.getPrivateStoreType()==0 && activeChar.getActiveRequester()==null)
    {
      switch (_actionId)
      {
        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character)obj).isAlikeDead())
            obj.onAction(activeChar);
          else
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Object.onAction()

        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character)obj).isAlikeDead())
            obj.onAction(activeChar);
          else
            obj.onActionShift(getClient());
          break;
        default:
          // Ivalid action detected (probably client cheating), log this
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Object.onAction()

    else
      target = L2World.getInstance().findObject(_objectId);
    if (target == null) return;
    if (activeChar.getTarget() != target)
    {
      target.onAction(activeChar);
    }
    else
    {
      if ((target.getObjectId() != activeChar.getObjectId())
          && activeChar.getPrivateStoreType() ==0
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.