Jump to content

new conditional suggestion


Rickster

Recommended Posts

I thought it would be nice to have a new conditional added. Focus health percent.

As a feral druid, it would be nice to be able to focus your tank and cast rebirth if dead?

 

Thanks

Link to comment
Share on other sites

 

There are 2 possible solutions with Macro and without

1.With Macro

Create a macro:

#showtooltip
/cast [target=focus,exists]Rebirth

Create the new Spell in WRobot:

Spell name is:

RunMacro(macroID);

macroID = position in your "macro list" (starting top left, going from left to right and top to bottom) Just the number( eg. 1 not "1")

In spell settings set "Not spell, is lua script" to true

 

Conditions:

We will use this WoW_API (this is not secured [safe to use])

local health = UnitHealth(unit);

Set the condition of Rebirth to "Lua script"

in "lua script" write 

local health = UnitHealth("focus");
ret = false;
if (health == 0) then ret = true;

"return value research" set to true

"return value var" set to ret

Warning: If you don't have a focus selected it will always be true and spamming Rebirth

2. Without a macro

Spell name:

CastSpellByName("Rebirth"{, "focus"});

Conditions are the same

 

I guess this should work.

 

 

Link to comment
Share on other sites

I guess Droidz will post a comment sooner or later telling us how to do it a lot easier and my work is gone :dry::biggrin:

And why am I talking about Ban-Risk, we are using a Bot :biggrin:

Link to comment
Share on other sites

5 hours ago, dida1990 said:

I guess Droidz will post a comment sooner or later telling us how to do it a lot easier and my work is gone :dry::biggrin:

And why am I talking about Ban-Risk, we are using a Bot :biggrin:

The bot can run LUA secure scripts without an unlocker

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...