Post by Experience on Feb 5, 2016 7:23:36 GMT
//Name: Halygon's Dual Mob Provoke Macro
//Description: This macro selects the two nearest mobs and provokes them upon one another. No selection is required, only set this macro to a hotkey. Be aware that you do not have control over who it targets if multiple mobs are equally in range.
//Select an instrument automatically to use
if @findtype '0xe9e' '0' 'backpack' 'any' '2' //Tambourine with red tassle
@setalias 'instrument' 'found'
elseif @findtype '0x2805' 'any' 'backpack' 'any' '4' //Flute
@setalias 'instrument' 'found'
headmsg "Instrument set" '66'
@useobject 'instrument'
elseif @findtype '0xe9d' '0' 'backpack' 'any' '2' //Tambourine
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xe9c' '0' 'backpack' 'any' '2' //Drum
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xeb3' '0' 'backpack' 'any' '2' //Lute
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xeb2' '0' 'backpack' 'any' '2' //Lap Harp
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xeb1' '0' 'backpack' 'any' '2' //Standing Harp
@setalias 'instrument' 'found'
useobject 'instrument'
pause 800
else
headmsg 'No instrument found'
stop
endif
@cleartargetqueue
@ignoreobject 'pet1'
@ignoreobject 'pet2'
if targetexists
canceltarget
endif
pause 800
@getenemy 'murderer' 'criminal' 'grey' 'gray' 'nearest'
if @inrange 'enemy' 9
sysmsg 'Provoing....' '38'
useskill 'provocation'
waitfortarget 5000
target! 'enemy'
@getenemy 'murderer' 'criminal' 'grey' 'gray' 'nearest'
waitfortarget 5000
target! 'enemy'
else
headmsg 'Nothing to provoke!!!' '39'
endif
//Description: This macro selects the two nearest mobs and provokes them upon one another. No selection is required, only set this macro to a hotkey. Be aware that you do not have control over who it targets if multiple mobs are equally in range.
//Select an instrument automatically to use
if @findtype '0xe9e' '0' 'backpack' 'any' '2' //Tambourine with red tassle
@setalias 'instrument' 'found'
elseif @findtype '0x2805' 'any' 'backpack' 'any' '4' //Flute
@setalias 'instrument' 'found'
headmsg "Instrument set" '66'
@useobject 'instrument'
elseif @findtype '0xe9d' '0' 'backpack' 'any' '2' //Tambourine
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xe9c' '0' 'backpack' 'any' '2' //Drum
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xeb3' '0' 'backpack' 'any' '2' //Lute
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xeb2' '0' 'backpack' 'any' '2' //Lap Harp
@setalias 'instrument' 'found'
@useobject 'instrument'
elseif @findtype '0xeb1' '0' 'backpack' 'any' '2' //Standing Harp
@setalias 'instrument' 'found'
useobject 'instrument'
pause 800
else
headmsg 'No instrument found'
stop
endif
@cleartargetqueue
@ignoreobject 'pet1'
@ignoreobject 'pet2'
if targetexists
canceltarget
endif
pause 800
@getenemy 'murderer' 'criminal' 'grey' 'gray' 'nearest'
if @inrange 'enemy' 9
sysmsg 'Provoing....' '38'
useskill 'provocation'
waitfortarget 5000
target! 'enemy'
@getenemy 'murderer' 'criminal' 'grey' 'gray' 'nearest'
waitfortarget 5000
target! 'enemy'
else
headmsg 'Nothing to provoke!!!' '39'
endif