Combat formulas

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

Moderator: POL Developer

Post Reply
Grin

Combat formulas

Post by Grin »

Hello! it's me again;)
After core update (now version is POL095-2003-07-05 (VS.NET) compiled on Jul 5 2003 16:38:41) combat system is changed;(
I've looked in changelogs but nothing were foundion.
Was this part of combat system chenged?

Code: Select all

hit_chance = (weapon_attribute + 50.0) / (2.0 * opponent_weapon_attribute + 50.0)

if( random_float(1.0) < hitchance )
  play hit sounds and anims
  damage weapon (1 in 100 chance to lose 1 hp)
  
  damage = random_weapon_die_damage
  damage_multiplier = tactics + 50
  damage_multiplier += strength * 0.2
  damage_multiplier *= 0.01
  damage *= damage_multiplier
Or this is my mistake in script?

PS In my script i take off damage_multiplier (by division) and do my own calculations.
cucciola3000
New User
Posts: 12
Joined: Fri Aug 25, 2006 8:06 am

Post by cucciola3000 »

i have same problem... help pls :(

BR
Gnafu
Grandmaster Poster
Posts: 136
Joined: Thu Feb 02, 2006 7:29 am
Location: Livorno, Italy
Contact:

Post by Gnafu »

you posted a code but from which script?
cucciola3000
New User
Posts: 12
Joined: Fri Aug 25, 2006 8:06 am

Post by cucciola3000 »

i think that he was serching this information...

i have tried.. but i don't have found this script :(
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Combat formulas

Post by MuadDib »

Grin wrote:Hello! it's me again;)
After core update (now version is POL095-2003-07-05 (VS.NET) compiled on Jul 5 2003 16:38:41) combat system is changed;(
I've looked in changelogs but nothing were foundion.
Was this part of combat system chenged?

Code: Select all

hit_chance = (weapon_attribute + 50.0) / (2.0 * opponent_weapon_attribute + 50.0)

if( random_float(1.0) < hitchance )
  play hit sounds and anims
  damage weapon (1 in 100 chance to lose 1 hp)
  
  damage = random_weapon_die_damage
  damage_multiplier = tactics + 50
  damage_multiplier += strength * 0.2
  damage_multiplier *= 0.01
  damage *= damage_multiplier
Or this is my mistake in script?

PS In my script i take off damage_multiplier (by division) and do my own calculations.
That's the core's combat code from the Docs page. No clue if the internal damage stuff was changed or not. Check to see if you use a combat syshook also.

If no syshook, it's you mainhitscript or whatever file the weapon is using for it's hitscript.
cucciola3000
New User
Posts: 12
Joined: Fri Aug 25, 2006 8:06 am

Post by cucciola3000 »

The main hit script enter when you make an hit...

in mainhitscript i don't have found a code that control missing....
Post Reply