|-- LootSub shamelessly stolen from HunterNoWarp.mac
|---------------------------------------------------
Sub Main
:UsualLoopNameHere
/if (${SpawnCount[corpse radius 13]}>0) {
/call LootSub
} else {
/if (${SpawnCount[corpse radius 25]}>0) {
/tar corpse
/face fast
/keypress up
:YetAnotherLoop
/if (${Target.Distance}>13) /goto :YetAnotherLoop
/keypress up
/call LootSub
}
}
/goto :UsualLoopNameHere
/return
Sub LootSub
/declare LootSlot int inner 0
/declare LootTotal int inner 0
/tar corpse
/loot
/delay 2s
/if (!${Corpse.Items}) {
/notify LootWnd LW_DoneButton leftmouseup
/delay 2
/return
}
/varset LootTotal ${Corpse.Items}
/for LootSlot 1 to ${LootTotal}
/itemnotify loot${LootSlot} leftmouseup
/delay 1s
/autoinventory
/delay 1s
/next LootSlot
/notify LootWnd LW_DoneButton leftmouseup
/delay 2
/return