knights 8 Posted June 14, 2016 Share Posted June 14, 2016 Is there a way to stop attacking the current target once a buff is detected? For example target is stunned, then bot will clear the target Link to comment https://wrobot.eu/forums/topic/3212-stop-attacking-or-clear-target/ Share on other sites More sharing options...
BetterSister 367 Posted June 14, 2016 Share Posted June 14, 2016 I think there is a API entry for that but i can't find it right now... Link to comment https://wrobot.eu/forums/topic/3212-stop-attacking-or-clear-target/#findComment-14746 Share on other sites More sharing options...
Droidz 2738 Posted June 16, 2016 Share Posted June 16, 2016 Hello, to clear target you can use lua code http://wowwiki.wikia.com/wiki/API_ClearTarget : ClearTarget(); Link to comment https://wrobot.eu/forums/topic/3212-stop-attacking-or-clear-target/#findComment-14809 Share on other sites More sharing options...
knights 8 Posted June 28, 2016 Author Share Posted June 28, 2016 On 6/17/2016 at 0:26 AM, Droidz said: Hello, to clear target you can use lua code http://wowwiki.wikia.com/wiki/API_ClearTarget : ClearTarget(); Tried this but it doesn't seems to work. I would like to get the bot to clear the current target and find others instead. After using Iron Trap, the mob becomes untargetable but the bot still tries to attack it. With the ClearTarget, the bot just stays there waiting for it to disappear before searching for another target. Is there a clear last target memory for the wRobot? Link to comment https://wrobot.eu/forums/topic/3212-stop-attacking-or-clear-target/#findComment-14991 Share on other sites More sharing options...
Droidz 2738 Posted July 8, 2016 Share Posted July 8, 2016 You can use C# code wManager.Wow.Helpers.Fight.StopFight(); But for the moment no easy way to use c# code in fightclasses editor, I'll add spell option like "Not spell, is c# code" in next WRobot updates. Batman 1 Link to comment https://wrobot.eu/forums/topic/3212-stop-attacking-or-clear-target/#findComment-15346 Share on other sites More sharing options...
Bugreporter 93 Posted July 25, 2016 Share Posted July 25, 2016 Did you ever tried this snippet ? The hint is, to check, if the target stoped targeting you..... Link to comment https://wrobot.eu/forums/topic/3212-stop-attacking-or-clear-target/#findComment-16108 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now