Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [Lineage] Java Mods (https://secretexperience.net/forumdisplay.php?f=636)
-   -   [L2JServer] Lista de skills que não afeta raidbosses (https://secretexperience.net/showthread.php?t=20460)

Guma 10-04-2010 09:11 PM

Lista de skills que não afeta raidbosses
 
Properties:

Código:

+# List of Skills that arent allowed on RaidBosses
+ForbiddenRaidSkills = 1064,100
+


Config.java

Código:

@@ -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

Código:

@@ -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

Código:

@@ -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

Creditos: l2j...


Horários baseados na GMT -3. Agora são 12:55 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.