Code:
#region npccosts
public static ushort lottonpccost = 20000;
public static ushort upgradeing120U = 30000;
public static ushort upgradeing120H = 25000;
public static ushort itemsoc = 20000;
public static ushort Conductress = 10000;
#endregion
#region npcowners
public static string LottoOwner = "";
public static string U120UOwner = "";
public static string U120HOwner = "";
public static string ItemSocowner = "";
public static string ConductressOwner = "";
#endregion
Code:
public static void GetServerInfo()
{
try
{
Ini Cli = new Ini(System.Windows.Forms.Application.StartupPath + @"\database\\serverinfo.ini");
General.ItemSocowner = Cli.ReadValue("ServerInfo", "SocItemOwner");
General.LottoOwner = Cli.ReadValue("ServerInfo", "LottoOwner");
General.U120UOwner = Cli.ReadValue("ServerInfo", "UpgradeUOwner");
General.U120HOwner = Cli.ReadValue("ServerInfo", "UpgradeHOwner");
General.ConductressOwner = Cli.ReadValue("ServerInfo", "ConductressOwner");
Console.WriteLine("Server information loaded succesfully");
General.itemsoc = ushort.Parse(Cli.ReadValue("ServerInfo", "SocItemCost"));
General.upgradeing120H = ushort.Parse(Cli.ReadValue("ServerInfo", "UpgradeHcost"));
General.upgradeing120U = ushort.Parse(Cli.ReadValue("ServerInfo", "UpgradeUCost"));
General.Conductress = ushort.Parse(Cli.ReadValue("ServerInfo", "ConductressCost"));
General.lottonpccost = ushort.Parse(Cli.ReadValue("ServerInfo", "LottoCost"));
Console.WriteLine("Server information loaded succesfully");
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
EDIT: THE ONLY THING THAT I CANT GET TO LOAD IS THE COSTS !!






