Examples of ExMentorList


Examples of lineage2.gameserver.network.serverpackets.ExMentorList

    if (mentorId != 0)
    {
      String mentorName = activeChar.getMenteeMentorList().getList().get(mentorId).getName();
      Player mentorChar = World.getPlayer(mentorName);
      mentorChar.getMenteeMentorList().remove(activeChar.getName(), true, true);
      mentorChar.sendPacket(new ExMentorList(mentorChar));
      if ((activeChar != null) && activeChar.isOnline())
      {
        activeChar.getMenteeMentorList().remove(mentorChar.getName(), false, false);
        activeChar.sendPacket(new ExMentorList(activeChar));
      }
      Mentoring.cancelMentorBuffs(mentorChar);
      Mentoring.cancelMenteeBuffs(activeChar);
      Mentoring.setTimePenalty(mentorChar.getObjectId(), System.currentTimeMillis() + (2 * 24 * 3600 * 1000L), -1);
    }
    else
    {
      Player menteeChar = World.getPlayer(_charName);
      activeChar.getMenteeMentorList().remove(_charName, true, true);
      activeChar.sendPacket(new ExMentorList(activeChar));
      if ((menteeChar != null) && menteeChar.isOnline())
      {
        menteeChar.getMenteeMentorList().remove(activeChar.getName(), false, false);
        menteeChar.sendPacket(new ExMentorList(menteeChar));
      }
      Mentoring.cancelMentorBuffs(activeChar);
      Mentoring.cancelMenteeBuffs(menteeChar);
      Mentoring.setTimePenalty(activeChar.getObjectId(), System.currentTimeMillis() + (2 * 24 * 3600 * 1000L), -1);
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExMentorList

        else
        {
          menteePlayer.sendPacket(new SystemMessage2(mentee.isMentor() ? SystemMsg.YOU_MENTEE_S1_HAS_DISCONNECTED : SystemMsg.YOU_MENTOR_S1_HAS_DISCONNECTED).addString(_owner.getName()));
        }
        mentee.update(menteePlayer, login);
        menteePlayer.sendPacket(new ExMentorList(menteePlayer));
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExMentorList

        if (thisMentee == null)
        {
          continue;
        }
        thisMentee.update(_owner, true);
        menteePlayer.sendPacket(new ExMentorList(menteePlayer));
        mentee.update(menteePlayer, true);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExMentorList

    }
    try
    {
      requestor.getMenteeMentorList().addMentee(activeChar);
      activeChar.getMenteeMentorList().addMentor(requestor);
      activeChar.sendPacket(new SystemMessage2(SystemMsg.FROM_NOW_ON_S1_WILL_BE_YOUR_MENTOR).addName(requestor), new ExMentorList(activeChar));
      requestor.sendPacket(new SystemMessage2(SystemMsg.FROM_NOW_ON_S1_WILL_BE_YOUR_MENTEE).addName(activeChar), new ExMentorList(requestor));
      Mentoring.applyMenteeBuffs(activeChar);
      Mentoring.applyMentorBuffs(requestor);
    }
    finally
    {
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExMentorList

        }
        if (getLevel() >= 86)
        {
          sendPacket(new SystemMessage2(SystemMsg.YOU_REACHED_LEVEL_86_RELATIONSHIP_WITH_S1_CAME_TO_AN_END).addString(mentorName));
          getMenteeMentorList().remove(mentorName, false, false);
          sendPacket(new ExMentorList(this));
          if (mentorPlayer != null)
          {
            if (mentorPlayer.isOnline())
            {
              mentorPlayer.sendPacket(new SystemMessage2(SystemMsg.THE_MENTEE_S1_HAS_REACHED_LEVEL_86).addName(this));
              mentorPlayer.getMenteeMentorList().remove(_name, true, false);
              mentorPlayer.sendPacket(new ExMentorList(mentorPlayer));
            }
            Mentoring.setTimePenalty(mentorId, System.currentTimeMillis() + (1 * 24 * 3600 * 1000L), -1);
          }
          Mentoring.cancelMenteeBuffs(this);
          Mentoring.cancelMentorBuffs(mentorPlayer);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExMentorList

   */
  @Override
  protected void readImpl()
  {
    Player activeChar = getClient().getActiveChar();
    sendPacket(new ExMentorList(activeChar));
  }
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.