- Joined
- Jan 4, 2005
- Messages
- 3,198
- Reaction score
- 7
- Points
- 0
I rewrote some of it and found this to work much better than the previous version.
This WILL wait until the mob is below 90% and will wait for it be at the camp spot before it runs off to attack.
This WILL wait until the mob is below 90% and will wait for it be at the camp spot before it runs off to attack.
Code:
Sub Main
/squelch /assist off
/if (!${Defined[Param0]}) {
/echo Proper usage: /macro assist TankName
/end
}
/declare RT_MyXLOC int outer ${Me.X}
/declare RT_MyyLOC int outer ${Me.Y}
/declare AssistGuy string outer ${Param0}
:Loop
/if (${Zone.ShortName.Equal[GuildLobby]}) {
/sit
/endmac
}
/if (${Spawn[${AssistGuy}].Type.Equal[PC]} && ${Spawn[${AssistGuy} radius 100].ID} && ${${AssistGuy}.Distance}<50) {
/assist ${AssistGuy}
/if (!${Target.ID}) /goto :loop
/delay 30s ${Target.PctHPs}<90
/delay 30s ${Target.Distance}<50
/attack on
/stick behind 15
}
/if (${Target.Type.Equal[Corpse]}) /goto :Loop
/delay 30s !${Target.ID} ${Target.Type.Equal[Corpse]}
/if (!${Target.ID}) /moveto loc ${RT_MyyLOC} ${RT_MyXLOC}
/delay 3s
/goto :Loop
/return