Guma! Posted April 10, 2010 Posted April 10, 2010 Properties: +# List of Skills that arent allowed on RaidBosses +ForbiddenRaidSkills = 1064,100 + Config.java @@ -1078,5 +1078,6 @@ /** Death Penalty chance */ public static int DEATH_PENALTY_CHANCE; - + public static String FORBIDDEN_RAID_SKILLS; + public static FastList<Integer> FORBIDDEN_RAID_SKILLS_LIST = new FastList<Integer>(); /** Player Protection control */ public static int PLAYER_SPAWN_PROTECTION; @@ -1873,5 +1874,11 @@ DEATH_PENALTY_CHANCE = Integer.parseInt(otherSettings.getProperty("DeathPenaltyChance", "20")); - } + + FORBIDDEN_RAID_SKILLS = otherSettings.getProperty("ForbiddenRaidSkills", "1064,100"); + for (String id : FORBIDDEN_RAID_SKILLS.trim().split(",")) + { + FORBIDDEN_RAID_SKILLS_LIST.add(Integer.parseInt(id.trim())); + } + } catch (Exception e) Formulas.java @@ -1548,5 +1548,6 @@ && (type == SkillType.CONFUSION || type == SkillType.MUTE || type == SkillType.PARALYZE || type == SkillType.ROOT || type == SkillType.FEAR || type == SkillType.SLEEP - || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF)) + || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF) + || Config.FORBIDDEN_RAID_SKILLS_LIST.contains(skill.getId())) return false; // these skills should have only 1/1000 chance on raid, now it's 0. @@ -1734,5 +1735,6 @@ && (type == SkillType.CONFUSION || type == SkillType.MUTE || type == SkillType.PARALYZE || type == SkillType.ROOT || type == SkillType.FEAR || type == SkillType.SLEEP - || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF)) + || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF) + || Config.FORBIDDEN_RAID_SKILLS_LIST.contains(skill.getId())) return false; // these skills should not work on RaidBoss L2Weapon.java @@ -23,4 +23,5 @@ import javolution.util.FastList; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.handler.ISkillHandler; @@ -323,5 +324,5 @@ for (L2Skill skill : _skillsOnCrit) { - if (target.isRaid() && (skill.getSkillType() == SkillType.CONFUSION || skill.getSkillType() == SkillType.MUTE || skill.getSkillType() == SkillType.PARALYZE || skill.getSkillType() == SkillType.ROOT)) + if (target.isRaid() && (skill.getSkillType() == SkillType.CONFUSION || skill.getSkillType() == SkillType.MUTE || skill.getSkillType() == SkillType.PARALYZE || skill.getSkillType() == SkillType.ROOT || Config.FORBIDDEN_RAID_SKILLS_LIST.contains(skill.getId( )))) continue; // These skills should not work on RaidBoss Source: http://trac6.assembla.com/L2j-Brasil/changeset/282 Quote
digas82 Posted April 27, 2011 Posted April 27, 2011 i use equal pack, but for me this config dont word i did all what you say but no effect. Why? Quote
v1hack Posted April 27, 2011 Posted April 27, 2011 chronicle no matter, digas82 then you did something wrong guma wtf you giving source link if it needs access Quote
mazokista Posted April 29, 2011 Posted April 29, 2011 DIFF : Index: java/com/it/roberto/Config.java =================================================================== --- java/com/it/roberto/Config.java (revision 74) +++ java/com/it/roberto/Config.java (working copy) @@ -133,6 +133,8 @@ public static int CS_SUPPORT3_FEE; public static int CS_SUPPORT4_FEE; public static int TIMELIMITOFINVADE; + public static String FORBIDDEN_RAID_SKILLS; + public static FastList<Integer> FORBIDDEN_RAID_SKILLS_LIST = new FastList<Integer>(); public static boolean FWS_ENABLESINGLEPLAYER; public static int FWS_FIXINTERVALOFSAILRENSPAWN; public static int FWS_RANDOMINTERVALOFSAILRENSPAWN; @@ -886,6 +888,13 @@ InputStream is = new FileInputStream(new File(BOSSES_FILE)); bossesSettings.load(is); is.close(); + + + FORBIDDEN_RAID_SKILLS = otherSettings.getProperty("ForbiddenRaidSkills", "1064,100"); + for (String id : FORBIDDEN_RAID_SKILLS.trim().split(",")) + { + FORBIDDEN_RAID_SKILLS_LIST.add(Integer.parseInt(id.trim())); + } TIMELIMITOFINVADE = Integer.parseInt(bossesSettings.getProperty("TimeLimitOfInvade", "1800000")); FWS_ENABLESINGLEPLAYER = Boolean.parseBoolean(bossesSettings.getProperty("EnableSinglePlayer", "False")); FWS_FIXINTERVALOFSAILRENSPAWN = Integer.parseInt(bossesSettings.getProperty("FixIntervalOfSailrenSpawn", "1440")); Index: java/com/it/roberto/gameserver/skills/Formulas.java =================================================================== --- java/com/it/roberto/gameserver/skills/Formulas.java (revision 74) +++ java/com/it/roberto/gameserver/skills/Formulas.java (working copy) @@ -1596,7 +1596,8 @@ if (target.isRaid() && (type == SkillType.CONFUSION || type == SkillType.MUTE || type == SkillType.PARALYZE || type == SkillType.ROOT || type == SkillType.FEAR || type == SkillType.SLEEP - || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF)) + || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF) + || Config.FORBIDDEN_RAID_SKILLS_LIST.contains(skill.getId())) return false; // these skills should have only 1/1000 chance on raid, now it's 0. double defence = 0; @@ -2003,7 +2004,8 @@ if (target.isRaid() && (type == SkillType.CONFUSION || type == SkillType.MUTE || type == SkillType.PARALYZE || type == SkillType.ROOT || type == SkillType.FEAR || type == SkillType.SLEEP - || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF)) + || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF) + || Config.FORBIDDEN_RAID_SKILLS_LIST.contains(skill.getId())) return false; // these skills should not work on RaidBoss // if target reflect this skill then the effect will fail Index: java/com/it/roberto/gameserver/templates/L2Weapon.java =================================================================== --- java/com/it/roberto/gameserver/templates/L2Weapon.java (revision 74) +++ java/com/it/roberto/gameserver/templates/L2Weapon.java (working copy) @@ -305,7 +305,7 @@ for (L2Skill skill : _skillsOnCrit) { - if (target.isRaid() && (skill.getSkillType() == SkillType.CONFUSION || skill.getSkillType() == SkillType.MUTE || skill.getSkillType() == SkillType.PARALYZE || skill.getSkillType() == SkillType.ROOT)) + if (target.isRaid() && (skill.getSkillType() == SkillType.CONFUSION || skill.getSkillType() == SkillType.MUTE || skill.getSkillType() == SkillType.PARALYZE || skill.getSkillType() == SkillType.ROOT || Config.FORBIDDEN_RAID_SKILLS_LIST.contains(skill.getId( )))) continue; // These skills should not work on RaidBoss if (!skill.checkCondition(caster, target, true)) Index: java/config/bosses.ini =================================================================== --- java/config/bosses.ini (revision 74) +++ java/config/bosses.ini (working copy) @@ -1,3 +1,9 @@ +#-------------------------------------------# +# Bosses Configuration # +#-------------------------------------------# +# List of Skills that arent allowed on RaidBosses +ForbiddenRaidSkills = 1064,100 + #-------------- # Antharas - #-------------- Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.