Package net.sf.l2j.gameserver.serverpackets

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


  public void onAction(L2PcInstance player)
    {
        if (player == _owner && player.getTarget() == this)
        {
            player.sendPacket(new PetStatusShow(this));
            player.sendPacket(new ActionFailed());
        }
        else
        {
            if (Config.DEBUG) _log.fine("new target selected:"+getObjectId());
            player.setTarget(this);
View Full Code Here


        return;
      }

      if (getOwner() != null && getOwner().isInOlympiadMode() && !getOwner().isOlympiadStart()){
        // if L2PcInstance is in Olympia and the match isn't already start, send a Server->Client packet ActionFailed
        sendPacket(new ActionFailed());
        return;
      }

            // Check if the target is attackable
      if (target instanceof L2DoorInstance)
View Full Code Here

          showMessageWindow(player, 0);
        }
      }
    }
    // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
    player.sendPacket(new ActionFailed());
  }
View Full Code Here

            return;

        if(clan == null)
        {
          _activeChar.sendMessage("No such clan.");
          _activeChar.sendPacket(new ActionFailed());
            return;
        }

        if(!_clan.isAtWarWith(clan.getClanId()) || _activeChar.getWantsPeace() == 1)
        {
          _activeChar.sendMessage("You aren't at war with this clan.");
          _activeChar.sendPacket(new ActionFailed());
            return;
        }

        _activeChar.setWantsPeace(1);
        _activeChar.deathPenalty(false);
View Full Code Here

        npcHtmlMessage.replace("%team2points%", String.valueOf(teamsPointsCounts[1])); // <---- array index from 0 to 1 thx DaRkRaGe
          playerInstance.sendPacket(npcHtmlMessage);
        }
    }

    playerInstance.sendPacket(new ActionFailed());
  }
View Full Code Here

      {
        showMessageWindow(player);
      }
    }
    // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
    player.sendPacket(new ActionFailed());
  }
View Full Code Here

    player.sendPacket(new ActionFailed());
  }

    public void showMessageWindow(L2PcInstance player)
    {
        player.sendPacket(new ActionFailed());
        String filename = "data/html/doormen/" + getTemplate().npcId + "-no.htm";

        int condition = validateCondition(player);
        if (condition == COND_BUSY_BECAUSE_OF_SIEGE) filename = "data/html/doormen/"
            + getTemplate().npcId + "-busy.htm"; // Busy because of siege
View Full Code Here

            html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
        }
        html.replace("1race", String.valueOf(_raceNumber));
        html.replace("%objectId%", String.valueOf(getObjectId()));
        player.sendPacket(html);
        player.sendPacket(new ActionFailed());
    }
View Full Code Here

            search = "Mob" + n;
            html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
        }
        html.replace("%objectId%", String.valueOf(getObjectId()));
        player.sendPacket(html);
        player.sendPacket(new ActionFailed());
    }
View Full Code Here

        return;

        // Player shouldn't be able to set stores if he/she is alike dead (dead or fake death)
        if (player.isAlikeDead())
        {
            sendPacket(new ActionFailed());
            return;
        }
    if(player.getPrivateStoreType() != 0){
      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
      player.broadcastUserInfo();
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.ActionFailed

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.