Code: Select all
if @findtype 0x2006 'any' 'ground' 1 2
msg '[claim'
waitfortarget 100
@target 'found'
pause 100
@clearusequeue
@cancelautotarget
@canceltarget
endif
If you want to add autoclaimer to an autoattack macro then the script will be like this:
Code: Select all
@canceltarget
@Getenemy 'murderer' 'Enemy' 'criminal' 'gray' 'closest'
if @findobject 'enemy'
autotargetobject! 'enemy'
attack! 'enemy'
endif
@clearusequeue
@cancelautotarget
if @findtype 0x2006 'any' 'ground' 1 2
msg '[claim'
waitfortarget 100
@target 'found'
pause 100
@canceltarget
endif
pause 500