Jump to content

Tremor on casting Fear


mikolaj1515
 Share

Recommended Posts

Hi, this my first post here. Wrobot is, a great tool with, a lot of possibilities, but i can't find some options which make me 100% happy. One of this option is checking conditions on focus, party1, arena1 etc. and casting spells what i want. A simple example can be arena2 casting Fear, so i cast Tremor etc. Can someone tell me how to write script like this. I have, a lot of ideas to make PvP scripts, but don't confuse with pve bot rotation with is useless on arena. Thx for help. Will it work?

local spell, _, _, _, _, _, _, castID, _, = UnitCastingInfo("Arena1")
local enabled = GetSpellCooldown("Tremor Totem")                             
 
if spell then                                                
   if castID == 5782 and enabled == 0 then                             
      RunMacroText("/cast Tremor Totem")
end                             
end                       
end                             
Link to comment
Share on other sites

Hello,

Put this code insted spell name in your fightclass, and activate spell setting "Not Spell, is lua...".

I haven't tested, but try this lua code:

local spell, _, _, _, _, _, _, castID, _, = UnitCastingInfo("Arena1");
local usable, nomana = IsUsableSpell("Tremor Totem");
if spell then
    if castID == 5782 and usable then
		RunMacroText("/cast Tremor Totem");
	end
end

or this code (if you want check all area members):

for i = 1, 5 do
	local spell, _, _, _, _, _, _, castID, _, = UnitCastingInfo("Arena" .. tostring(i));
	local usable, nomana = IsUsableSpell("Tremor Totem");
	if spell then
		if castID == 5782 and usable then
			RunMacroText("/cast Tremor Totem");
		end
	end
end

 

Link to comment
Share on other sites

  • 1 month later...

How can I use this code to fear him instead?

Ok, my bot is fighting with arena 1 in "party" mode.

arena 2 wants to cast something. My bot should fear arena 2 in this case. But not switching target completely.

 

And another question:

How can I command the bot (in party-mode) to switch target, when his target is in CC, or in some invulnerable mode?

I want to heal, so my target is not always the right one for the bot.

I thought to write a phrase in chat, this command signals a lua-code in his fight-class to switch the target.

If this is a realizable option with a phrase, I also would need a command to get the bot out of fight and get back to me.

I reget, I do not know anything about lua codes...

And I know that my English is very poor. Sry :(

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
 Share

×
×
  • Create New...