Targeting what I kill

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

bhaal
orc pawn
orc pawn
Posts: 17
Joined: Fri Oct 04, 2002 3:21 pm

Targeting what I kill

Post by bhaal » Mon Oct 07, 2002 6:03 pm

I am assuming that a mob has the same ID when it is alive as when it is dead? i am trying to add in the code to so that I auto loot what I kill but keep getting error messages. If I change the target statement to just be /target corpse I do get the corpse and loot it, but sometimes it might not be what I killed or it may target a players corpse and give me the "you cannot loot this corpse" message. Anyone know what I am doing wrong?

edit: code bracks

Code: Select all

basically here is my code:
Sub main
 /target skeleton
 /varset v90 $target(id)
 /call KillTarget
 /call AutoLoot
 /return

Sub AutoLoot 
  /target id $v90
  /face nopredict
  /delay 2s 
  /loot 
  /delay 2s 
  /mouseto corpse 0 
	/delay 1 
	/click left
	/delay 3
	/click left auto 
  /mouseto corpse 1 
	/delay 1 
	/click left
	/delay 3
	/click left auto 
  /mouseto corpse 2 
	/delay 1 
	/click left
	/delay 3
	/click left auto 
  /mouseto corpse 3 
	/delay 1 
	/click left
	/delay 3
	/click left auto 
	/delay 1s 
	/press esc esc esc 
/return

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Tue Oct 08, 2002 9:59 am

try

Code: Select all

/target corpse id $v90