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

Donations

Total amount
$80.00
Goal
$1,000.00
Back