1.1.0 - install + stat gen
This commit is contained in:
parent
65714e77ad
commit
16dbfe86fa
|
@ -1,6 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
|
@ -0,0 +1,23 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.DB
|
||||
{
|
||||
internal class MySql
|
||||
{
|
||||
public static MySqlConnection MSQLCo()
|
||||
{
|
||||
MySqlConnection conn;
|
||||
string myConnectionString;
|
||||
|
||||
myConnectionString = $"server={JSON.settings.GetdbHost()};port={JSON.settings.GetdbPort()};uid={JSON.settings.GetdbUser()};pwd={JSON.settings.GetdbPass()};database={JSON.settings.GetdbName()};";
|
||||
conn = new MySqlConnection();
|
||||
conn.ConnectionString = myConnectionString;
|
||||
return conn;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,326 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Body
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBstrint = "";
|
||||
private static string iBstrdex = "";
|
||||
private static string iBdex = "";
|
||||
private static string iBdexint = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Body Armour")
|
||||
{
|
||||
if (reader.GetString("type") == "int_armour")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_armour")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_int_armour")
|
||||
{
|
||||
iBstrint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_dex_armour")
|
||||
{
|
||||
iBstrdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_armour")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_int_armour")
|
||||
{
|
||||
iBdexint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/BODY.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Body Armour)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != null || iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != null || iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != null || iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != null || iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != null || iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != null || iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != null || iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != null || iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != null || iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != null || iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != null || iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != null || iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != null || iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != null || iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != null || iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != null || iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != null || iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != null || iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,326 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Boots
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBstrint = "";
|
||||
private static string iBstrdex = "";
|
||||
private static string iBdex = "";
|
||||
private static string iBdexint = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Boots")
|
||||
{
|
||||
if (reader.GetString("type") == "int_armour")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_armour")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_int_armour")
|
||||
{
|
||||
iBstrint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_dex_armour")
|
||||
{
|
||||
iBstrdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_armour")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_int_armour")
|
||||
{
|
||||
iBdexint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/BOOTS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Boots)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,191 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Bows
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Bow")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "Crossbow")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "Quiver")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/BOWS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Bows and Crossbows)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,184 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Claws
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Claw")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/CLAWS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Claws)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,183 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Daggers
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Dagger")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/DAGGERS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Daggers)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,303 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Focus
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBstrint = "";
|
||||
private static string iBstrdex = "";
|
||||
private static string iBdex = "";
|
||||
private static string iBdexint = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Focus")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/FOCUS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Focus)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,326 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Gloves
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBstrint = "";
|
||||
private static string iBstrdex = "";
|
||||
private static string iBdex = "";
|
||||
private static string iBdexint = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Gloves")
|
||||
{
|
||||
if (reader.GetString("type") == "int_armour")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_armour")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_int_armour")
|
||||
{
|
||||
iBstrint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_dex_armour")
|
||||
{
|
||||
iBstrdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_armour")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_int_armour")
|
||||
{
|
||||
iBdexint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/GLOVES.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Gloves)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,326 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Helmets
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBstrint = "";
|
||||
private static string iBstrdex = "";
|
||||
private static string iBdex = "";
|
||||
private static string iBdexint = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Helmet")
|
||||
{
|
||||
if (reader.GetString("type") == "int_armour")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_armour")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_int_armour")
|
||||
{
|
||||
iBstrint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_dex_armour")
|
||||
{
|
||||
iBstrdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_armour")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_int_armour")
|
||||
{
|
||||
iBdexint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/HELMETS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Helmets)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,191 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class OneHander
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "One Hand Sword")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "One Hand Axe")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "One Hand Mace")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/ONEHANDER.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (One Hander (Melee))" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,326 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Shields
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBstrint = "";
|
||||
private static string iBstrdex = "";
|
||||
private static string iBdex = "";
|
||||
private static string iBdexint = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Shield")
|
||||
{
|
||||
if (reader.GetString("type") == "int_armour")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_armour")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_int_armour")
|
||||
{
|
||||
iBstrint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "str_dex_armour")
|
||||
{
|
||||
iBstrdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_armour")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("type") == "dex_int_armour")
|
||||
{
|
||||
iBdexint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/SHIELDS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Shields)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstrdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstrdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorStrDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdexint != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdexint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BackgroundColorDexInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,187 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Staves
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Staff")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "Warstaff")
|
||||
{
|
||||
iBdex += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/STAVES.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Staff and Quarterstaff)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,191 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class TwoHander
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Two Hand Sword")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "Two Hand Axe")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
if (reader.GetString("class") == "Two Hand Mace")
|
||||
{
|
||||
iBstr += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/TWOHANDER.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Two Hander (Melee))" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,183 @@
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class Wands
|
||||
{
|
||||
private static string iBint = "";
|
||||
private static string iBstr = "";
|
||||
private static string iBdex = "";
|
||||
|
||||
public static void Gen()
|
||||
{
|
||||
using (MySqlConnection connection = DB.MySql.MSQLCo())
|
||||
{
|
||||
try
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
string query = "SELECT * FROM item_base";
|
||||
using (MySqlCommand command = new MySqlCommand(query, connection))
|
||||
{
|
||||
using (MySqlDataReader reader = command.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
string name = reader.GetString("name");
|
||||
|
||||
if (reader.GetString("class") == "Wand")
|
||||
{
|
||||
iBint += string.Format(@" ""{0}""", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Error: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
string path = "out/gen/WANDS.filter";
|
||||
File.AppendAllText(path, $"#### SECTION: (Wands)" + Environment.NewLine, Encoding.UTF8);
|
||||
|
||||
// normal
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorNormal + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// magic
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Magic" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorMagic + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
// rare
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"## RARITY: Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
if (iBint != ""){
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
File.AppendAllText(path, $"# TYPE: INT" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBint + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorInt + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBstr != ""){
|
||||
File.AppendAllText(path, $"# TYPE: STR" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBstr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorStr + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
|
||||
if (iBdex != ""){
|
||||
File.AppendAllText(path, $"# TYPE: DEX" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, "Show" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " BaseType " + iBdex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.TextColorRare + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, _Color.BorderColorDex + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, " CustomAlertSound \"mx_tier.mp3\"" + Environment.NewLine, Encoding.UTF8);
|
||||
File.AppendAllText(path, Environment.NewLine ?? "", Encoding.UTF8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MxFilterGen2.Generator
|
||||
{
|
||||
internal class _Color
|
||||
{
|
||||
public static string TextColorNormal = " SetTextColor 200 200 200";
|
||||
public static string TextColorMagic = " SetTextColor 136 136 255";
|
||||
public static string TextColorRare = " SetTextColor 255 255 0";
|
||||
|
||||
public static string BorderColorInt = " SetBorderColor 3 48 252";
|
||||
public static string BorderColorStr = " SetBorderColor 252 3 36";
|
||||
public static string BorderColorDex = " SetBorderColor 4 217 11";
|
||||
|
||||
public static string BackgroundColorStrInt = " SetBackgroundColor 56 69 89";
|
||||
public static string BackgroundColorStrDex = " SetBackgroundColor 50 69 49";
|
||||
public static string BackgroundColorDexInt = " SetBackgroundColor 56 69 89";
|
||||
}
|
||||
}
|
|
@ -19,7 +19,12 @@ namespace MxFilterGen2.IO
|
|||
File.Delete(file);
|
||||
}
|
||||
File.Delete($"out/{JSON.settings.GetName()}_{f}.filter");
|
||||
}
|
||||
}
|
||||
var gens = Directory.GetFiles("out/Gen");
|
||||
foreach (var g in gens)
|
||||
{
|
||||
File.Delete(g);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,11 @@ namespace MxFilterGen2.JSON
|
|||
{
|
||||
internal class SETTINGS
|
||||
{
|
||||
public string dbHost { get; set; }
|
||||
public string dbPort { get; set; }
|
||||
public string dbName { get; set; }
|
||||
public string dbUser { get; set; }
|
||||
public string dbPass { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool Install { get; set; }
|
||||
public List<string> Types { get; set; }
|
||||
|
@ -20,6 +25,11 @@ namespace MxFilterGen2.JSON
|
|||
|
||||
class settings
|
||||
{
|
||||
public static string GetdbHost() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbHost;
|
||||
public static string GetdbPort() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbPort;
|
||||
public static string GetdbName() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbName;
|
||||
public static string GetdbUser() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbUser;
|
||||
public static string GetdbPass() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbPass;
|
||||
internal static string GetName()
|
||||
{
|
||||
SETTINGS j = JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText($"settings.json"));
|
||||
|
|
|
@ -33,20 +33,87 @@
|
|||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\BouncyCastle.Cryptography.2.3.1\lib\net461\BouncyCastle.Cryptography.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Google.Protobuf, Version=3.26.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Google.Protobuf.3.26.1\lib\net45\Google.Protobuf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="K4os.Compression.LZ4, Version=1.3.8.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\K4os.Compression.LZ4.1.3.8\lib\net462\K4os.Compression.LZ4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="K4os.Compression.LZ4.Streams, Version=1.3.8.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\K4os.Compression.LZ4.Streams.1.3.8\lib\net462\K4os.Compression.LZ4.Streams.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="K4os.Hash.xxHash, Version=1.0.8.0, Culture=neutral, PublicKeyToken=32cd54395057cec3, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\K4os.Hash.xxHash.1.0.8\lib\net462\K4os.Hash.xxHash.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data, Version=9.1.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.9.1.0\lib\net48\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Configuration.ConfigurationManager.8.0.0\lib\net462\System.Configuration.ConfigurationManager.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Diagnostics.DiagnosticSource, Version=8.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.8.0.1\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.Pipelines, Version=5.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.Pipelines.5.0.2\lib\net461\System.IO.Pipelines.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="ZstdSharp, Version=0.8.0.0, Culture=neutral, PublicKeyToken=8d151af33a4ad5cf, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ZstdSharp.Port.0.8.0\lib\net462\ZstdSharp.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Compiler\Section.cs" />
|
||||
<Compile Include="DB\MySql.cs" />
|
||||
<Compile Include="Generator\Body.cs" />
|
||||
<Compile Include="Generator\Boots.cs" />
|
||||
<Compile Include="Generator\Bows.cs" />
|
||||
<Compile Include="Generator\Claws.cs" />
|
||||
<Compile Include="Generator\Daggers.cs" />
|
||||
<Compile Include="Generator\Focus.cs" />
|
||||
<Compile Include="Generator\Gloves.cs" />
|
||||
<Compile Include="Generator\Helmets.cs" />
|
||||
<Compile Include="Generator\OneHander.cs" />
|
||||
<Compile Include="Generator\Shields.cs" />
|
||||
<Compile Include="Generator\Staves.cs" />
|
||||
<Compile Include="Generator\TwoHander.cs" />
|
||||
<Compile Include="Generator\Wands.cs" />
|
||||
<Compile Include="Generator\_Color.cs" />
|
||||
<Compile Include="IO\Cleaner.cs" />
|
||||
<Compile Include="IO\Creator.cs" />
|
||||
<Compile Include="JSON\Settings.cs" />
|
||||
|
|
|
@ -9,7 +9,8 @@ namespace MxFilterGen2
|
|||
{
|
||||
internal class Program
|
||||
{
|
||||
public static string version = "1.0.0";
|
||||
public static string version = "1.1.0";
|
||||
public static string docpath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Message.Splash("MxFilterGen2", "mikx");
|
||||
|
@ -18,10 +19,37 @@ namespace MxFilterGen2
|
|||
string fname = JSON.settings.GetName();
|
||||
foreach (string s in JSON.settings.GetStructure())
|
||||
{
|
||||
Message.CMW($"Section: {s}",true,2);
|
||||
if (s != "GEN")
|
||||
{
|
||||
Message.CMW($"Section: {s}", true, 2);
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
{
|
||||
Compiler.section.Compile(s, f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generator.Body.Gen();
|
||||
Generator.Boots.Gen();
|
||||
Generator.Bows.Gen();
|
||||
Generator.Claws.Gen();
|
||||
Generator.Daggers.Gen();
|
||||
Generator.Focus.Gen();
|
||||
Generator.Gloves.Gen();
|
||||
Generator.Helmets.Gen();
|
||||
Generator.OneHander.Gen();
|
||||
Generator.Shields.Gen();
|
||||
Generator.Staves.Gen();
|
||||
Generator.TwoHander.Gen();
|
||||
Generator.Wands.Gen();
|
||||
|
||||
var gens = Directory.GetFiles("out/Gen");
|
||||
string genstring = "";
|
||||
foreach (var g in gens)
|
||||
{
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
{
|
||||
Compiler.section.Compile(s, f);
|
||||
File.AppendAllText($"out/{f}/GEN.filter",File.ReadAllText(g));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,15 +69,32 @@ namespace MxFilterGen2
|
|||
{
|
||||
File.AppendAllText(outp, $"# {sspl}{Environment.NewLine}");
|
||||
}
|
||||
File.AppendAllText(outp, $"{Environment.NewLine}");
|
||||
File.AppendAllText(outp, $"{Environment.NewLine}");
|
||||
foreach (var structure in JSON.settings.GetStructure())
|
||||
{
|
||||
{
|
||||
File.AppendAllText("out/" + fname + "_" + f + ".filter", string.Format("#### SECTION: {0}", (object)structure) + Environment.NewLine);
|
||||
File.AppendAllText("out/" + fname + "_" + f + ".filter", File.ReadAllText(string.Format("out/" + f + "/" + structure + ".filter")));
|
||||
File.AppendAllText("out/" + fname + "_" + f + ".filter", Environment.NewLine ?? "");
|
||||
}
|
||||
}
|
||||
Console.ReadKey();
|
||||
|
||||
if (JSON.settings.GetInstall())
|
||||
{
|
||||
Message.CMW($"Install is \"True\". Installing to the game directory...", true, 1);
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
{
|
||||
File.Copy($"out/MxFilter_{f}.filter", $@"{docpath}\My Games\Path of Exile 2\{JSON.settings.GetName()}_{f}.filter", true);
|
||||
}
|
||||
foreach (var s in Directory.EnumerateFiles("sound"))
|
||||
{
|
||||
string sf = Path.GetFileName(s);
|
||||
File.Copy($"{s}", $@"{docpath}\My Games\Path of Exile 2\{sf}", true);
|
||||
}
|
||||
} else
|
||||
{
|
||||
int fc = JSON.settings.GetType().Count;
|
||||
Message.CMW($"Install is \"False\". Use the {fc} Filter(s) from the \"out\" directory.", true, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="BouncyCastle.Cryptography" version="2.3.1" targetFramework="net48" />
|
||||
<package id="Google.Protobuf" version="3.26.1" targetFramework="net48" />
|
||||
<package id="K4os.Compression.LZ4" version="1.3.8" targetFramework="net48" />
|
||||
<package id="K4os.Compression.LZ4.Streams" version="1.3.8" targetFramework="net48" />
|
||||
<package id="K4os.Hash.xxHash" version="1.0.8" targetFramework="net48" />
|
||||
<package id="Microsoft.Bcl.AsyncInterfaces" version="5.0.0" targetFramework="net48" />
|
||||
<package id="MySql.Data" version="9.1.0" targetFramework="net48" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
|
||||
<package id="System.Configuration.ConfigurationManager" version="8.0.0" targetFramework="net48" />
|
||||
<package id="System.Diagnostics.DiagnosticSource" version="8.0.1" targetFramework="net48" />
|
||||
<package id="System.IO.Pipelines" version="5.0.2" targetFramework="net48" />
|
||||
<package id="System.Memory" version="4.5.5" targetFramework="net48" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
|
||||
<package id="ZstdSharp.Port" version="0.8.0" targetFramework="net48" />
|
||||
</packages>
|
Loading…
Reference in New Issue