NPC swingrate question

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

NPC swingrate question

Post by stranf »

I want to create a script that "weakens" an enemy and makes him swing slower. I guess this is similar to clumsy, but it is for my bards, not mages.

Anyway, I know that swing speed is controlled by character stamina --which in turn is controlled by dexterity. My question is:
1- Does NPC swing rate depend on stamina or dex? If I were to slow the swing-rate of a monster can I simply just subtract his stamina? This would be ideal since I would not need timers to "give back" dexterity like the clumsy spell.

I have a feeling I need to play with dexterity, as it dosen't seem to make sense to have UOx3 keep track --and regen-- individual stamina points on an NPC. With thousands of NPCs, it's probably a workload on the server just to keep track of hitpoints!

Thanks for clearing this up.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Swing rate is based upon weapon speed and character dexterity.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks giwo.

But that brings up another question. Your above comment was meant to be for NPCs only right?

Swing rate should be based off of stamina for PCs, as according to the website that Grimson said our calculation is based off of:

http://web.archive.org/web/200208062216 ... mbat.shtml .

So PCs ==> current Stamina and weapon speed
NPCs ==> current Dex and weapon speed

Correct?

Thanks.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Nope, I wrote that combat code, and unless someone else changed it, Players and NPC's are virtually identical, and swing rate is always based on DEX.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

perfect, that's what I needed to know.

Thanks for your help.
Post Reply