2023-04-27 20:42:59 -07:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Security.Claims;
|
|
|
|
|
using System.Security.Policy;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Rebar;
|
|
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using static System.Windows.Forms.AxHost;
|
|
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Status;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement.ProgressBar;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using static System.Net.Mime.MediaTypeNames;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
using System.Text.RegularExpressions;
|
2023-04-27 20:42:59 -07:00
|
|
|
|
|
|
|
|
|
namespace app
|
|
|
|
|
{
|
|
|
|
|
public class ItemsAlert
|
|
|
|
|
{
|
|
|
|
|
Form1 Form1_0;
|
|
|
|
|
|
2024-04-18 18:51:45 -07:00
|
|
|
|
public Dictionary<string, bool> PickItemsRunesKeyGems = new Dictionary<string, bool>();
|
2024-04-20 19:37:30 -07:00
|
|
|
|
public Dictionary<string, bool> PickItemsPotions = new Dictionary<string, bool>();
|
2023-04-27 20:42:59 -07:00
|
|
|
|
|
2024-04-20 19:37:30 -07:00
|
|
|
|
public Dictionary<string, bool> PickItemsNormal_ByName = new Dictionary<string, bool>();
|
|
|
|
|
public Dictionary<string, Dictionary<uint, string>> PickItemsNormal_ByName_Flags = new Dictionary<string, Dictionary<uint, string>>();
|
|
|
|
|
public Dictionary<string, int> PickItemsNormal_ByName_Quality = new Dictionary<string, int>();
|
|
|
|
|
public Dictionary<string, Dictionary<string, int>> PickItemsNormal_ByName_Stats = new Dictionary<string, Dictionary<string, int>>();
|
|
|
|
|
public Dictionary<string, Dictionary<string, string>> PickItemsNormal_ByName_Operators = new Dictionary<string, Dictionary<string, string>>();
|
2024-04-22 17:48:19 -07:00
|
|
|
|
public Dictionary<string, string> PickItemsNormal_ByNameDesc = new Dictionary<string, string>();
|
2024-04-20 19:37:30 -07:00
|
|
|
|
|
|
|
|
|
public Dictionary<string, bool> PickItemsNormal_ByType = new Dictionary<string, bool>();
|
|
|
|
|
public Dictionary<string, Dictionary<uint, string>> PickItemsNormal_ByType_Flags = new Dictionary<string, Dictionary<uint, string>>();
|
|
|
|
|
public Dictionary<string, int> PickItemsNormal_ByType_Quality = new Dictionary<string, int>();
|
|
|
|
|
public Dictionary<string, Dictionary<string, int>> PickItemsNormal_ByType_Stats = new Dictionary<string, Dictionary<string, int>>();
|
|
|
|
|
public Dictionary<string, Dictionary<string, string>> PickItemsNormal_ByType_Operators = new Dictionary<string, Dictionary<string, string>>();
|
2024-04-22 17:48:19 -07:00
|
|
|
|
public Dictionary<string, string> PickItemsNormal_ByTypeDesc = new Dictionary<string, string>();
|
2023-04-27 20:42:59 -07:00
|
|
|
|
|
|
|
|
|
public void SetForm1(Form1 form1_1)
|
|
|
|
|
{
|
|
|
|
|
Form1_0 = form1_1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool ShouldKeepItem()
|
|
|
|
|
{
|
|
|
|
|
return ShouldPickItem(true);
|
|
|
|
|
//return PickOrKeepItem(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool ShouldPickItem(bool Keeping)
|
|
|
|
|
{
|
2024-04-18 18:51:45 -07:00
|
|
|
|
foreach (var ThisDir in PickItemsRunesKeyGems)
|
2023-04-27 20:42:59 -07:00
|
|
|
|
{
|
2024-04-20 19:37:30 -07:00
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.ToLower().Replace(" ", "") == ThisDir.Key.ToLower().Replace(" ", "") && ThisDir.Value)
|
2023-04-27 20:42:59 -07:00
|
|
|
|
{
|
2024-04-18 18:51:45 -07:00
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Chipped") || Form1_0.ItemsStruc_0.ItemNAAME.Contains("Flawed")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Topaz"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Amethyst"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Sapphire"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Emerald"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Ruby"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Diamond")
|
2023-04-27 20:42:59 -07:00
|
|
|
|
{
|
|
|
|
|
//pick only chipped and flawed gems if count are bellow 2x
|
|
|
|
|
if (Form1_0.StashStruc_0.GetStashItemCount(Form1_0.ItemsStruc_0.ItemNAAME) < 2)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-20 19:37:30 -07:00
|
|
|
|
//###############
|
|
|
|
|
foreach (var ThisDir in PickItemsNormal_ByName)
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.ToLower().Replace(" ", "") == Regex.Replace(ThisDir.Key.ToLower().Replace(" ", ""), @"[\d-]", string.Empty) && ThisDir.Value)
|
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (!Form1_0.ItemsStruc_0.identified)
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
bool SameQuality = true;
|
|
|
|
|
if (PickItemsNormal_ByName_Quality.ContainsKey(ThisDir.Key))
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (Form1_0.ItemsStruc_0.quality != Form1_0.ItemsStruc_0.getQuality(PickItemsNormal_ByName_Quality[ThisDir.Key])) SameQuality = false;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
}
|
2024-04-22 17:48:19 -07:00
|
|
|
|
|
|
|
|
|
if (!Keeping && SameQuality) return true;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
}
|
2024-04-22 17:48:19 -07:00
|
|
|
|
else
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (Keeping)
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
bool SameFlags = true;
|
|
|
|
|
bool SameQuality = true;
|
|
|
|
|
bool SameStats = true;
|
|
|
|
|
|
|
|
|
|
if (PickItemsNormal_ByName_Flags.ContainsKey(ThisDir.Key))
|
|
|
|
|
{
|
|
|
|
|
uint TotalFlags = 0;
|
2024-04-23 15:59:13 -07:00
|
|
|
|
foreach (var ThisList in PickItemsNormal_ByName_Flags[ThisDir.Key])
|
2024-04-22 17:48:19 -07:00
|
|
|
|
{
|
2024-04-23 15:59:13 -07:00
|
|
|
|
TotalFlags += ThisList.Key;
|
|
|
|
|
}
|
|
|
|
|
foreach (var ThisList in PickItemsNormal_ByName_Flags[ThisDir.Key])
|
|
|
|
|
{
|
|
|
|
|
SameStats = Form1_0.ItemsFlags_0.IsItemSameFlags(ThisList.Value, TotalFlags, Form1_0.ItemsStruc_0.flags);
|
2024-04-22 17:48:19 -07:00
|
|
|
|
}
|
|
|
|
|
//Console.WriteLine(Form1_0.ItemsStruc_0.ItemNAAME + ":" + SameFlags);
|
|
|
|
|
}
|
|
|
|
|
if (PickItemsNormal_ByName_Quality.ContainsKey(ThisDir.Key))
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.quality != Form1_0.ItemsStruc_0.getQuality(PickItemsNormal_ByName_Quality[ThisDir.Key])) SameQuality = false;
|
|
|
|
|
}
|
|
|
|
|
if (PickItemsNormal_ByName_Stats.ContainsKey(ThisDir.Key))
|
|
|
|
|
{
|
|
|
|
|
foreach (var ThisDir2 in PickItemsNormal_ByName_Stats[ThisDir.Key])
|
|
|
|
|
{
|
|
|
|
|
//Console.WriteLine(Form1_0.ItemsStruc_0.ItemNAAME + ":" + ThisDir2.Key + "=" + ThisDir2.Value);
|
|
|
|
|
if (!Form1_0.ItemsStruc_0.IsItemHaveSameStatMultiCheck(ThisDir2.Key, ThisDir2.Value, PickItemsNormal_ByName_Operators[ThisDir.Key][ThisDir2.Key])) SameStats = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (SameFlags && SameQuality && SameStats) return true;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//###############
|
|
|
|
|
foreach (var ThisDir in PickItemsNormal_ByType)
|
|
|
|
|
{
|
|
|
|
|
if (IsItemThisType(Regex.Replace(ThisDir.Key.ToLower().Replace(" ", ""), @"[\d-]", string.Empty)) && ThisDir.Value)
|
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (!Form1_0.ItemsStruc_0.identified)
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
bool SameQuality = true;
|
|
|
|
|
if (PickItemsNormal_ByType_Quality.ContainsKey(ThisDir.Key))
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (Form1_0.ItemsStruc_0.quality != Form1_0.ItemsStruc_0.getQuality(PickItemsNormal_ByType_Quality[ThisDir.Key])) SameQuality = false;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
}
|
|
|
|
|
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (!Keeping && SameQuality) return true;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
}
|
2024-04-22 17:48:19 -07:00
|
|
|
|
else
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
if (Keeping)
|
2024-04-20 19:37:30 -07:00
|
|
|
|
{
|
2024-04-22 17:48:19 -07:00
|
|
|
|
bool SameFlags = true;
|
|
|
|
|
bool SameQuality = true;
|
|
|
|
|
bool SameStats = true;
|
|
|
|
|
|
|
|
|
|
if (PickItemsNormal_ByType_Flags.ContainsKey(ThisDir.Key))
|
|
|
|
|
{
|
|
|
|
|
uint TotalFlags = 0;
|
2024-04-23 15:59:13 -07:00
|
|
|
|
foreach (var ThisList in PickItemsNormal_ByType_Flags[ThisDir.Key])
|
|
|
|
|
{
|
|
|
|
|
TotalFlags += ThisList.Key;
|
|
|
|
|
}
|
|
|
|
|
foreach (var ThisList in PickItemsNormal_ByType_Flags[ThisDir.Key])
|
2024-04-22 17:48:19 -07:00
|
|
|
|
{
|
2024-04-23 15:59:13 -07:00
|
|
|
|
SameStats = Form1_0.ItemsFlags_0.IsItemSameFlags(ThisList.Value, TotalFlags, Form1_0.ItemsStruc_0.flags);
|
2024-04-22 17:48:19 -07:00
|
|
|
|
}
|
2024-04-23 15:59:13 -07:00
|
|
|
|
//Console.WriteLine(Form1_0.ItemsStruc_0.ItemNAAME + ":" + SameFlags);
|
2024-04-22 17:48:19 -07:00
|
|
|
|
}
|
|
|
|
|
if (PickItemsNormal_ByType_Quality.ContainsKey(ThisDir.Key))
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.quality != Form1_0.ItemsStruc_0.getQuality(PickItemsNormal_ByType_Quality[ThisDir.Key])) SameQuality = false;
|
|
|
|
|
}
|
|
|
|
|
if (PickItemsNormal_ByType_Stats.ContainsKey(ThisDir.Key))
|
|
|
|
|
{
|
|
|
|
|
foreach (var ThisDir2 in PickItemsNormal_ByType_Stats[ThisDir.Key])
|
|
|
|
|
{
|
|
|
|
|
if (!Form1_0.ItemsStruc_0.IsItemHaveSameStatMultiCheck(ThisDir2.Key, ThisDir2.Value, PickItemsNormal_ByType_Operators[ThisDir.Key][ThisDir2.Key])) SameStats = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (SameFlags && SameQuality && SameStats) return true;
|
2024-04-20 19:37:30 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//###############
|
|
|
|
|
|
2023-04-27 20:42:59 -07:00
|
|
|
|
return false;
|
|
|
|
|
//return PickOrKeepItem(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsItemThisType(string ItemTypee)
|
|
|
|
|
{
|
|
|
|
|
if (ItemTypee == "helm")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Mask")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Helm")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Crown")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Demonhead"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Cap"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Basinet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Bone Visage"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Shako"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "War Hat"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Sallet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Casque"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Armet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Skull Cap"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Hydraskull"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Giant Conch"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Diadem"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Tiara"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Circlet")
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "gloves")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Gloves")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Gauntlets")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Heavy Bracers"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Vambraces"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Bramble Mitts")
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "boots")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Boots")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Greaves"))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "belt")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Belt")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Sash")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Mithril Coil"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Colossus Girdle")
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "ring")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Ring") return true;
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "amulet")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Amulet") return true;
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "armor")
|
|
|
|
|
{
|
2024-04-14 18:51:35 -07:00
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Plate")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Armor")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Skin")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Mail")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Coat")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Shell")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Cuirass"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Dusk Shroud"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Wire Fleece"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Studded Leather"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Great Hauberk"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Boneweave"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Wyrmhide"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Scarab Husk"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Boneweave")
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2023-04-27 20:42:59 -07:00
|
|
|
|
}
|
2024-04-14 18:51:35 -07:00
|
|
|
|
catch { }
|
2023-04-27 20:42:59 -07:00
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "circlet")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Circlet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Tiara"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Diadem")
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "gold")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Gold") return true;
|
|
|
|
|
}
|
|
|
|
|
if (ItemTypee == "jewel")
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Jewel") return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-20 19:37:30 -07:00
|
|
|
|
public string GetItemTypeText()
|
2023-04-27 20:42:59 -07:00
|
|
|
|
{
|
2024-04-20 19:37:30 -07:00
|
|
|
|
return "[Type] == " + GetItemType();
|
2023-04-27 20:42:59 -07:00
|
|
|
|
}
|
|
|
|
|
|
2024-04-20 19:37:30 -07:00
|
|
|
|
public string GetItemType()
|
2023-04-27 20:42:59 -07:00
|
|
|
|
{
|
2024-04-20 19:37:30 -07:00
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Mask")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Helm")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Crown")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Demonhead"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Cap"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Basinet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Bone Visage"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Shako"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "War Hat"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Sallet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Casque"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Armet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Skull Cap"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Hydraskull"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Giant Conch"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Diadem"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Tiara"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Circlet")
|
|
|
|
|
{
|
|
|
|
|
return "helm";
|
|
|
|
|
}
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Gloves")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Gauntlets")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Heavy Bracers"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Vambraces"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Bramble Mitts")
|
|
|
|
|
{
|
|
|
|
|
return "gloves";
|
|
|
|
|
}
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Boots")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Greaves"))
|
|
|
|
|
{
|
|
|
|
|
return "boots";
|
|
|
|
|
}
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Belt")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Sash")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Mithril Coil"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Colossus Girdle")
|
|
|
|
|
{
|
|
|
|
|
return "belt";
|
|
|
|
|
}
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Ring") return "ring";
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Amulet") return "amulet";
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Plate")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Armor")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Skin")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Mail")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Coat")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME.Contains("Shell")
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Cuirass"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Dusk Shroud"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Wire Fleece"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Studded Leather"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Great Hauberk"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Boneweave"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Wyrmhide"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Scarab Husk"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Boneweave")
|
|
|
|
|
{
|
|
|
|
|
return "armor";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch { }
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Circlet"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Tiara"
|
|
|
|
|
|| Form1_0.ItemsStruc_0.ItemNAAME == "Diadem")
|
|
|
|
|
{
|
|
|
|
|
return "circlet";
|
|
|
|
|
}
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Gold") return "gold";
|
|
|
|
|
if (Form1_0.ItemsStruc_0.ItemNAAME == "Jewel") return "jewel";
|
|
|
|
|
return "";
|
2023-04-27 20:42:59 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|