Sub Loot
/if (${Verbose}) /echo Loot Sub
:again
/If (${Zone.ID}==31) {
/exchange "Diamond Tipped Drill Bit" Mainhand
/delay 1s
/exchange "Clockwork Infantry Bayonet" Offhand
/delay 1s
/echo ! Looting !
/delay 1s
/target id ${Spawn[npc race "Chest"].ID}
/delay 1s
/if (${Verbose}) /echo Loot Sub - Warp
[COLOR="Red"] /If (${Zone.ID}==31 && ${Target.Distance}>8) /warp t[/COLOR]
/delay 1s
/open
/delay 1s
/target corpse
/if (${Verbose}) /echo Loot Sub - Fade
/if (${Target.Type.NotEqual[corpse]}) /call Fade
/If ([COLOR="Lime"]${Zone.ID}==31 && [/COLOR]${Target.Distance}>8) /warp target
/delay 1s
/if (${Verbose}) /echo Loot Sub - Loot
/loot
/delay 2s
/doevents
/itemnotify loot2 rightmouseup
/itemnotify loot2 rightmouseup
/delay 3s
/notify ConfirmationDialogBox Yes_Button leftmouseup
/delay 1s
/notify LootWnd DoneButton Leftmouseup
/delay 2s
/notify LootWnd DoneButton Leftmouseup
/if (!${FindItem[Shard of Wisdom].InvSlot.ID}) /goto :again
/varcalc WinCount ${WinCount}+1
/if (${Verbose}) /echo Loot Sub - Successful Loot (${WinCount})
/warp loc ${Math.Calc[${Math.Rand[7]}+-401]}, ${Math.Calc[${Math.Rand[7]}+-352]}, 17
} else {
/if (${Zone.ID}==27) {
/if (${Verbose}) /echo Loot Sub - Loot called in Lavastorm
/call Reset
/call Loot
}
}
/return