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 present to your attention two options for the Hellbound location map
details in the archive
if you have larger effect files, you do not need to replace them
download
updates can be made behind the scenes, so if you catch a crit, post on the forum or download the archive, it may have already been fixed
additionally you can download
all la2 music from the latest version of the game 2025 download
the entire La2 ambisound from the latest version of the game 2025 download
I do what I like because I don't need to push myself to do things for L2 as a means of income. You, on the other hand, are here trying to scam people for $20k files...
But, since you're so talented and competent, I suppose you must be thriving on the fruits of your talents as an L2Off dev, no?
Oh wait
Guess not
If you have error
[ERR] 1067 - Invalid default value for 'createDate'
`createDate` date DEFAULT NULL '00-00-0000',
need use
`createDate` date DEFAULT NULL,
What game client do you need here?
I can't even log in!
# Auto account creation
# ----------------------------
# Auto account creation
# Default: True
AutoCreateAccounts = True
What did I do wrong?
ServerAddr=127.0.0.1
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.