Ixtabay
Member
I'm rewriting MyRunUO and need help getting the following information into variables using c#:
Emu type
Number of players online
Total items
Total mobs
Expansion
Starting with Expansion.
I'm trying to get this into a variable to insert into a database. This doesn't work, but it should show what I'm trying to do.
Any help appreciated!
Emu type
Number of players online
Total items
Total mobs
Expansion
Starting with Expansion.
Code:
(static) ExpansionInfo CurrentExpansion( get; )
(static) ExpansionInfo[] Table( get; )
(static) ExpansionInfo GetInfo( Expansion ex )
(static) ExpansionInfo GetInfo( int ex )
(ctor) ExpansionInfo( int id, string name, ClientFlags clientFlags, FeatureFlags supportedFeatures, CharacterListFlags charListFlags, int customHousingFlag )
(ctor) ExpansionInfo( int id, string name, ClientVersion requiredClient, FeatureFlags supportedFeatures, CharacterListFlags charListFlags, int customHousingFlag )
CharacterListFlags CharacterListFlags( get; )
ClientFlags ClientFlags( get; )
int CustomHousingFlag( get; )
int ID( get; )
string Name( get; )
ClientVersion RequiredClient( get; )
FeatureFlags SupportedFeatures( get; )
virtual string ToString()
I'm trying to get this into a variable to insert into a database. This doesn't work, but it should show what I'm trying to do.
Code:
public static Expansion ExpansionInfo;
string CurExp = new ExpansionInfo.Name;
this.ExecuteNonQuery("INSERT INTO myrunuo_server_status(current_expansion) VALUE({0})", CurExp);
Any help appreciated!
Last edited: