Page 1 of 1
Attack Speed values.
Posted: 05 Mar 2010, 07:55
by Dany
What are the hidden values to calculate the attack speed value?
And where can I look to calculate it myself?
What I want to know is how much attack speed the char has without any modifier (skills).
And how the agility (and dexterity i think) modifies it.
And which value the weapons have.
Simply everything which refers to the attack value.
I know the wiki very well which gives no answer to that question.
Re: Attack Speed values.
Posted: 05 Mar 2010, 08:44
by Freeyorp101
(I'm assuming that you're asking about the tmwAthena server here.)
The base attack speed is derived from the type of weapon the character has equipped and the class of the character (unused by us, all characters are the same basic class)
The values are specified in the job_db1 [
link]. The first column specifies the class. Columns starting from the fifth specify the attack speed for each weapon type (starting from a type of 0)
The type of a weapon is specified in the item_db [
link]. The bows all have type 11 (aspd of 900). Most melee weapons have type 1 (aspd of 700); however the scythe and setzer both have type 3 (aspd 600), making them considerably faster.
Of course, there are other modifiers provided (based on the weapon used, agility, and dexterity) The calculations start at around [
here] (line number accurate as of the most recent commit f400feb).
I hope this helps.
---Freeyorp
Re: Attack Speed values.
Posted: 05 Mar 2010, 09:07
by Rotonen
And ASPD is the delay between attacks in milliseconds?
Re: Attack Speed values.
Posted: 05 Mar 2010, 21:39
by Dany
Thank you for the reply.
Yes I was talking about the tmwAthena server.
I don't understand the code and can't find the modifiers for dex or agi.
The importance for me is to know what difference concerning aspd have these two skills (dex and agi).
I found such a formula:
ASPD = 200 - SpeedMods (WeaponDelay - ([WeaponDelay*Agi/25] + [WeaponDelay*Dex/100])/10)
Which saith that dex has 1/4 aspd as agi.
How many aspd do I add to my weapon(aspd) per dex or agi?
Re: Attack Speed values.
Posted: 05 Mar 2010, 22:10
by Freeyorp101
Rotonen wrote:And ASPD is the delay between attacks in milliseconds?
As far as I can tell. If not, it's certainly something very close.
Dani wrote:How many aspd do I add to my weapon(aspd) per dex or agi?
The [
link] to pc.c in my earlier post had the effect of agi and dex on aspd; to clarify, agi is stored in sd->paramc[1], dex is stored in sd->paramc[4]. So the forumla for that particular part would be equivalent to: aspd = (weapon type base speed for the characters class) - (agi * 4 + dex) * (weapon type base speed for the characters class) / 1000.
---Freeyorp
Re: Attack Speed values.
Posted: 17 Oct 2010, 13:27
by kinwa
would it be possible to implement the attackspeed value already being calculated into the stats window? i think this is an important thing to know.
Re: Attack Speed values.
Posted: 17 Oct 2010, 14:00
by Arphetic
Manaplus has it
Re: Attack Speed values.
Posted: 17 Oct 2010, 15:34
by kinwa
i can't find it. using manaplus 1.0.6.21 linux - is it too old or do i have to enable it somewhere hidden?
Re: Attack Speed values.
Posted: 17 Oct 2010, 16:02
by 4144
kinwa wrote:i can't find it. using manaplus 1.0.6.21 linux - is it too old or do i have to enable it somewhere hidden?
Update client, it showing in status window (F2) and named "Attack Delay"
Re: Attack Speed values.
Posted: 17 Oct 2010, 17:42
by kinwa
thx, it works now
