About "attackspeed" in the HUD, how does it work?

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

Frank25
a ghoul
a ghoul
Posts: 136
Joined: Thu Aug 12, 2004 6:38 am

About "attackspeed" in the HUD, how does it work?

Post by Frank25 » Sun Apr 03, 2005 6:37 pm

Two part question:

1. simply, how is the attack formula done? i know i read it somewhere before long ago on how you EQ calc's worn haste + spell haste = real haste.
Purely curious if someone can tell me that.


2nd, in MQ2 (and on my hud) theres an attackspeed variable.
When i wear an item with haste it either shows 140 (for 40%) and 141 (for 41%) haste.
It does not take into account spell haste.
Is this simply NOT possible anymore fr some reason, or do i just need to add the formula at point 1 above into the HUD file to calc it?

Thanks in advance

notadruid
a ghoul
a ghoul
Posts: 143
Joined: Mon Dec 08, 2003 6:02 pm

Post by notadruid » Sun Apr 03, 2005 7:08 pm

100 being normal speed. A 40 percent haste increases attacks by 40 percent: you attack at 140% your normal rate, hence the 140.

Item haste + spell haste does equal real haste. There is a cap (I believe somewhere in the neighborhood of 90-100% total) and bards have a few songs that can increase the cap.
I am not a druid.

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

Post by Grumpy » Mon Apr 04, 2005 12:07 pm

I think the problem he's referring to is whatever variable the HUD is using, is only showing item haste, not actual character haste. Spell haste (and actual charater haste) is probably one of the "unknowns" in the CHARINFO struct (assuming it's stored, and not calculated on the fly). Might want to change "Attackspeed" variable in current CHARINFO struct to "WornHaste". There are 24 unknown bytes in the CHARINFO struct immediately following Attackspeed, someone may want to poke into there and see if some of those bytes might be SpellHaste, SongHaste and Attackspeed for real.

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:11 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:48 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:49 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:51 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:52 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:53 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:54 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:55 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:56 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:57 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 9:58 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: About "attackspeed" in the HUD, how does it work?

Post by xyilla » Mon May 05, 2025 10:00 am