RedDragon

Initiate
Hello friends,
how can i add Balaced to two handed melee weapons and remove it from throwing?

Thanks for your help.
 
You can make a new base class for two-handed weapons Take a look at BaseRanged script and find this bit of code in BaseWeapon:

Code:
if (Core.ML && this is BaseRanged && ((BaseRanged)this).Balanced)
                list.Add(1072792); // Balanced

You can also make them custom two-handed weapons that carry the property, might be easier and require less Distro modification
 
You can make a new base class for two-handed weapons Take a look at BaseRanged script and find this bit of code in BaseWeapon:

Code:
if (Core.ML && this is BaseRanged && ((BaseRanged)this).Balanced)
                list.Add(1072792); // Balanced

You can also make them custom two-handed weapons that carry the property, might be easier and require less Distro modification
Two Handed Weapon is...? BaseTwoHanded?
 
He is talking about BaseWeapon.cs

Search for the line(s) of code he provided in that.
yeah, but, now what i must do?
something like this: ?

Code:
if (Core.ML && this is BaseRanged && ((BaseRanged)this).Balanced)
list.Add(1072792); // Balanced
if (Core.ML && this is BaseTwoHanded && ((BaseTwoHanded)this).Balanced)
list.Add(1072792); // Balanced
 
Last edited:
  1. if (Core.ML && this is BaseTwoHanded && ((BaseTwoHanded)this).Balanced)
  2. list.Add(1072792); // Balanced

Yes in BaseWeapon you would need that portion, and your BaseTwoHanded.cs would reflect that property as well. [See how its expressed in BaseRanged as an example.]
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 162 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 106 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 78 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 75 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 25 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 24 Online
    • 30 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 19 Online
    • 32 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 18 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 17 Online
    • 34 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back