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)
📢 OBT Success – Get Ready for Launch: November 28!!
The Open Beta was an absolute blast!
Over 160+ Master Accounts successfully claimed their reward from The Judge, proving once again how strong and loyal this community truly is.
🔥 Missed the event?
Don’t worry — because so many players asked for another chance, we will host an additional Event very soon! Stay tuned for details.
Community Growth
We’ve already surpassed 500 Master Accounts registered on our forums — and the numbers keep rising every hour.
It feels like the old days… the same energy, the same hype, the same love for Lineage II.
Let’s rebuild L2Elixir the way we remember it:
No shortcuts, no nonsense — just pure old nostalgic gameplay, community spirit, and that classic adventure we all grew up with.
✨ The journey continues…
Launch: November 28, 21:00 UTC+2
Be there when the legend returns.
🔗 Website: https://l2elixir.org/
💬 Discord: https://discord.gg/5ydPHvhbxs
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