A Project for Chronicle 4 based on L2JServer.


    Limit levels

    Share

    xbacox2010

    Posts : 41
    Join date : 2013-10-20

    Limit levels

    Post  xbacox2010 on 9th November 2013, 06:34

    how can set level max(75) in the subclass when base clase lvl 78
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: Limit levels

    Post  DnR on 10th November 2013, 11:48

    Find this in net/sf/l2j/gameserver/model/actor/stat/PcStat.java

    Code:

    public final boolean addLevel(int value)
    {
        if (getLevel() + value > Experience.MAX_LEVEL - 1)
            return false;
    and replace it with the code below:
    Code:

    public final boolean addLevel(int value)
    {
        int maxLevel = Experience.MAX_LEVEL - 1;
        if (getActiveChar().isSubClassActive())
            maxLevel = 75;

        if (getLevel() + value > maxLevel)
            return false;

      Current date/time is 23rd September 2017, 03:10