Kilra Yan

Member
What is wrong with that code?

Code:
BaseWeapon wea = o as BaseWeapon;

foreach( int i in Enum.GetValues(typeof( AosWeaponAttribute)) )

Server crashes server like that
System.InvalidCastException: Specified cast is not valid.
 
Solved.

For anyone who having that problem (just like script in colored weaps) you have to look at imbuing

foreach (long i in Enum.GetValues(typeof(AosWeaponAttribute)))
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 138 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 90 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 87 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 83 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 33 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 28 Online
    • 30 Peak
  • Arth
    Custom (Modern)
    • Players
    • 22 Online
    • 34 Peak
  • Heritage
    New Legacy
    • Players
    • 20 Online
    • 41 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back