Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.sendMessage()


          else if(_command.substring(endOfId+1).startsWith("ctf_player_leave"))
          {
            if(CTF.is_joining())
              CTF.removePlayer(activeChar);
            else
              activeChar.sendMessage("The event is already started. You can't leave now!");
          }

          if(_command.substring(endOfId+1).startsWith("vip_joinVIPTeam"))
          {
              VIP.addPlayerVIP(activeChar);
View Full Code Here


        {
          player.removeSkill(skill);
        }

        activeChar.sendMessage("You removed all skills from " + player.getName());
        player.sendMessage("Admin removed all skills from you.");
        player.sendSkillList();
        player = null;
      }
    }
    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();

    skills = null;
    player = null;
View Full Code Here

      for(L2Skill adminSkill : adminSkills)
      {
        activeChar.addSkill(adminSkill, true);
      }

      player.sendMessage("[GM]" + activeChar.getName() + " updated your skills.");
      activeChar.sendMessage("You now have all your skills back.");
      adminSkills = null;
      activeChar.sendSkillList();

      skills = null;
View Full Code Here

      }

      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)
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)
View Full Code Here

        activeChar.sendPacket(sm);
        return true;
      }
     
      if(activeChar.isHero() && HeroSkillTable.isHeroSkill(skillId) && activeChar.isInOlympiadMode() && activeChar.isOlympiadStart()){
        activeChar.sendMessage("You can't use Hero skills during Olympiad match.");
        return true;
      }
    }
   
    if(_disabledSkills == null)
View Full Code Here

    if (player == null)
      return;
   
    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("privatestoresell"))
    {
      player.sendMessage("You selling items too fast");
      return;
    }
   
    L2Object object = L2World.getInstance().findObject(_storePlayerId);
    if (object == null || !(object instanceof L2PcInstance))
View Full Code Here

    else
    {
      if (storePlayer.getAdena() < _price)
      {
        sendPacket(ActionFailed.STATIC_PACKET);
        storePlayer.sendMessage("You have not enough adena, canceling PrivateBuy.");
        storePlayer.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
        storePlayer.broadcastUserInfo();
        return;
      }
    }
View Full Code Here

    if(_data == null)
    {
      CrestCache.getInstance().removePledgeCrestLarge(clan.getCrestId());

      clan.setHasCrestLarge(false);
      activeChar.sendMessage("The insignia has been removed.");

      for(L2PcInstance member : clan.getOnlineMembers(""))
      {
        member.broadcastUserInfo();
      }
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.