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.
[SOLVED]AtackSpeed interpreter
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
[SOLVED]AtackSpeed interpreter
Last edited by marcoviny on Mon Jul 14, 2014 2:40 pm, edited 1 time in total.
- Szponiasty
- Advanced User
- Posts: 557
- Joined: Mon Apr 21, 2008 1:31 pm
- Location: Eastern Poland
Re: AtackSpeed interpreter
If you want to change animations speed, modify UserInfo and CharInfo packets, so they will send fake attack speeds.
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: AtackSpeed interpreter
How make this,
I know a little of java enough to make any mods, but not this
i try but not success
I know a little of java enough to make any mods, but not this
i try but not success
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: AtackSpeed interpreter
############################################
## 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
## 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