I'm developing an ultra status server using an L2jAcis revision, but after a certain amount of attack speed, it becomes possible to bug your attacks, and you start attacking at an exponential speed. I would like to know if anyone has already developed a mod that resolves this situation, something similar to what was developed for l2jfrozen.
Heres the frozen code example. I tryed to migrate this code to aCis, but didint work.
Quote
### Eclipse Workspace Patch 1.0#P L2jFrozen_GameServer_831Index: head-src/com/l2jfrozen/Config.java
===================================================================--- head-src/com/l2jfrozen/Config.java (revisão 957)+++ head-src/com/l2jfrozen/Config.java (cópia de trabalho)@@-2299,6+2299,17@@publicstatic boolean CUSTOM_MERCHANT_TABLES =true;publicstatic boolean ALLOW_SIMPLE_STATS_VIEW;publicstatic boolean ALLOW_DETAILED_STATS_VIEW;+//By Jonas+publicstaticlong ALT_STOP_MOVE_DELAY;+publicstaticlong ALT_ATTACK_DELAY_BOW;+publicstaticlong ALT_ATTACK_DELAY_OTHER;+publicstaticlong ALT_ATTACK_DELAY_MAGIC;+publicstaticlong ALT_STOP_MOVE_DELAY_MAGIC;+publicstaticlong ALT_ATTACK_DELAY_WITH_ATKSPD;publicstatic boolean ALLOW_ONLINE_VIEW;publicstatic boolean WELCOME_HTM;publicstaticString ALLOWED_SKILLS;@@-2432,6+2443,19@@
ALLOW_DETAILED_STATS_VIEW =Boolean.valueOf(L2JFrozenSettings.getProperty("AllowDetailedStatsView","False"));
ALLOW_ONLINE_VIEW =Boolean.valueOf(L2JFrozenSettings.getProperty("AllowOnlineView","False"));+//BY JONAS+ ALT_STOP_MOVE_DELAY =Long.parseLong(L2JFrozenSettings.getProperty("AltStopMoveDelay","50"));+ ALT_ATTACK_DELAY_BOW =Long.parseLong(L2JFrozenSettings.getProperty("AltAttackDelayBow","50"));+ ALT_ATTACK_DELAY_OTHER =Long.parseLong(L2JFrozenSettings.getProperty("AltAttackDelayOther","50"));+ ALT_ATTACK_DELAY_WITH_ATKSPD =Long.parseLong(L2JFrozenSettings.getProperty("AltAttackDelayWithAtkSpd","50"));+ ALT_ATTACK_DELAY_MAGIC =Long.parseLong(L2JFrozenSettings.getProperty("AltAttackDelayMagic","50"));+ ALT_STOP_MOVE_DELAY_MAGIC =Long.parseLong(L2JFrozenSettings.getProperty("AltStopMoveDelayMagic","50"));+
KEEP_SUBCLASS_SKILLS =Boolean.parseBoolean(L2JFrozenSettings.getProperty("KeepSubClassSkills","False"));
ALLOWED_SKILLS = L2JFrozenSettings.getProperty("AllowedSkills","541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,617,618,619");@@-5465,6+5489,55@@{
DM_REVIVE_DELAY =Long.parseLong(pValue);}++//By jonas+elseif(pName.equalsIgnoreCase("AltStopMoveDelay"))+{+ ALT_STOP_MOVE_DELAY =Long.parseLong(pValue);+}++elseif(pName.equalsIgnoreCase("AltAttackDelayBow"))+{+ ALT_ATTACK_DELAY_BOW =Long.parseLong(pValue);+}++elseif(pName.equalsIgnoreCase("AltAttackDelayOther"))+{+ ALT_ATTACK_DELAY_OTHER =Long.parseLong(pValue);+}++elseif(pName.equalsIgnoreCase("AltAttackDelayWithAtkSpd"))+{+ ALT_ATTACK_DELAY_WITH_ATKSPD =Long.parseLong(pValue);+}++elseif(pName.equalsIgnoreCase("AltAttackDelayMagic"))+{+ ALT_STOP_MOVE_DELAY_MAGIC =Long.parseLong(pValue);+}++elseif(pName.equalsIgnoreCase("AltStopMoveDelayMagic"))+{+ ALT_ATTACK_DELAY_MAGIC =Long.parseLong(pValue);+}++++elsereturnfalse;returntrue;Index: head-src/com/l2jfrozen/gameserver/model/L2Character.java
===================================================================--- head-src/com/l2jfrozen/gameserver/model/L2Character.java (revisão 957)+++ head-src/com/l2jfrozen/gameserver/model/L2Character.java (cópia de trabalho)@@-294,6+294,11@@/** The _meditated. */private boolean _meditated;++/**By Jonas*/+private boolean moved =false;+private boolean movedMagic =false;+private boolean movedDelay =true;/** Zone system<br> x^2 or x*x. */publicstatic final int ZONE_PVP =1;@@-1102,9+1107,85@@
_log.fine(getName()+" doAttack: target="+ target);}+// Get the active weapon item corresponding to the active weapon instance (always equiped in the right hand)+ L2Weapon weaponItem = getActiveWeaponItem();++//By jonas+++if(isMoving()|| getMoved()&& weaponItem != null && weaponItem.getItemType()== L2WeaponType.BOW)+{+try+{+Thread.sleep(Config.ALT_STOP_MOVE_DELAY);+ stopMove(null);+}+catch(InterruptedException e)+{+System.out.println("Houve uma falha com bow");+}++try+{+//Parou de atacar com bow+Thread.sleep(Config.ALT_ATTACK_DELAY_BOW);+}+catch(InterruptedException ex)+{+System.out.println("Houve uma falha com bow");+}+//Voltou a atacar com bow+ setMoved(false);++++}++if(isMoving()|| getMoved()&& weaponItem != null && weaponItem.getItemType()!= L2WeaponType.BOW)+{+try+{+Thread.sleep(Config.ALT_STOP_MOVE_DELAY);+ stopMove(null);+}+catch(InterruptedException e)+{+System.out.println("Houve uma falha sem bow");+}++try+{+//Parou de atacar sem bow+Thread.sleep(Config.ALT_ATTACK_DELAY_OTHER);+}+catch(InterruptedException ex)+{+System.out.println("Houve uma falha sem bow");+}+//Voltou a atacar sem bow+ setMoved(false);+++}++if(getPAtkSpd()>500)+{+try+{+//Parou de atacar+Thread.sleep(Config.ALT_ATTACK_DELAY_WITH_ATKSPD);++}+catch(InterruptedException e)+{+System.out.println("Houve um erro (atkspd)");+}+}+if(target == null)return;+if(isAlikeDead()){// If L2PcInstance is dead or the target is dead, the action is stoped@@-1217,9+1298,7@@// Get the active weapon instance (always equiped in the right hand)
L2ItemInstance weaponInst = getActiveWeaponInstance();-// Get the active weapon item corresponding to the active weapon instance (always equiped in the right hand)- L2Weapon weaponItem = getActiveWeaponItem();-+if(weaponItem != null && weaponItem.getItemType()== L2WeaponType.ROD){// You can't make an attack with a fishing pole.@@-1790,6+1869,31@@return;}+//by j+if(isMoving()|| getMovedMagic())+{+try+{+Thread.sleep(Config.ALT_ATTACK_DELAY_MAGIC);+ stopMove(null);+}+catch(InterruptedException e)+{+System.out.println("Houve uma falha com bow");+}++try+{+//Parou de atacar com bow+Thread.sleep(Config.ALT_STOP_MOVE_DELAY_MAGIC);+}+catch(InterruptedException ex)+{+System.out.println("Houve uma falha com bow");+}+ setMovedMagic(false);+}+if(isSkillDisabled(skill.getId())){if(activeChar instanceof L2PcInstance &&!(skill.getId()==2166))@@-11256,4+11360,25@@{return _triggeredSkills;}++publicvoid setMoved(boolean x)+{+ moved = x;+}++public boolean getMoved()+{+return moved;+}++publicvoid setMovedMagic(boolean x)+{+ movedMagic = x;+}++public boolean getMovedMagic()+{+return movedMagic;+}+}Index: config/functions/l2jfrozen.properties
===================================================================--- config/functions/l2jfrozen.properties (revisão 957)+++ config/functions/l2jfrozen.properties (cópia de trabalho)@@-280,4+280,38@@ProtectorSkillLevel=13ProtectorSkillTime=600# Npc Protector Message-ProtectorMessage=HeyYou!,NeverKillOnThisArea,GoReadTheRules!
\ No newline at end of file
+ProtectorMessage=HeyYou!,NeverKillOnThisArea,GoReadTheRules!+++##############################################+# CONFIGS FOR CRAZYWAR PVP #+##############################################++#Delay com bow
+AltAttackDelayBow=50++#Delay sem bow
+AltAttackDelayOther=400++#Delay magic
+AltAttackDelayMagic=50++#DelayforAtkSpd+AltAttackDelayWithAtkSpd=50++#DelayFor stopMove in attack
+AltStopMoveDelay=300++#DelayFor stopMove in attack
+AltStopMoveDelayMagic=500+Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/MoveBackwardToLocation.java
===================================================================--- head-src/com/l2jfrozen/gameserver/network/clientpackets/MoveBackwardToLocation.java (revisão 957)+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/MoveBackwardToLocation.java (cópia de trabalho)@@-125,6+125,9@@double dx = _targetX - _curX;double dy = _targetY - _curY;+//DELAY PARA ATACAR OU USAR SKILL NOVAMENTE DEPOIS DE ARDAR+ activeChar.setMoved(true);+ activeChar.setMovedMagic(true);// Can't -niif(activeChar.isOutOfControl()|| dx * dx + dy * dy >98010000)// 9900*9900{if(isMoving()|| getMovedMagic())+{+try+{+Thread.sleep(Config.ALT_ATTACK_DELAY_MAGIC);- stopMove(null);+}Ou remove o método stopMove(null)
Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects.
If you are interested in anything like Adena, Coins, Equip, write to us
Discord - pchelacoin
Telegram - https://t.me/ipchelacoin
BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM
TOP PRICE !!!!!!!
L2Elixir – Patch 4 Is Live!
We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.
⚙️ General
Enabled Class Change service (same class type only)
ALT + B → Services → Character Development
Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock
Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects
Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!
🎒 Items
Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior)
Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item)
Added Dualsword Craft Stamp into Milestone Exchange list
🧙 Skills
Fixed Banish Undead lethal chance
Hot Springs Malaria and similar effects now level up faster while being attacked
Question
Hash
I'm developing an ultra status server using an L2jAcis revision, but after a certain amount of attack speed, it becomes possible to bug your attacks, and you start attacking at an exponential speed. I would like to know if anyone has already developed a mod that resolves this situation, something similar to what was developed for l2jfrozen.
Heres the frozen code example. I tryed to migrate this code to aCis, but didint work.
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now