So last night I downloaded a copy of ServUO. Yeahee...
At a glance it looks like your using the Mal Ganisis Community Collections too, there is an exploit in the script that allows you to obtain infinite rewards. I can give you the details in a PM.
Array array = Enum.GetValues( typeof( BlueSpells ) );
int zero = array[0];
//using System.Linq;
foreach( BlueSpells entry in Enum.GetValues( typeof( BlueSpells ) ).Cast<BlueSpells>( ) )
{
}
//using System.Linq;
foreach( int entry in Enum.GetValues( typeof( BlueSpells ) ).Cast<int>( ) )
{
}
//using System.Linq;
BlueSpells[] array = Enum.GetValues( typeof( BlueSpells ) ).Cast<BlueSpells>( ).ToArray( );
//using System.Linq;
int[] array = Enum.GetValues( typeof( BlueSpells ) ).Cast<int>( ).ToArray( );
BlueSpells[] array = Enum.GetValues( typeof( BlueSpells ) ) as BlueSpells[];
int[] array = Enum.GetValues( typeof( BlueSpells ) ) as int[];
object[] array = Enum.GetValues( typeof( BlueSpells ) ) as object[];
private static object[] _BlueSpells = Enum.GetValues( typeof( BlueSpells ) ) as object[];
I feel retarded, I knew it'd be something easy.Array is a base class and has no indexer. You need to specify the type you are expecting array to hold. So for example int[] array = ...
int[] array = (int[])Enum.GetValues( typeof( BlueSpells ) );
We use essential cookies to make this site work, and optional cookies to enhance your experience.