You confused the crap out of me.... Seriously... had to change pants.
Sub Clearblackrock
finditem UVF_EWF_FWF_GWF C_ , #backpackid
for #findindex 1 #findcnt
{
event property #findid
if Blackrock in #property
set %blackrock #findid ; Finds only Blackrock, not the Diamonds.
}
wait 10
if #findcnt > 0
{
for %i 1 #findcnt
{
finditem %blackrock C_ , #backpackid
exevent Drag #findid #findstack
exevent Dropc %TrashBarrel
wait 20
}
}
return
Okay, Lets start at the beginning and work our way to the End. Starting By cutting out your excess. Instead of Setting the Blackrock and then trying to drag it, just drag it the First time you find it.
Sub Clearblackrock
finditem UVF_EWF_FWF_GWF C_ , #backpackid
for #findindex 1 #findcnt
{
event property #findid
if Blackrock in #property
{
exevent Drag #findid ; No need for Findstack when it doesn't stack. I think that will actually cause crashes.
exevent Dropc %TrashBarrel
wait 20 ; Finds only Blackrock, not the Diamonds.
}
}
return
a 100,000,000,000,000,000,000,000 more Reliable method would be to use #Findcol to distinguish between diamonds and Blackrock.
Pretty Sure Diamonds have #Findcol = 0
so you would change it to something like
finditem UVF_EWF_FWF_GWF C_ , #backpackid
for #findindex 1 #findcnt
{
if #Findcol <> 0
{
exevent Drag #findid ; No need for Findstack when it doesn't stack. I think that will actually cause crashes.
exevent Dropc %TrashBarrel
wait 20 ; Finds only Blackrock, not the Diamonds.
}
}
Remember, the simple way is usually the best way.