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.
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:
Client version: ClientVerification.Required
Online player: NetState.Instances.Count
Item count should be World.Items.Count
Therefor mobiles World.Mobiles.Count
Expansion should be simply Enum.GetName(CurrentExpansion.Expansion)

and also I dont think there is a variable that just says ServUO / RunUO, I can be wrong though
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back