Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2014, 08:00 PM
Torven
Sarnak
 
Join Date: Aug 2014
Posts: 76
Default

What, my other two walls of text weren't worth reading? :P

I'm using the TAKP codebase and Cavedude added some things to #showstats there. One of which is NPC attack delay. This makes testing this much easier.

The Idol of Zek is my current guinea pig NPC. Here's a pre-fix log:

Code:
Fight #5 [3] The Idol of Rallos Zek - Mon Sep 08 16:11:27 2014 - Duration: 12m 55s
Rounds: 216; Bashes: 152; Dmg Type(s): hit; Swings: 401
Rampages: 39 (chance per round: 18%; chance per swing: 9.7%)
rounds with 1 swings: 24 (13.5%)
rounds with 2 swings: 153 (86.4%)
39 rounds excluded for having special attacks or being double

Avg pre-slow round delay: 3.604; Rounds/sec: 0.277; Swings/sec: 0.517
Preslow Swings: 401;  Preslow time: 775
(R2)3(1)4(2)4(2)3(2)4(2)3(2)4(2)4(2)3(2)4(1)3(2)4(2)4(2)3(1)4(2)3(2)4(2)4(2)
3(1)4(2)4(R2)3(2)4(2)3(2)4(2)4(2)3(1)4(1)3(2)4(2)4(2)3(2)4(1)3(2)4(R2)4(2)3(
2)4(2)3(2)4(2)4(2)3(2)4(2)3(2)4(2)4(2)3(R1)4(2)3(R2)4(2)4(R1)3(2)4(R2)3(R2)4
(2)4(1)3(2)4(R2)3(R1)4(2)4(2)3(2)4(2)3(2)4(2)4(2)3(2)4(2)3(2)4(2)4(2)3(R2)4(
2)3(2)4(2)4(2)3(2)4(2)4(2)3(R2)4(2)3(2)4(2)4(R2)3(2)4(R2)3(2)4(2)4(2)3(2)4(1
)3(1)4(2)4(R2)3(2)4(2)3(2)4(2)4(2)3(2)4(1)3(1)4(R2)4(2)3(2)4(1)3(2)4(R2)4(2)
3(2)4(2)3(2)4(R2)4(2)3(2)4(R2)3(2)4(2)4(2)3(1)4(2)3(R2)4(2)4(R2)3(1)4(R2)3(2
)4(2)4(2)3(2)4(2)3(2)4(2)4(2)3(2)4(2)4(2)3(2)4(2)3(2)4(2)4(2)3(2)4(2)3(2)4(2
)4(R2)3(2)4(1)3(R1)4(R2)4(2)3(2)4(2)3(1)4(2)4(R2)3(2)4(2)3(2)4(2)4(2)3(2)4(R
1)3(R2)4(2)4(R1)3(2)4(2)3(2)4(2)4(1)3(2)4(1)3(2)4(2)4(2)3(2)4(2)3(R2)4(2)4(2
)3(2)4(2)4(R2)3(2)4(2)3(1)4(R2)4(R1)3(R2)4(R2)3(2)4(2)4(1)3(2)4(2)3(2)4(2)4(
R2)3(R2)4(2)3(1)4(2)4(2)3(2)4(R2)3(2)4(2)4(1)3(2)4(2)3(1)4(2)4(R2)

Avg pre-slow bash delay: 5.139; Bashes per second: 0.194
5-5-5-5-5-6-5-5-5-5-5-6-5-5-5-5-5-5-6-5-5-5-5-5-6-5-5-5-5-5-5-5-6-5-5-5-5-5-
5-6-5-5-5-5-5-5-5-5-6-5-5-5-5-5-5-5-6-5-R5-5-5-5-5-6-5-R5-5-5-5-5-6-5-5-5-5-
5-6-5-5-5-5-5-5-6-5-5-R5-5-5-5-6-5-5-5-5-5-5-5-6-5-5-5-5-5-5-R5-5-5-5-5-6-5-
5-5-5-5-6-5-5-5-5-5-5-6-5-5-5-5-5-R5-6-5-5-5-5-5-6-5-5-5-5-5-5-6-5-5-5-5-5-5
-6
-----------------------------------------------------------------------------
Fight #6 [3] The Idol of Rallos Zek - Mon Sep 08 16:28:09 2014 - Duration: 6m 31s
Rounds: 63; Bashes: 45; Dmg Type(s): hit; Swings: 117
Rampages: 13 (chance per round: 20.6%; chance per swing: 11.1%)
rounds with 1 swings: 7 (14%)
rounds with 2 swings: 43 (86%)
13 rounds excluded for having special attacks or being double

Avg post-slow round delay: 6.306; Rounds/sec: 0.158; Swings/sec: 0.299
Postslow Swings: 117;  Postslow time: 391
(R2)6(2)6(2)7(1)6(1)6(2)7(R1)6(2)6(R1)7(2)6(R2)6(2)6(2)7(2)6(2)6(2)7(2)6(2)6
(2)7(2)6(2)6(R2)6(R2)7(2)6(2)6(2)7(2)6(2)6(2)7(2)6(1)6(2)7(2)6(2)6(R2)6(2)7(
R2)6(1)6(2)7(2)6(R2)6(1)7(2)6(2)6(R2)6(2)7(2)6(2)6(2)7(2)6(R2)6(2)7(R2)6(2)6
(2)6(2)7(2)6(1)6(2)7(2)6(1)6(2)7(R2)

Avg post-slow bash delay: 8.886; Bashes per second: 0.112
9-9-8-9-9-9-9-9-9-9-9-8-9-9-9-9-9-9-9-9-9-8-9-9-9-9-9-9-9-9-8-9-9-9-9-9-9-9-
8-9-9-9-9-R9
That is a slowed and unslowed parse with a 0% attack rate modifier, so the attack delay unslowed is 3600. Here's the #showstats:

Code:
[Mon Sep 08 16:35:40 2014] You say, '#showstats'
[Mon Sep 08 16:35:40 2014]   Level: 66  AC: 1057  Class: 1  Size: 15.0  Haste: 0
[Mon Sep 08 16:35:40 2014]   HP: 2265000  Max HP: 2265000
[Mon Sep 08 16:35:40 2014]   Mana: 0  Max Mana: 0
[Mon Sep 08 16:35:40 2014]   Total ATK: 0  Worn/Spell ATK (Cap 250): 0
[Mon Sep 08 16:35:40 2014]   STR: 225  STA: 225  DEX: 225  AGI: 225  INT: 225  WIS: 225  CHA: 225
[Mon Sep 08 16:35:40 2014]   MR: 1  PR: 128  FR: 400  CR: 570  DR: 128 Corruption: 15
[Mon Sep 08 16:35:40 2014]   Race: 66  BaseRace: 66  Texture: 1  HelmTexture: 0  Gender: 2  BaseGender: 2
[Mon Sep 08 16:35:40 2014]   Face:  0 Beard: 255  BeardColor: 255  Hair: 255  HairColor: 255
[Mon Sep 08 16:35:40 2014]   EntityID: 792  PetID: 0  OwnerID: 0 AIControlled: 1 Targetted: 1
[Mon Sep 08 16:35:40 2014]   NPCID: 113341  SpawnGroupID: 113341 Grid: 0 LootTable: 0 FactionID: 545 SpellsID: 0 
[Mon Sep 08 16:35:40 2014]   Accuracy: 0 MerchantID: 0 EmoteID: 0 Runspeed: 1.250000 Walkspeed: 0.662500
[Mon Sep 08 16:35:40 2014]   Attack Speed: 3600 SeeInvis: 1 SeeInvUndead: 1 SeeHide: 1 SeeImpHide: 0
[Mon Sep 08 16:35:40 2014] Coin: 0p 0g 0s 0c
[Mon Sep 08 16:35:40 2014] 0 items on #The_Idol_of_Rallos_Zek000.
[Mon Sep 08 16:35:40 2014]   AggroRange: 75  AssistRange: 75

[Mon Sep 08 16:28:26 2014] You say, '#showstats'
[Mon Sep 08 16:28:26 2014]   Level: 66  AC: 1057  Class: 1  Size: 15.0  Haste: -75
[Mon Sep 08 16:28:26 2014]   HP: 2265000  Max HP: 2265000
[Mon Sep 08 16:28:26 2014]   Mana: 0  Max Mana: 0
[Mon Sep 08 16:28:26 2014]   Total ATK: 0  Worn/Spell ATK (Cap 250): 0
[Mon Sep 08 16:28:26 2014]   STR: 225  STA: 225  DEX: 225  AGI: 225  INT: 225  WIS: 225  CHA: 225
[Mon Sep 08 16:28:26 2014]   MR: 1  PR: 128  FR: 400  CR: 570  DR: 128 Corruption: 15
[Mon Sep 08 16:28:26 2014]   Race: 66  BaseRace: 66  Texture: 1  HelmTexture: 0  Gender: 2  BaseGender: 2
[Mon Sep 08 16:28:26 2014]   Face:  0 Beard: 255  BeardColor: 255  Hair: 255  HairColor: 255
[Mon Sep 08 16:28:26 2014]   EntityID: 792  PetID: 0  OwnerID: 0 AIControlled: 1 Targetted: 1
[Mon Sep 08 16:28:26 2014]   NPCID: 113341  SpawnGroupID: 113341 Grid: 0 LootTable: 0 FactionID: 545 SpellsID: 0 
[Mon Sep 08 16:28:26 2014]   Accuracy: 0 MerchantID: 0 EmoteID: 0 Runspeed: 1.250000 Walkspeed: 0.662500
[Mon Sep 08 16:28:26 2014]   Attack Speed: 6300 SeeInvis: 1 SeeInvUndead: 1 SeeHide: 1 SeeImpHide: 0
[Mon Sep 08 16:28:26 2014] Coin: 0p 0g 0s 0c
[Mon Sep 08 16:28:26 2014] 0 items on #The_Idol_of_Rallos_Zek000.
[Mon Sep 08 16:28:26 2014]   AggroRange: 75  AssistRange: 75

Now here's a post-fix log:

Code:
Fight #5 [3] The Idol of Rallos Zek - Mon Sep 08 16:53:27 2014 - Duration: 10m 34s
Rounds: 96; Bashes: 92; Dmg Type(s): hit; Swings: 179
Rampages: 17 (chance per round: 17.7%; chance per swing: 9.4%)
rounds with 1 swings: 11 (13.9%)
rounds with 2 swings: 68 (86%)
17 rounds excluded for having special attacks or being double

Avg pre-slow round delay: 3.597; Rounds/sec: 0.278; Swings/sec: 0.526
Preslow Swings: 127;  Preslow time: 241
(2)4(2)3(2)4(2)3(2)4(2)4(2)3(2)4(1)3(2)4(2)4(2)3(1)4(2)3(R2)4(2)4(2)3(2)4(2)
3(2)4(2)4(2)3(2)4(R2)3(2)4(2)4(2)3(R1)4(2)4(R2)3(2)4(R1)3(2)4(2)4(R2)3(1)4(2
)3(2)4(2)4(2)3(2)4(2)3(2)4(2)4(R2)3(1)4(2)3(2)4(2)4(2)3(2)4(2)3(R2)4(R2)4(2)
3(2)4(R2)3(1)4(R2)4(2)3(1)4(2)3(1)4(R2)4(2)3(R2)4(2)3(2)
Avg post-slow round delay: 14.555; Rounds/sec: 0.068; Swings/sec: 0.132
Postslow Swings: 52;  Postslow time: 393
4(2)15(R2)14(2)14(2)15(1)14(2)15(2)14(2)14(2)15(2)14(2)15(2)14(2)14(R2)15(2)
14(2)15(1)14(R2)14(1)15(2)14(1)15(2)14(2)14(R2)15(2)14(2)15(2)14(2)

Avg pre-slow bash delay: 5.148; Bashes per second: 0.194
5-5-5-5-6-5-5-5-5-5-5-6-5-5-5-5-5-5-6-5-5-5-5-R5-5-6-5-5-5-5-R5-5-6-5-5-5-5-
5-6-5-5-5-5-5-5-6-5
Avg post-slow bash delay: 8.883; Bashes per second: 0.112
-5-9-9-9-8-9-9-9-9-9-9-9-9-9-8-9-9-9-9-9-9-9-8-9-9-9-9-9-9-9-9-8-9-9-9-9-9-9
-9-9-9-8-9-9
And the #showstats:

Code:
[Mon Sep 08 16:53:23 2014] You say, '#showstats'
[Mon Sep 08 16:53:23 2014]   Level: 66  AC: 1057  Class: 1  Size: 15.0  Haste: 0
[Mon Sep 08 16:53:23 2014]   HP: 2265000  Max HP: 2265000
[Mon Sep 08 16:53:23 2014]   Mana: 0  Max Mana: 0
[Mon Sep 08 16:53:23 2014]   Total ATK: 0  Worn/Spell ATK (Cap 250): 0
[Mon Sep 08 16:53:23 2014]   STR: 225  STA: 225  DEX: 225  AGI: 225  INT: 225  WIS: 225  CHA: 225
[Mon Sep 08 16:53:23 2014]   MR: 1  PR: 128  FR: 400  CR: 570  DR: 128 Corruption: 15
[Mon Sep 08 16:53:23 2014]   Race: 66  BaseRace: 66  Texture: 1  HelmTexture: 0  Gender: 2  BaseGender: 2
[Mon Sep 08 16:53:23 2014]   Face:  0 Beard: 255  BeardColor: 255  Hair: 255  HairColor: 255
[Mon Sep 08 16:53:23 2014]   EntityID: 309  PetID: 0  OwnerID: 0 AIControlled: 1 Targetted: 1
[Mon Sep 08 16:53:23 2014]   NPCID: 113341  SpawnGroupID: 113341 Grid: 0 LootTable: 0 FactionID: 545 SpellsID: 0 
[Mon Sep 08 16:53:23 2014]   Accuracy: 0 MerchantID: 0 EmoteID: 0 Runspeed: 1.250000 Walkspeed: 0.662500
[Mon Sep 08 16:53:23 2014]   Attack Speed: 3600 SeeInvis: 1 SeeInvUndead: 1 SeeHide: 1 SeeImpHide: 0
[Mon Sep 08 16:53:23 2014] Coin: 0p 0g 0s 0c
[Mon Sep 08 16:53:23 2014] 0 items on #The_Idol_of_Rallos_Zek000.
[Mon Sep 08 16:53:23 2014]   AggroRange: 75  AssistRange: 75


