Jump to content

[share]list of skills which doesn't affect raidbosses


Guma!

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Welcome to JewStor Service!!!   ❖Ready-made verified wallets, exchanges, business banks and to order accounts. ❖EU/UK/US/DE Stuff: 100% Verified! Reliable financial tools for your business. ❖Popular items available include: Stripe business + Payoneer, Deutshce Bank, BBVA ES, Xapo Bank, Revolut business / personal, Santander Bank, Wallester business, Bitsa EU, Binance EU, Qonto Business, Blackcatcard EU, Shopify Payments, ICard EU, N26 EU, Naga Pay EU, Paysera EU, Mistertango Business and many others.
    • Custom = everything that is not part of my H5 client, such as Aegis skin, Death Knight skin, Constructor skin, Golden Valakas skin, an example is the pack containing 3 Golden Valakas skins+cloaks, to give you an idea, this pack consumes almost 200MB within the system, another example of custom is the Hunter Head set made by Asuki, almost 100MB within the system, every custom item added to the client, specifically within the system folder will increase the consumption of your client's virtual ram memory, the more custom added there, the faster your client will close due to critical. Around 4 to 5 custom packs that I removed from the system and made my client reach the ram virtual limit only after more than 40 hours online, in other words; It is only worth adding custom items to the system folder if it is very well compressed, maximum up to 10MB per custom pack (This pack below in the photo, only it inside your client - system consumes almost 200MB, when I removed this pack inside the system it increased the game's lifespan by almost 4h during my tests)
    • ready pack for sale with lucera files made from scratch price is 350 euros without the license the server is x30 rate the server is there to see everything test ie.. there have been several changes everything works there will be support for everything for as long as possible please, can you send me a message here, there is complete transparency in everything
    • The author has been using an alternate account under the name @project166 to promote their services, which violates our RULES. Additionally, the author does not adhere to our guidelines regarding the inclusion of pricing information.     Topic Locked.
    • Hello folks, I'm working on a l2j project and looking at the xml files of items, i can't figure out from which client files are some parameters taken, for example: set name="default_action" val="EQUIP" I've checked itemname and etcitemgroup but no luck, unless i missed it. (This specific entry is present in itemname of some newer clients for example) Anyone has a clue? Appreciated!
  • Topics

×
×
  • Create New...