Ninja Looter

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

3boxer
orc pawn
orc pawn
Posts: 15
Joined: Fri Dec 12, 2003 11:12 am

Post by 3boxer » Fri Dec 12, 2003 2:16 pm

Any way to auto loot the items on the corpse?

I'm not thinking of raids. I'm thinking of 3-boxing LDoN adventures and how much time I'd save with an autoloot feature. I'd want to leave no-drop items on the corpse. What I'd like to do is add this feature to my Beastlord/Shaman script that I already have, so that whenever a mob dies, he just loots the corpse, loots any item(s) that might be on it (not the no-drop ones), and ends looting (ESC,ESC). Not sure how to code the looting of the items part though.

3boxer
orc pawn
orc pawn
Posts: 15
Joined: Fri Dec 12, 2003 11:12 am

Post by 3boxer » Fri Dec 12, 2003 2:25 pm

Searched around a bit and found one by eqjunky (credits to him). This is untested, but I'll try and test it later tonight.

Code: Select all

Sub Main 
    /declare LootSlot global 
    /declare LootTotal global 
    /varset LootSlot 0 
    /tar corpse 
    /loot corpse 
    /goto :lootloop 
    /return 
/endmacro 

:lootloop 
   /if n @LootSlot>=25 /goto :doneloot 
   /click left corpse @LootSlot 
   /delay 1s 
   /if "$cursor()"!="TRUE" /goto :doneloot  
   /delay 1s 
   /click left auto 
   /delay 1s 
   /varadd LootSlot 1 
   /goto :lootloop 
   } 
:doneloot 
/endmacro