Jump to content

function helper


Miragex01

Recommended Posts

1 hour ago, Miragex01 said:

hi all, how create only one function for fight?
i wanna if enemyarenaplayer use Tremortotem my pet go autoattack him ?
it's possible to relize ?(im control my char dmg/way)

Yes it is possible. In LUA for Grounding Totem would be simple this,

if UnitBuffID("arena1", 8178) -- Checks if arena target has the Grounding Totem buff
or UnitBuffID("arena2", 8178)
or UnitBuffID("arena3", 8178)
then
  	RunMacroText("/petattack Grounding Totem") -- Sends pet to Grounding Totem
end

Just change up the ID with the Tremor Totem Buff.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...