loot corpse after res and put items back in place

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

donmacro
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sun Feb 15, 2004 2:04 pm

loot corpse after res and put items back in place

Post by donmacro » Mon Feb 16, 2004 10:54 am

Be nice to have a script that autoloots your whole corpse after res from a death and puts everything back how it was BEFORE you died without you having to do anything. Maybe put the items into an ini so ensure proper placement. Has this been done? Maybe as a twist have the script auto ask for buffs from certain pc's named in the ini. Would be sweet for people who die a ton and relieve the tedium on looting and asking for buffs every damn time.

thanks

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Re: loot corpse after res and put items back in place

Post by ap50 » Mon Feb 16, 2004 8:37 pm

Code: Select all

|---- Lootit.mac

Sub main
	/declare fnlone global
	/target mycorpse
	/corpse
	/loot
	/delay 1.5s

	/for fnlone 0 to 29
		/click right corpse @fnlone
		/click right corpse @fnlone
		/delay 1s |might need more of a delay depending on the speed of your computer
	/next fnlone

	/click left corpse done
/return
Found this in my macro folder, have used it for as long as I can remember, which isn't long due to the alcohol.
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

User avatar
CuddleBunny
orc pawn
orc pawn
Posts: 23
Joined: Sun Feb 22, 2004 10:23 pm

Post by CuddleBunny » Sun Feb 22, 2004 10:31 pm

Here's some little macro I wrote for exactly this purpose,
It klicks the item on your corpse and waits in a loop until it has the item on the cursor, then klicks autoinventory, if it does not find an item on the cursor for several seconds (because the slot where the macro tried to pick up the item is empty) it will close the corpse.

Have fun~ :wink:

Code: Select all

#turbo
Sub Main
	   /declare lootslot local
	   /declare lootclicks local
	   /varset lootslot 0
	:loop
	   /varset lootclicks 0
	:tryagain
	   /varadd lootclicks 1
	   /click left corpse @lootslot
	   /delay 0
	   /if "$cursor()"!="TRUE" /if n @lootclicks<30 /goto :tryagain
	   /if "$cursor()"!="TRUE" /goto :end
	   /click left auto
	   /varadd lootslot 1
	   /goto :loop
	:end
	/click left Corpse done
/return

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Sun Apr 25, 2004 9:54 pm

Code: Select all

| Loot.mac 
| By LordGiddion and AP50
| 

Sub main 
   /declare LootSlot global 
   /target mycorpse 
   /corpse 
   /loot 
   /delay 1.5s 
   /popup LOOTING MY CORPSE NOW
   /for LootSlot 1 to 30 
      /itemnotify loot@LootSlot rightmouseup  
      /delay 1s 
      /if (!${Corpse.Items}) /goto :donelooting
   /next LootSlot

   :donelooting
   /delay 1s
   /notify LootWnd DoneButton leftmouseup
   /popup DONE LOOTING MY CORPSE
/endmacro 
Pulled from genbot. Incase anyone needs a stand alone corpse looter.

Get res, type "/mac loot" ... and your done ...

Bob

Edit.. thought this was already in depot ... re placing in depot now...