Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: net.sf.l2j.gameserver.model.actor.stat;PlayerStat.java
- ===================================================================
- --- net.sf.l2j.gameserver.model.actor.stat;PlayerStat.java (revision 84)
- +++ net.sf.l2j.gameserver.model.actor.stat;PlayerStat.java (working copy)
- @Override
- public int getMAtkSpd()
- {
- + int val = super.getMAtkSpd();
- + if (val > Config.MAX_MATK_SPEED)
- + return Config.MAX_MATK_SPEED;
- + return val;
- }
- @Override
- public int getPAtkSpd()
- {
- if (getActiveChar().isMounted())
- {
- int base = getActiveChar().getPetDataEntry().getMountAtkSpd();
- if (getActiveChar().checkFoodState(getActiveChar().getPetTemplate().getHungryLimit()))
- base /= 2;
- return (int) calcStat(Stats.POWER_ATTACK_SPEED, base, null, null);
- }
- + int val = super.getPAtkSpd();
- + if (getActiveChar().getClassId().equals(ClassId.PHANTOM_RANGER) || getActiveChar().getClassId().equals(ClassId.GHOST_SENTINEL))
- + {
- + if (val > Config.MAX_PATK_SPEED_GHOST)
- + return Config.MAX_PATK_SPEED_GHOST;
- + }
- + else if (getActiveChar().getClassId().equals(ClassId.SILVER_RANGER) || getActiveChar().getClassId().equals(ClassId.MOONLIGHT_SENTINEL))
- + {
- + if (val > Config.MAX_PATK_SPEED_MOONL)
- + return Config.MAX_PATK_SPEED_MOONL;
- + }
- + else if (val > Config.MAX_PATK_SPEED)
- + return Config.MAX_PATK_SPEED;
- + return val;
- }
- Index: net.sf.l2j;Config.java
- ===================================================================
- --- net.sf.l2j;Config.java (revision 84)
- +++ net.sf.l2j;Config.java (working copy)
- + public static int MAX_MATK_SPEED;
- + public static int MAX_PATK_SPEED;
- + public static int MAX_PATK_SPEED_GHOST;
- + public static int MAX_PATK_SPEED_MOONL;
- + MAX_MATK_SPEED = Integer.parseInt(player.getProperty("MaxMAtkSpeed", "1999"));
- + MAX_PATK_SPEED = Integer.parseInt(player.getProperty("MaxPAtkSpeed", "1500"));
- + MAX_PATK_SPEED_GHOST = Integer.parseInt(player.getProperty("MaxPAtkSpeedGhost", "1500"));
- + MAX_PATK_SPEED_MOONL = Integer.parseInt(player.getProperty("MaxPAtkSpeedMoonl", "1500"));
- Index: config/player.propertis
- ===================================================================
- --- config/player.propertis (revision 84)
- +++ config/player.propertis (working copy)
- + #====================================================
- + # P.ATK/M.ATK SPEED LIMITE
- + #====================================================
- + # All Classes
- + MaxPAtkSpeed = 1500
- +
- + # Dark Elf Fighter
- + MaxPAtkSpeedGhost = 1500
- +
- + # Elf Fighter
- + MaxPAtkSpeedMoonl = 1600
- +
- + # All Classes mages
- + MaxMAtkSpeed = 2000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement