Delay, AttackDelay, character.delay_mod

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.

Moderator: POL Developer

Post Reply
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am
Location: Italy
Contact:

Delay, AttackDelay, character.delay_mod

Post by Lagoon » Fri Jun 09, 2006 3:52 pm

Code: Select all

03-09 Shinigami
        Added : WeaponTemplate Prop Delay [ms]
        Added : NPCDesc Prop AttackDelay [ms]
        Added : character.delay_mod [+-ms] for WeaponDelay
                If (Delay!=0) use Delay(+delay_mod) to calculate next weapon swing.
Could someone please elaborate on this?
How is it related to the following formula?
interattack delay := (15000 seconds) / ((dexterity+100) * weaponspeed)
Wasn't weapon speed expressed with the Speed prop? Is Delay replacing Speed or is it something different?[/code]

MuadDib
Former Developer
Posts: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib » Fri Jun 09, 2006 4:52 pm

If you use Delay in a weapon's itemdesc entry Weapon speed will use that instead (Delay by Millisecond) of the dex math.

Delay_Mod on a character, is a MilliSecond delay modifier for the Delay setting only. Will not affect weapons that use Speed entries.

Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am
Location: Italy
Contact:

Post by Lagoon » Fri Jun 09, 2006 5:09 pm

Ok, so, let me see if I got it right...

I have to put in the weapon itemdesc entry either Delay or Speed

1) If I put Speed

interattack delay := (15000 / ((dexterity+100) * Speed)) seconds

2) If I put Delay

interattack delay := (Delay + CInt(character.delay_mod)) milliseconds

Right?

MuadDib
Former Developer
Posts: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib » Fri Jun 09, 2006 6:01 pm

Basically ;)

Xadhoom
Neophyte Poster
Posts: 30
Joined: Fri May 26, 2006 12:53 am

Post by Xadhoom » Sat Jun 10, 2006 12:21 am

Can these props be used (and modified) in the scripts or they must be defined only in the cfg?
like character.delay_mod := etc

MuadDib
Former Developer
Posts: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib » Sat Jun 10, 2006 4:24 am

Delay is for the weapon's cfg entry

character.delay_mod := ms time is for scripts ;)

CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am
Contact:

Post by CrazyMan » Sat Jun 17, 2006 7:18 am

Delay for weapon - is static and i cant write it in game?

Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am
Location: Germany, Bavaria
Contact:

Post by Shinigami » Sat Jun 17, 2006 9:39 am

CrazyMan wrote:Delay for weapon - is static and i cant write it in game?
yes... not sure if we should modify this... if u want to modify it, add a cprop to weapon with an additional modifier, u handle in equip/unequip-script to modify the character.delay_mod. in this case u got better weapons u can give from one hand to another

this way to handle weapon speed was requested by some scripter and they got exactly what they wanted...

but maybe... should think about...

Shinigami

Post Reply