Hi guys, trying to get together a mac for boxers so you can try and get a bit better then dead last on Boomerang Brawl so looking for some help to get the targeting right as I am not too sure how to use Target.ID, which I believe might be the best way to target theh correct mobs.
This Mac assumes you are already in the task, and in the middle of the arena and have selected the Blue Mob as your Monster.
Any ideas how to get Targeting right?
Any ideas of how to improve it?
This Mac assumes you are already in the task, and in the middle of the arena and have selected the Blue Mob as your Monster.
Any ideas how to get Targeting right?
Any ideas of how to improve it?
Code:
#event Ended "#*#The results of the contest are as follows#*#"
Sub Main
/plugin mq2cast
/call GetTarget
Sub GetTarget
/delay 1s
/keypress esc
:TargetLoop
/doevents
/if (!${Target.ID}) /tar npc radius 100
/if (${Target.ID.Equal[4976]}) {
/call AttackRed
}
/if (${Target.ID.Equal[4972]}) {
/call AttackRed
}
/if (${Target.ID.Equal[4980]}) {
/call AttackRed
}
/if (${Target.ID.Equal[4958]}) {
/call AttackYellow
}
/if (${Target.ID.Equal[4968]}) {
/call AttackYellow
}
/if (${Target.ID.Equal[4964]}) {
/call AttackYellow
}
/if (${Target.ID.Equal[4962]}) {
/call AttackYellow
}
/goto :TargetLoop
/return
Sub AttackRed
/stand
/casting "Red Boomerang"|item
/delay 1s
/call GetTarget
Sub AttackYellow
/stand
/casting "Yellow Boomerang"|item
/delay 1s
/call GetTarget
Sub Event_Ended
/echo Game Over
/end
/return