Moderator: MacroQuest Developers
One post wasn't enough? At least you didn't ask for warp in this one.bobbo124 wrote:Ive started a macro for a fairy monster mission but im requesting 1 thing, if someone knows the code to make them or tips for me would be great =)
i need help writing a macro, if possible, that makes me use 2 consecutive hotbuttons when a certain mob comes within a certain radius of my character and another hotbutton when the mob leaves that radius
if any of those macros are possible or if u have tips on writing them it would be greatly appreciated. thanks =)


Read the Manual.bobbo124 wrote:alright, ive been searching all over this site for hours for some code relating to spawns entering a radius and i have found nothing. if anyone has a link or a sample of code for this would be awesome


Code: Select all
Sub Main
:loopstart
if (!${Spawn[npc witch radius 75].ID}) {
/attack on
/delay 30s ${Spawn[npc witch radius 75].ID}
/attack off
/goto :loopstart
}
/if (${Spawn[npc witch radius 75].ID}) {
:hide
/if (${Me.AbilityReady["Hide"]}) {
/doability Hide
/delay 20s ${Me.AbilityReady["Hide"]}
}
/if (${Me.AbilityReady["Hide"]}) /goto :hide
}
/goto :loopstart
/return
