using System; using System.Collections.Generic; using System.Linq; using System.Text; using Clio.XmlEngine; using ff14bot.Helpers; using ff14bot.Enums; namespace ff14bot.NeoProfiles { [XmlElement("CraftActionByName")] class CraftActionByNameTag : CraftAction { [XmlAttribute("Name")] public string Name { get; set; } protected override void OnStart() { base.ActionId = 0; if (crossClassActions.ContainsKey(Name)) { base.ActionId = crossClassActions[Name]; } else if (classActions.ContainsKey(Core.Player.CurrentJob) && classActions[Core.Player.CurrentJob].ContainsKey(Name)) { base.ActionId = classActions[Core.Player.CurrentJob][Name]; } base.OnStart(); } static Dictionary> classActions = new Dictionary>() { {ClassJobType.Carpenter, new Dictionary() { {"Basic Synthesis", 100001}, {"Basic Touch", 100002}, {"Master's Mend", 100003}, {"Steady Hand", 244}, {"Inner Quiet", 252}, {"Observe", 100010}, {"Rumination", 276}, {"Standard Touch", 100004}, {"Great Strides", 260}, {"Master's Mend II", 100005}, {"Standard Synthesis", 100007}, {"Brand of Wind", 100006}, {"Advanced Touch", 100008}, {"Byregot's Blessing", 100009}, {"Byregot's Brow", 100120}, {"Precise Touch", 100128} }},{ClassJobType.Blacksmith, new Dictionary() { {"Basic Synthesis", 100015}, {"Basic Touch", 100016}, {"Master's Mend", 100017}, {"Steady Hand", 245}, {"Inner Quiet", 253}, {"Observe", 100023}, {"Ingenuity", 277}, {"Standard Touch", 100018}, {"Great Strides", 261}, {"Master's Mend II", 100019}, {"Standard Synthesis", 100021}, {"Brand of Fire", 100020}, {"Advanced Touch", 100022}, {"Ingenuity II", 283}, {"Byregot's Brow", 100121}, {"Precise Touch", 100129} }},{ClassJobType.Armorer, new Dictionary() { {"Basic Synthesis", 100030}, {"Basic Touch", 100031}, {"Master's Mend", 100032}, {"Steady Hand", 246}, {"Inner Quiet", 254}, {"Observe", 100040}, {"Rapid Synthesis", 100033}, {"Standard Touch", 100034}, {"Great Strides", 262}, {"Master's Mend II", 100035}, {"Standard Synthesis", 100037}, {"Brand of Ice", 100036}, {"Advanced Touch", 100038}, {"Piece by Piece", 100039}, {"Byregot's Brow", 100122}, {"Precise Touch", 100130} }},{ClassJobType.Goldsmith, new Dictionary() { {"Basic Synthesis", 100075}, {"Basic Touch", 100076}, {"Master's Mend", 100077}, {"Steady Hand", 247}, {"Inner Quiet", 255}, {"Observe", 100082}, {"Manipulation", 278}, {"Standard Touch", 100078}, {"Great Strides", 263}, {"Master's Mend II", 100079}, {"Standard Synthesis", 100080}, {"Flawless Synthesis", 100083}, {"Advanced Touch", 100081}, {"Innovation", 284}, {"Byregot's Brow", 100123}, {"Precise Touch", 100131} }},{ClassJobType.Leatherworker, new Dictionary() { {"Basic Synthesis", 100045}, {"Basic Touch", 100046}, {"Master's Mend", 100047}, {"Steady Hand", 249}, {"Inner Quiet", 257}, {"Observe", 100053}, {"Waste Not", 279}, {"Standard Touch", 100048}, {"Great Strides", 265}, {"Master's Mend II", 100049}, {"Standard Synthesis", 100051}, {"Brand of Earth", 100050}, {"Advanced Touch", 100052}, {"Waste Not II", 285}, {"Byregot's Brow", 100124}, {"Precise Touch", 100132} }},{ClassJobType.Weaver, new Dictionary() { {"Basic Synthesis", 100060}, {"Basic Touch", 100061}, {"Master's Mend", 100062}, {"Steady Hand", 248}, {"Inner Quiet", 256}, {"Observe", 100070}, {"Careful Synthesis", 100063}, {"Standard Touch", 100064}, {"Great Strides", 264}, {"Master's Mend II", 100065}, {"Standard Synthesis", 100067}, {"Brand of Lightning", 100066}, {"Advanced Touch", 100068}, {"Careful Synthesis II", 100069}, {"Byregot's Brow", 100125}, {"Precise Touch", 100133} }},{ClassJobType.Alchemist, new Dictionary() { {"Basic Synthesis", 100090}, {"Basic Touch", 100091}, {"Master's Mend", 100092}, {"Steady Hand", 250}, {"Inner Quiet", 258}, {"Observe", 100099}, {"Tricks of the Trade", 100098}, {"Standard Touch", 100093}, {"Great Strides", 266}, {"Master's Mend II", 100094}, {"Standard Synthesis", 100096}, {"Brand of Water", 100095}, {"Advanced Touch", 100097}, {"Comfort Zone", 286}, {"Byregot's Brow", 100126}, {"Precise Touch", 100134} }},{ClassJobType.Culinarian, new Dictionary() { {"Basic Synthesis", 100105}, {"Basic Touch", 100106}, {"Master's Mend", 100107}, {"Steady Hand", 251}, {"Inner Quiet", 259}, {"Observe", 100113}, {"Hasty Touch", 100108}, {"Standard Touch", 100109}, {"Great Strides", 267}, {"Master's Mend II", 100110}, {"Standard Synthesis", 100111}, {"Steady Hand II", 281}, {"Advanced Touch", 100112}, {"Reclaim", 287}, {"Byregot's Brow", 100127}, {"Precise Touch", 100135}, {"Muscle Memory", 100136} }} }; static Dictionary crossClassActions = new Dictionary() { {"Rumination", 276}, {"Byregot's Blessing", 100009}, {"Brand of Wind", 100006}, {"Ingenuity II", 283}, {"Ingenuity", 277}, {"Brand of Fire", 100020}, {"Rapid Synthesis", 100033}, {"Piece by Piece", 100039}, {"Brand of Ice", 100036}, {"Waste Not", 279}, {"Waste Not II", 285}, {"Brand of Earth", 100050}, {"Careful Synthesis", 100063}, {"Careful Synthesis II", 100069}, {"Brand of Lightning", 100066}, {"Tricks of the Trade", 100098}, {"Brand of Water", 100095}, {"Comfort Zone", 286}, {"Hasty Touch", 100108}, {"Reclaim", 287}, {"Steady Hand II", 281}, {"Manipulation", 278}, {"Innovation", 284}, {"Flawless Synthesis", 100083}, {"Muscle Memory", 100136} }; } }