mordred
New Member
Posts: 4 Likes: 1
|
Post by mordred on Aug 13, 2020 4:10:29 GMT
Instructions: when prompted, open chest containing unidentified items.. then when prompted, open chest that you want to deposit items once identified.. have ItemID skill set to first skill on bar.
--<ItemID>--
--For EasyLOU 1.0.0.32--
--LoU 1.0.0.4--
--By Mordred--
--Functions--
--Define Variables--
clear()
hotkeyForItemId = 0
print ("open unid container")
os.execute("nircmd.exe speak text \"Please target your chest containing unidentified items\"")
sleep(5000)
unid_cont = CLICKOBJID
print ("open deposit container")
os.execute("nircmd.exe speak text \"Please target your deposit chest\"")
sleep(5000)
id_cont = CLICKOBJID
function findUnid()
FindItem("unid", unid_cont)
item = FINDITEMID[1]
Drag(item)
sleep(2000)
Dropc(BACKPACKID)
sleep(2000)
end
function deposit()
Drag(item)
sleep(2000)
Dropc(id_cont)
sleep(2000)
FindItem("unid", BACKPACKID)
end
--Find Item--
while true do
clear()
findUnid()
FindItem("unidentified", BACKPACKID)
GetTooltip(item)
if string.match(TOOLTIPTEXT, "required") or string.match(TOOLTIPTEXT, "dexterity") then
print(FINDITEMNAME[1])
print("already done")
else
repeat
print("identifying item now")
Macro(hotkeyForItemId)
TargetDynamic(item)
sleep(3500)
GetTooltip(item)
until string.match(TOOLTIPTEXT, "required") or string.match(TOOLTIPTEXT, "dexterity")
end
print ("depositing identified item")
deposit()
end
|
|
|
Post by polymerase on Sept 2, 2020 16:58:02 GMT
Suggested changes:
--<ItemID>-- --For EasyLOU 1.0.0.32-- --LoU 1.0.0.4-- --By Mordred--
clear()
--Define Variables-- hotkeyForItemId = 0
print ("open unid container") --os.execute("nircmd.exe speak text \"Please target your chest containing unidentified items\"") sleep(5000) unid_cont = CLICKOBJ.OBJECTID
print ("open deposit container") --os.execute("nircmd.exe speak text \"Please target your deposit chest\"") sleep(5000) id_cont = CLICKOBJ.OBJECTID
--Functions-- function findUnid() FindItem("unid", unid_cont) item = FINDITEM[1].ID Drag(item) sleep(2000) Dropc(BACKPACKID) sleep(2000)
end
function deposit() Drag(item) sleep(2000)
Dropc(id_cont) sleep(2000)
FindItem("unid", BACKPACKID) end
--Find Item-- while true do clear() findUnid() FindItem("unidentified", BACKPACKID) GetTooltip(item) if string.match(TOOLTIPTEXT, "required") or string.match(TOOLTIPTEXT, "dexterity") then print(FINDITEMNAME[1]) print("already done") else repeat print("identifying item now")
Macro(hotkeyForItemId) TargetDynamic(item) sleep(3500)
GetTooltip(item) until string.match(TOOLTIPTEXT, "required") or string.match(TOOLTIPTEXT, "dexterity") end
print ("depositing identified item")
deposit() end Not tested.
|
|