Add a more accurate Waste Not II rotation for quick craft.

master
Joshua Sigona 5 years ago
parent 80506b64a4
commit 9fb1989b3c
  1. 54
      autocraft.ahk
  2. BIN
      autocraft.exe

@ -195,27 +195,53 @@ CraftingRotationTemplate(ByRef STEP) {
Switch STEP Switch STEP
{ {
Case 1: Case 1:
send, {5} INNERQUIET(STEP,CP,DURABILITY)
ProgressStep(STEP,CP,18)
Case 2: Case 2:
if (IsExcellent()) { if (IsExcellent()) {
send, {2} BASICTOUCH(STEP,CP,DURABILITY,0)
ProgressStep(STEP,CP,18,2)
WaitForReady() WaitForReady()
PressKeyWithModifier("Ctrl","1") WASTENOT(STEP,CP,DURABILITY,0)
ProgressStep(STEP,CP,56,0)
} }
TricksOfTheTrade(CP) TricksOfTheTrade(CP)
PressKeyWithModifier("Ctrl","1") WASTENOT(STEP,CP,DURABILITY)
ProgressStep(STEP,CP,56)
Case 3, 4, 5, 6, 7: Case 3, 4, 5, 6, 7:
if ((IsGood() or IsExcellent()) and CP > 160) { if ((IsGood() or IsExcellent()) and CP > 160) {
send, {2} BASICTOUCH(STEP,CP,DURABILITY)
ProgressStep(STEP,CP,18)
} else { } else {
PressKeyWithModifier("Ctrl","3") HASTYTOUCH(STEP,CP,DURABILITY)
ProgressStep(STEP,CP,0) }
}
Stdout(DisplayInfo(STEP,CP,DURABILITY))
} until (STEP >= FINALSTEP + 1 or !toggle)
}
QuickAccCraftRotation(ByRef STEP) {
global toggle, CP, RECIPEDONE
FINALSTEP = 7
DURABILITY := 40
loop {
if (IsMaxQuality() or (DURABILITY = 5 and WASTENOT > 0) or (DURABILITY = 10 and WASTENOT = 0)) {
BASICSYNTHESIS(STEP,CP,DURABILITY)
STEP := 999
RECIPEDONE := true
} }
Switch STEP
{
Case 1:
INNERQUIET(STEP,CP,DURABILITY)
Case 2:
WASTENOTII(STEP,CP,DURABILITY)
Case 3,4,5:
BASICTOUCH(STEP,CP,DURABILITY)
Case 6:
if (IsGood() or IsExcellent()) {
BASICTOUCH(STEP,CP,DURABILITY,0)
}
INNOVATION(STEP,CP,DURABILITY)
Case 7:
BASICTOUCH(STEP,CP,DURABILITY,0)
} }
Stdout(DisplayInfo(STEP,CP,DURABILITY)) Stdout(DisplayInfo(STEP,CP,DURABILITY))
} until (STEP >= FINALSTEP + 1 or !toggle) } until (STEP >= FINALSTEP + 1 or !toggle)
@ -887,7 +913,7 @@ KeyPressAllowed() {
CraftingWindowOpen() { CraftingWindowOpen() {
PixelGetColor,ScreenCol,1283,655 PixelGetColor,ScreenCol,1282,668
if (SubStr(ScreenCol,3,6) = "FFFFFF") { if (SubStr(ScreenCol,3,6) = "FFFFFF") {
return true return true
} else { } else {
@ -968,7 +994,7 @@ FINALAPPRAISAL := 0
CPBASE := 280 CPBASE := 280
RECIPEDONE := false RECIPEDONE := false
ScriptList := {"(40dura)Long Crafting Rotation":"CraftingRotation","(40dura)Quick Crafting Rotation":"QuickCraftRotation","(40dura)Quickest Crafting Rotation":"QuickerCraftRotation","(60+dura)Long Crafting Rotation":"LongCraft60","(60+dura)Quick Crafting Rotation":"StrongCraft60","(70dura)Long Crafting Rotation":"LongCraft70","(70dura)Quick Crafting Rotation":"StrongCraft70"} ScriptList := {"(40dura)Long Crafting Rotation":"CraftingRotation","(40dura)Quick Crafting Rotation":"QuickCraftRotation","(40dura)Quick Guaranteed Crafting Rotation":"QuickAccCraftRotation","(40dura)Quickest Crafting Rotation":"QuickerCraftRotation","(60+dura)Long Crafting Rotation":"LongCraft60","(60+dura)Quick Crafting Rotation":"StrongCraft60","(70dura)Long Crafting Rotation":"LongCraft70","(70dura)Quick Crafting Rotation":"StrongCraft70"}
;Stdout("Starting " . ScriptList[words]) ;Stdout("Starting " . ScriptList[words])
;functioncall := ScriptList[words] ;functioncall := ScriptList[words]
;%functioncall%(STEP) ;%functioncall%(STEP)

Binary file not shown.
Loading…
Cancel
Save