Page 1 of 1
[SOLVED]AtackSpeed interpreter
Posted: Thu Dec 05, 2013 2:19 pm
by marcoviny
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision
Number:5420
L2JDP Revision
Number:8913
I wonder if there is a way to make the interpreter GameServer attack speed by half without causing alteration in char status.
So that if a player has 1200 attack speed him continue in this attack, but hit at half the speed.
Re: AtackSpeed interpreter
Posted: Thu Dec 05, 2013 8:17 pm
by Szponiasty
If you want to change animations speed, modify UserInfo and CharInfo packets, so they will send fake attack speeds.
Re: AtackSpeed interpreter
Posted: Fri Dec 06, 2013 6:11 pm
by marcoviny
How make this,
I know a little of java enough to make any mods, but not this
i try but not success
Re: AtackSpeed interpreter
Posted: Tue May 20, 2014 3:29 pm
by marcoviny
############################################
## About Control Animation SPEED ( ATK SPEED BUG ETC )
############################################
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java (revision 5420)
+++ java/com/l2jserver/Config.java (working copy)
+ public static float ALT_DIVIDER_ANIMATION_SPEED;
+ ALT_DIVIDER_ANIMATION_SPEED = Float.parseFloat(L2JModSettings.getProperty("AltDividerAnimationSpeed","1.4"));
+ else if (pName.equalsIgnoreCase("AltCancelDivider")) ALT_CANCEL_DIVIDER = Integer.parseInt(pValue);
Index: java/com/l2jserver/gameserver/model/actor/stat/CharStat.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/stat/CharStat.java (revision 5420)
+++ java/com/l2jserver/gameserver/model/actor/stat/CharStat.java (working copy)
@@ -156,7 +156,7 @@
if (_activeChar == null)
return 1;
- return (float) ((1.1) * getPAtkSpd() / _activeChar.getTemplate().getBasePAtkSpd());
+ return (float) ((1.1) * getPAtkSpd() / Config.ALT_DIVIDER_ANIMATION_SPEED / _activeChar.getTemplate().getBasePAtkSpd());
}
/**
@@ -471,7 +471,7 @@
if (_activeChar == null)
return 1;
- return getRunSpeed() / (float) _activeChar.getTemplate().getBaseRunSpd();
+ return getRunSpeed() / (float) _activeChar.getTemplate().getBaseRunSpd() / Config.ALT_DIVIDER_ANIMATION_SPEED;
}
/**
# Multiplyer of Animation Attack Speed ( Ex. JAVA / 1.4 ~= 66% of animation Speed )
# Default = 1.4
AltDividerAnimationSpeed = 1.4