Jump to content

Back Pedal for hunter fight class


Hessler
 Share

Recommended Posts

Hi

 

I've tried to find anything about this but nothing comes up.

I've done a fightclass for my hunter, but when the mobs comes to close it wont back pedal. 
What I want is that when pet (or someone else) has aggro it should back pedal enough to be able to shoot.

I've set for example my steady shot to be between 5-35y but when mobs get to close it just stands there autohitting, regardless if the pet has aggro or not. 

 

Anyone have a good tip?

Link to comment
Share on other sites

  • 3 weeks later...
Quote

local C_Timer = CreateFrame("Frame", "C_Timer")\nC_Timer.schedule = {}\nC_Timer:SetScript("OnUpdate", function(self, elapsed)\n    for timestamp,callback in pairs(self.schedule) do\n        if timestamp <= GetTime() then\n            callback()\n            self.schedule[timestamp] = nil\n        end\n    end\nend)\n\nC_Timer.After = function(duration, callback)\n    C_Timer.schedule[GetTime() + duration] = callback\nend\n                                \nMoveBackwardStart()\nC_Timer.After(9000, function() MoveBackwardStop() end)

this is lua script.

conditions:

target must be targetting your pet

target must have health above certain % (meaning its not about to die)

Distance between you and target is less than 8 yard

You have pet

you're in combat

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...