[Mon Sep 08 16:57:32 2014] You say, '#showstats'
[Mon Sep 08 16:57:32 2014]   Level: 66  AC: 1057  Class: 1  Size: 15.0  Haste: -75
[Mon Sep 08 16:57:32 2014]   HP: 2265000  Max HP: 2265000
[Mon Sep 08 16:57:32 2014]   Mana: 0  Max Mana: 0
[Mon Sep 08 16:57:32 2014]   Total ATK: 0  Worn/Spell ATK (Cap 250): 0
[Mon Sep 08 16:57:32 2014]   STR: 225  STA: 225  DEX: 225  AGI: 225  INT: 225  WIS: 225  CHA: 225
[Mon Sep 08 16:57:32 2014]   MR: 1  PR: 128  FR: 400  CR: 570  DR: 128 Corruption: 15
[Mon Sep 08 16:57:32 2014]   Race: 66  BaseRace: 66  Texture: 1  HelmTexture: 0  Gender: 2  BaseGender: 2
[Mon Sep 08 16:57:32 2014]   Face:  0 Beard: 255  BeardColor: 255  Hair: 255  HairColor: 255
[Mon Sep 08 16:57:32 2014]   EntityID: 309  PetID: 0  OwnerID: 0 AIControlled: 1 Targetted: 1
[Mon Sep 08 16:57:32 2014]   NPCID: 113341  SpawnGroupID: 113341 Grid: 0 LootTable: 0 FactionID: 545 SpellsID: 0 
[Mon Sep 08 16:57:32 2014]   Accuracy: 0 MerchantID: 0 EmoteID: 0 Runspeed: 1.250000 Walkspeed: 0.662500
[Mon Sep 08 16:57:32 2014]   Attack Speed: 14400 SeeInvis: 1 SeeInvUndead: 1 SeeHide: 1 SeeImpHide: 0
[Mon Sep 08 16:57:32 2014] Coin: 0p 0g 0s 0c
[Mon Sep 08 16:57:32 2014] 0 items on #The_Idol_of_Rallos_Zek000.
[Mon Sep 08 16:57:32 2014]   AggroRange: 75  AssistRange: 75
Reply With Quote
  #2  
Old 09-08-2014, 08:32 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
Originally Posted by Torven View Post
What, my other two walls of text weren't worth reading? :P
No, they are :P Although the spell resist one less so since that was pretty much correct besides for partials and I haven't read the double attack one yet ...

If no one else does, I'll probably push this changes after a quick verification on live :P (like 1min parses max XD)
Reply With Quote
  #3  
Old 09-08-2014, 09:34 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Okay, tested on live, verified your logs. Commited now.

Edit: In regards to the DB changes, I have no problem with them, but I'd want some input from the devs that deal more with that shit :P Also, if we could just change so the DB entry is what you suggested but it translates into what our code currently does, that could be fine as well :P

Last edited by demonstar55; 09-08-2014 at 11:16 PM..
Reply With Quote
  #4  
Old 09-08-2014, 11:54 PM
Torven
Sarnak
 
Join Date: Aug 2014
Posts: 76
Default

I have a big correction to make. EQ Emulator is not currently changing the bash timer when you adjust a NPC's attack rate. I made this error because Cavedude globally reduced the attack rate of every NPC to a maximum of 3 seconds per my data in the database, and I assumed the faster bash rates I was seeing from NPCs was because of that and I stupidly didn't verify this.

So, the problem is merely that NPCs are just bashing too fast. It should be 8 seconds instead of 5.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:35 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3