Working on a looter
Posted: Wed Jun 14, 2017 1:30 pm
So in trying to adapt Blazes skinner I find that the following could be adapted to find any stacks of items.
sub loot
set #lObjectID #findID
lootAgain:
event macro 17
gosub scanner
if pathFind in #result
{
event pathFind #findX #findY
wait 1
goto lootAgain
}
wait 7
gumpLoop:
if #contSize <> 144_212
goto gumpLoop
findItem %stuff C_ , %corpse
if #findKind = -1
return
if #findType = OFF || #findType = VLK
goto dragDrop
set %hides #findID
findItem JAG C_ , #backpackID
if #findKind = -1
return
set #lTargetID %hides
set #lObjectID #findID
event macro 17
target
event macro 22
wait 7
findItem JJG C_ , %corpse
dragDrop:
exEvent drag #findID #findStack
exEvent dropC #backpackID
return
This works fine for the hides. My question is could the set#targetID %hides be changed to something like
set %gems uvf_vuf_gvf_evf_hvf_ovf_fvf_bvf_rvf_
set %regs KUF_JUF_KZF_JZF_MZF_WZF_RZF_SZF_IUF_DUF_TZF_UZF_YZF_
set %bones OJK_XIK_SJK_IJK_TJK_BJK_UJK_DJK_MJK_AJK_LJK
+_FJK_RJK_EJK_ZIK_YIK_JJK_GJK_KJK_HJK_OZF
to find gems, regs, and bones? I think OZF is daemon bones, the others can be removed. I found this online for easyuo but am not sure if this will work on Excelsior or with Blazes script. I have no prior experience coding other than a few videos I have watched and very limited time spent playing with the Learn Java app on my phone. Any and all help and advice is greatly appreciated.
sub loot
set #lObjectID #findID
lootAgain:
event macro 17
gosub scanner
if pathFind in #result
{
event pathFind #findX #findY
wait 1
goto lootAgain
}
wait 7
gumpLoop:
if #contSize <> 144_212
goto gumpLoop
findItem %stuff C_ , %corpse
if #findKind = -1
return
if #findType = OFF || #findType = VLK
goto dragDrop
set %hides #findID
findItem JAG C_ , #backpackID
if #findKind = -1
return
set #lTargetID %hides
set #lObjectID #findID
event macro 17
target
event macro 22
wait 7
findItem JJG C_ , %corpse
dragDrop:
exEvent drag #findID #findStack
exEvent dropC #backpackID
return
This works fine for the hides. My question is could the set#targetID %hides be changed to something like
set %gems uvf_vuf_gvf_evf_hvf_ovf_fvf_bvf_rvf_
set %regs KUF_JUF_KZF_JZF_MZF_WZF_RZF_SZF_IUF_DUF_TZF_UZF_YZF_
set %bones OJK_XIK_SJK_IJK_TJK_BJK_UJK_DJK_MJK_AJK_LJK
+_FJK_RJK_EJK_ZIK_YIK_JJK_GJK_KJK_HJK_OZF
to find gems, regs, and bones? I think OZF is daemon bones, the others can be removed. I found this online for easyuo but am not sure if this will work on Excelsior or with Blazes script. I have no prior experience coding other than a few videos I have watched and very limited time spent playing with the Learn Java app on my phone. Any and all help and advice is greatly appreciated.