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)
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.
I wouldn't expect something less, since you work with Psadek (or I maybe mistake you with NightW0lf from itopz, in that case soz)
Let's throw rocks at Java Golds and elevate "original L2OFF Golds", no?
We are delighted to announce our partnership with the leading resource, Active Anticheat, specializing in protection against bot programs, clickers, and additional modules for the game client that enhance the experience for both you and the players!
When you purchase Active Anticheat for our product, you will also receive a $50 discount.
Here's a brief overview of the features of Active Anticheat:
Best protection against bots, including private and premium versions.
Window limitation.
HWID spoofing protection.
Virtual machine protection.
File hash protection for client files, preventing players from modifying them (e.g., interface files).
Encryption of any game files.
Integration with Discord to attract new players!
Additional plugins:
- Window with saved player logins/passwords. Players no longer need to enter them every time!
- HWID sending to the game server.
- Game window optimizer for quick switching.
- Background FPS adjustment.
- Window name customization in the format "%character_name% - %server_name%".
- Ctrl+C/V permission.
- Login and password saving (for Interlude -> High Five).
- Launching the browser via server packets.
- Launching interface events via server packets.
- Interlude: fixing a known game bug (History: UpdateAnimation <- AActor::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop).
- Interlude: debuff feature.
9) All of this is available without modifying the game server code (some plugins may require minor changes).
Take note of newest plugin, which is highly useful:
Guides section
The Lucera2 Multiprotocol is an advanced server branch for Lineage 2 that enables seamless support for multiple client versions on a single server instance. This allows players to connect and play using either the legacy (old) client or the newer Classic client simultaneously, without any compatibility issues or loss of functionality.
Key Benefits
Dual Client Support: Both the old Interlude client and Classic: Secret of Empire 2.6 client can run concurrently on the same server. All features from the Classic client (e.g., enhanced UI, new mechanics) remain fully available, while the old client retains its alternative features (e.g., simplified interfaces for lower-end hardware).
Expanded Player Base: Ideal for regions with limited access to modern gaming setups, as it accommodates a wider range of devices and preferences, merging Legacy and Classic communities into one forum section for unified discussions.
No Functionality Gaps: Extensive testing ensures zero disruptions—players on either client experience complete game integrity, including quests, PvP, raids, and custom Lucera2 subsystems.
You can fully test and explore all aspects of Multiprotocol on the dedicated Test Server.
Supported Protocols
C6 (Old Client): Protocol versions 740–770.
Classic Client (Secret of Empire 2.6): Protocol versions 166–192.
Connect to the server you need to >>>download<<< game client launch from /system_en/. Login server setup on auto registration, admin rights in game by default .
Or you can use a patch specifying the l2.ini Connect to address classic.lucera2.com
if you already have a game client Download updated patch
All major/minor subsystems operate in a proper view.
Absolutely ready to combat the server.
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.
8 answers to this question
Recommended Posts
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.