Jump to content
  • 0

[HELP] How to limit the Atk speed and Cast speed on my server?


Question

Posted

The Atk speed and casting speed is getting really high because of buffs and custom and I want to make it max 1800 or something.

 

I already edited altsettings.properties and changed

MaxPAtkSpeed=1700

MaxMAtkSpeed=1800

 

BUT it still doesn't work :(, how to fix this ?

 

Server is interlude

4 answers to this question

Recommended Posts

  • 0
Posted

The Atk speed and casting speed is getting really high because of buffs and custom and I want to make it max 1800 or something.

 

I already edited altsettings.properties and changed

MaxPAtkSpeed=1700

MaxMAtkSpeed=1800

 

BUT it still doesn't work :(, how to fix this ?

 

Server is interlude

if you add speed on customs or tattos then edit there.

  • 0
Posted

Eh I am interested in making a max atk speed...removing stats from the custom would hurt other classes too, not all classes reach same atk speed.

  • 0
Posted
Index: config/l2jmods.properties
===================================================================
@@ -5,2 +5,8 @@
# PK Announcements:
AnnouncePk = True
+
+# Maximum Attack Speed 0
+MaxAttackSpeed = 1200
+
+# Maximum Casting Speed 0
+MaxCastingSpeed = 1400
Index: java/net/sf/l2j/Config.java
===================================================================
@@ -954,4 +954,6 @@
	public static boolean ENCHANT_BREAK_ARMOR_CRYSTAL;
	public static boolean ENCHANT_BREAK_ARMOR_BLESSED;
+    public static int MAX_PATK_SPEED;
+    public static int MAX_MATK_SPEED;
     
	/** ************************************************* **/
@@ -1897,4 +1899,6 @@

                 ALT_ANNOUNCE_PK = Boolean.parseBoolean(L2JModSettings.getProperty("AnnouncePk", "False"));
+        		MAX_PATK_SPEED = Integer.parseInt(L2JModSettings.getProperty("MaxAttackSpeed", "0"));
+        		MAX_MATK_SPEED = Integer.parseInt(L2JModSettings.getProperty("MaxCastingSpeed", "0"));
                 
             }
@@ -2445,5 +2449,7 @@
         else if (pName.equalsIgnoreCase("ChampionRewardItemID")) L2JMOD_CHAMPION_REWARD_ID = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("ChampionRewardItemQty")) L2JMOD_CHAMPION_REWARD_QTY = Integer.parseInt(pValue);
-
+        else if (pName.equalsIgnoreCase("MaxAttackSpeed")) MAX_PATK_SPEED = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("MaxCastingSpeed")) MAX_MATK_SPEED = Integer.parseInt(pValue);
+        
         // L2JMOD Wedding System
         else if (pName.equalsIgnoreCase("AllowWedding")) L2JMOD_ALLOW_WEDDING = Boolean.parseBoolean(pValue);
@@ -2461,5 +2467,5 @@
         else if (pName.equalsIgnoreCase("TvTEventRunningTime")) TVT_EVENT_RUNNING_TIME = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("TvTEventParticipationNpcId")) TVT_EVENT_PARTICIPATION_NPC_ID = Integer.parseInt(pValue);
-
+        
         // PvP settings
         else if (pName.equalsIgnoreCase("MinKarma")) KARMA_MIN_KARMA = Integer.parseInt(pValue);
Index: java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
@@ -6446,5 +6446,29 @@
	public final int getMaxCp() { return getStat().getMaxCp(); }
	public int getMAtk(L2Character target, L2Skill skill) { return getStat().getMAtk(target, skill); }
-	public int getMAtkSpd() { return getStat().getMAtkSpd(); }
+	public final int getMAtkSps(L2Character target, L2Skill skill)
+	{
+		int matk = (int)calcStat(Stats.MAGIC_ATTACK, _template.baseMAtk, target, skill); 
+		L2ItemInstance weaponInst = getActiveWeaponInstance();
+		if (weaponInst != null)
+		{
+			if (weaponInst.getChargedSpiritshot() == L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT)
+				matk *= 4;
+			else if (weaponInst.getChargedSpiritshot() == L2ItemInstance.CHARGED_SPIRITSHOT)
+				matk *= 2;
+		}
+		return matk;
+	}
+
+	public int getMAtkSpd()
+	{
+		int _matkspd = getStat().getMAtkSpd();
+		if (Config.MAX_MATK_SPEED > 0)
+		{
+			if (_matkspd > Config.MAX_MATK_SPEED)
+				return Config.MAX_MATK_SPEED;
+		}
+		return _matkspd;
+	}
+
	public int getMaxMp() { return getStat().getMaxMp(); }
	public int getMaxHp() { return getStat().getMaxHp(); }
@@ -6468,5 +6492,15 @@
     public double getPDefGiants(L2Character target) { return getStat().getPDefGiants(target); }
     
-    public int getPAtkSpd() { return getStat().getPAtkSpd(); }
+	public int getPAtkSpd()
+	{
+		int _patkspd = getStat().getPAtkSpd();
+		if (Config.MAX_PATK_SPEED > 0)
+		{
+			if (_patkspd > Config.MAX_PATK_SPEED)
+				return Config.MAX_PATK_SPEED;
+		}
+		return _patkspd;
+	}
+    
	public double getPAtkUndead(L2Character target) { return getStat().getPAtkUndead(target); }
	public double getPDefUndead(L2Character target) { return getStat().getPDefUndead(target); }

Guest
This topic is now closed to further replies.


  • Posts

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock