Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.sendMessage()


          return;
    }

    if (_length < 0)
    {
          activeChar.sendMessage("File transfer error.");
          return;
        }
    if (_length > 256)
        {
          activeChar.sendMessage("The clan crest file size was too big (max 256 bytes).");
View Full Code Here


          activeChar.sendMessage("File transfer error.");
          return;
        }
    if (_length > 256)
        {
          activeChar.sendMessage("The clan crest file size was too big (max 256 bytes).");
          return;
        }
    if (_length == 0 || _data.length == 0)
    {
      CrestCache.getInstance().removePledgeCrest(clan.getCrestId());
View Full Code Here

      {
        L2PcInstance player = (L2PcInstance)activeChar.getTarget();
        for (L2Skill skill : player.getAllSkills())
          player.removeSkill(skill);
        activeChar.sendMessage("You removed all skills from " + player.getName());
        player.sendMessage("Admin removed all skills from you.");
        player.sendSkillList();
      }
    }
    else if (command.startsWith("admin_add_clan_skill"))
    {
View Full Code Here

      }
      countUnlearnable = false;
      skills = SkillTreeTable.getInstance().getAvailableSkills(player, player.getClassId());
    }
    //Notify player and admin
    player.sendMessage("A GM gave you " + skillCounter + " skills.");
    activeChar.sendMessage("You gave " + skillCounter + " skills to " + player.getName());
    player.sendSkillList();
  }

  @Override
View Full Code Here

        player.addSkill(activeChar.getAllSkills()[i], true);
      for (int i=0;i<skills.length;i++)
        activeChar.removeSkill(skills[i]);
      for (int i=0;i<adminSkills.length;i++)
        activeChar.addSkill(adminSkills[i], true);
      player.sendMessage("[GM]"+activeChar.getName()+" updated your skills.");
      activeChar.sendMessage("You now have all your skills back.");
      adminSkills=null;
      activeChar.sendSkillList();
    }
    showMainPage(activeChar);
View Full Code Here

      }
      catch (Exception e) {}
      if (skill != null)
      {
        String name = skill.getName();
        player.sendMessage("Admin gave you the skill "+name+".");
        player.addSkill(skill, true);
        //Admin information
        activeChar.sendMessage("You gave the skill "+name+" to "+player.getName()+".");
        if (Config.DEBUG)
          _log.fine("[GM]"+activeChar.getName()+" gave skill "+name+" to "+player.getName()+".");
View Full Code Here

    }
    L2Skill skill = SkillTable.getInstance().getInfo(idval,player.getSkillLevel(idval));
    if (skill != null)
    {
      String skillname = skill.getName();
      player.sendMessage("Admin removed the skill "+skillname+" from your skills list.");
      player.removeSkill(skill);
      //Admin information 
      activeChar.sendMessage("You removed the skill "+skillname+" from "+player.getName()+".");
      if (Config.DEBUG)
        _log.fine("[GM]"+activeChar.getName()+" removed skill "+skillname+" from "+player.getName()+".");
View Full Code Here

        /* If fishing is disabled, there isn't much point in doing anything else, unless you are GM.
         * so this got moved up here, before anything else.
         */
    if (!Config.ALLOWFISHING && !player.isGM())
    {
      player.sendMessage("Not Working Yet");
      return;
    }

    /* If fishing is enabled, here is the code that was striped from startFishing() in L2PcInstance.
     * Decide now where will the hook be cast...*/
 
View Full Code Here

        L2PcInstance player = getClient().getActiveChar();
      if (player == null) return;

        if (Config.GM_DISABLE_TRANSACTION && player.getAccessLevel() >= Config.GM_TRANSACTION_MIN && player.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
        {
            player.sendMessage("Transactions are disable for your Access Level");
            return;
        }

        TradeList tradeList = player.getBuyList();
        tradeList.clear();
View Full Code Here

          return;

       
        if (_length < 0)
    {
          activeChar.sendMessage("File transfer error.");
          return;
        }
    if (_length > 192)
        {
          activeChar.sendMessage("The crest file size was too big (max 192 bytes).");
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.