forked from Lady-Binary/EasyLoU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path09-crafting.lua
38 lines (36 loc) · 921 Bytes
/
09-crafting.lua
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
nameInFavoritesTab = "Rug"
nameToCutUp = "Rug Deed"
craftButton = "10"
function recycle()
FindItem("Scissors", BACKPACKID)
scissorsId = FINDITEMID[1]
FindItem("tiny", BACKPACKID)
craftBagId = FINDITEMID[1]
FindItem(nameToCutUp , craftBagId)
if FINDITEMID ~= "N/A" then
for deed in FINDITEMID do
SayCustom(".x use " .. scissorsId .. " Use")
TargetDynamic(deed)
sleep(1500)
end
end
end
startTime = TIME
while true do
ClickButton("CraftingWindow", craftButton)
if TIME - startTime > 60 then
sleep(1000)
recycle()
startTime = TIME
FindPanel("Crafting")
if FINDPANELID == "N/A" then
FindItem("Loom")
SayCustom(".x use " .. FINDITEMID[1] .. " Fabrication")
sleep(1000)
FindButton("CraftingWindow", "Favorites")
ClickButton("CraftingWindow", FINDBUTTONNAME[1])
FindButton("CraftingWindow", nameInFavoritesTab)
ClickButton("CraftingWindow", FINDBUTTONNAME[1])
end
end
end