Attack Speed values.

A place for The Mana World players to discuss game-related topics outside the scope of development including guilds, player interactions, game meta and more.


Post Reply
Dany
Peon
Peon
Posts: 2
Joined: 05 Mar 2010, 07:47

Attack Speed values.

Post 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.
Dany
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 769
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: Attack Speed values.

Post 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
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Re: Attack Speed values.

Post by Rotonen »

And ASPD is the delay between attacks in milliseconds?
This message used to be meaningful.
Dany
Peon
Peon
Posts: 2
Joined: 05 Mar 2010, 07:47

Re: Attack Speed values.

Post 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?
Dany
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 769
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: Attack Speed values.

Post 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
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
kinwa
Novice
Novice
Posts: 154
Joined: 06 Dec 2008, 14:11

Re: Attack Speed values.

Post 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.
Arphetic
Novice
Novice
Posts: 183
Joined: 28 Jun 2010, 23:51

Re: Attack Speed values.

Post by Arphetic »

Manaplus has it
bcs86 wrote:This game is a long way from looking like something people could take seriously.
kinwa
Novice
Novice
Posts: 154
Joined: 06 Dec 2008, 14:11

Re: Attack Speed values.

Post 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?
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: Attack Speed values.

Post 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"
kinwa
Novice
Novice
Posts: 154
Joined: 06 Dec 2008, 14:11

Re: Attack Speed values.

Post by kinwa »

thx, it works now :)
Post Reply