A Project for Chronicle 4 based on L2JServer.


    LeaveBuffsOnDie = False/True and debuffs 15 seg for pvp servers

    Share
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    LeaveBuffsOnDie = False/True and debuffs 15 seg for pvp servers

    Post  yusuketh on 12th July 2014, 22:22

    for who is testing the pvps not want to be giving all the time nobless:

    Code:
    Index: java/net/sf/l2j/Config.java
    ===================================================================
         public static boolean       CUSTOM_DROPLIST_TABLE;
         public static boolean       CUSTOM_MERCHANT_TABLES;
    +    public static boolean LEAVE_BUFFS_ON_DIE;

                    AUTO_REWARD_ID                = Integer.parseInt(customSettings.getProperty("AutoRewardID", "57"));
                    AUTO_REWARD_COUNT             = Integer.parseInt(customSettings.getProperty("AutoRewardCount", "1000"));

    +                LEAVE_BUFFS_ON_DIE = Boolean.parseBoolean(customSettings.getProperty("LeaveBuffsOnDie", "True"));

    Code:
    Index: java/net/sf/l2j/gameserver/model/L2Character.java
    ===================================================================

      ((L2PlayableInstance)this).stopCharmOfLuck(null);
      }
      else
    - stopAllEffects();
    + {
    + if (Config.LEAVE_BUFFS_ON_DIE)
    + {
    + stopAllEffects();
    + }
    + }

      calculateRewards(killer);

    Code:
    Index: java/config/custom.properties
    ===================================================================

    +#Leave buffs on die, if false the effects will be not stopped on die
    +LeaveBuffsOnDie = False
    +

    and how the debuffs are also getting after death, add it in the "custom.properties" on "SkillDurationList =" option to let all debuffs with 15 seconds.

    Code:
    95,15;102,15;105,15;127,15;354,15;1099,15;1160,15;1170,15;/1184,15;1236,15;\
    1247,15;1248,15;1263,15;1269,15;1290,15;1291,15;1298,15;1337,15;1358,15;1359,15;\
    1360,15;1361,15;1366,15;1367,15;353,15;1064,15;1336,15

    I think all debuffs of player C4 are here.

      Current date/time is 20th September 2017, 16:02