-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path35-40.2xNameBrand.cs
86 lines (76 loc) · 2.68 KB
/
35-40.2xNameBrand.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using ff14bot.NeoProfiles.Tags
class Attributes {
public static uint RecipeId = 6356;
public static uint Craftsmanship = 834;
public static uint Control = 814;
public static uint cp = 394;
public static uint[] RequiredSkills = [281,285,286,100009,100069];
}
class Util {
public static wait(uint time) {
await Coroutine.Wait(10000, () => CraftingManager.AnimationLocked);
await Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked);
await Coroutine.Sleep(time);
}
public static UseBestTouch() {
SpellData data;
if ((CraftingManager.Condition == CraftingCondition.Good || CraftingManager.Condition == CraftingCondition.Excellent) &&
ActionManager.CurrentActions.TryGetValue("Precise Touch", out data) && ActionManager.CanCast(data, null)) {
ActionManager.DoAction("Precise Touch", null);
} else {
ActionManager.DoAction("Hasty Touch", null);
}
}
Util.wait(250);
}
public static UseTrick() {
if (CraftingManager.Condition == CraftingCondition.Good || CraftingManager.Condition == CraftingCondition.Excellent) {
ActionManager.DoAction("Tricks of the Trade", null);
}
Util.wait(200);
}
public static NameAndBrand() {
ActionManager.DoAction("Name of Earth", null);
Util.wait(200);
ActionManager.DoAction("Brand of Earth", null);
Util.wait(250);
ActionManager.DoAction("Brand of Earth", null);
Util.wait(250);
}
}
while (true) {
var synthesize = Synthesize.Sythesize();
synthesize.RecipeId = Attributes.RecipeId;
synthesize.RequiredSkills = Attributes.RequiredSkills;
Task<bool> task = synthesize.StartCrafting();
while (CraftingManager.IsCrafting) {
ActionManager.DoAction("Comfort Zone"); Util.wait(200);
Util.UseTrick();
ActionManager.DoAction("Inner Quiet"); Util.wait(200);
Util.UseTrick();
ActionManager.DoAction("Steady Hand II"); Util.wait(200);
Util.UseTrick();
ActionManager.DoAction("Waste Not II"); Util.wait(200);
Util.UseBestTouch();
Util.UseBestTouch();
Util.UseBestTouch();
Util.UseBestTouch();
Util.UseTrick();
ActionManager.DoAction("Master's Mend"); Util.wait(200);
Util.UseTrick();
ActionManager.DoAction("Steady Hand II"); Util.wait(200);
Util.UseBestTouch();
Util.UseBestTouch();
Util.UseBestTouch();
if (CraftingManager.Condition == CraftingCondition.Excellent) {
ActionManager.DoAction("Comfort Zone"); Util.wait(250);
Util.NameAndBrand();
break;
}
ActionManager.DoAction("Great Strides"); Util.wait(200);
ActionManager.DoAction("Ingenuity II"); Util.wait(200);
ActionManager.DoAction("Steady Hand"); Util.wait(200);
ActionManager.DoAction("Byregot's Blessing"); Util.wait(200);
Util.NameAndBrand();
}
}