got bored with having to loot each one ><
Saw a loot mac earlier this month, but decided to write/snippet one together.
Thanks to Robdawg for the loot code.
One problem i forsee, but havent tested, is that it will target PC corpses..
But, I dunno how to work around that yet..
Code: Select all
|------------
|
| Taken Parts of Robdawg's Hunter.mac Loot code
|
| Edited and designed to meet my needs
| ~Exslam
|
|
|------------
/declare RV_LootSlot int outer 0
Sub Main
/squelch /target radius 500 corpse
/if (!${Target.ID}) {
/echo No Corpses in Range.
/echo Ending Macro.
/end
}
:MoveTo
/if ((${Target.Distance})>10) {
/face fast
/keypress Forward Hold
/delay 5
}
/if ((${Target.Distance})<5) {
/delay 2
/keypress back
/goto :loot
/delay 2
}
/goto :MoveTo
:loot
/declare LootSlot int inner 0
/declare LootCheck int inner 0
/declare LootTotal int inner 0
/lootn never
/fastdrop on
/delay 2s
/loot
/delay 2s
/if (!${Corpse.Items}) {
/echo No Loot, moving to next.
/return
}
/varset LootTotal ${Corpse.Items}
/for LootSlot 1 to ${LootTotal}
/itemnotify loot${LootSlot} leftmouseup
/delay 1s
/echo Keeping a ${Cursor.Name}.
/autoinventory
/delay 1s
/next LootSlot
/notify LootWnd DoneButton leftmouseup
/delay 1s
/if ((${Me.FreeInventory})=0) {
/echo No Free Inventory Slots, Ending Macro.
/end
}
/squelch /target corpse radius 500
/if (${Target.ID}) {
/goto :start
} else {
/echo No corpses in Range, Ending Macro!
}
/return



