Jump to content

Recommended Posts

Hello,

I'd like to cast Fetch on my Hunter pet, but only ONCE after combat.  Right now it casts over and over.  I have it set as:

Spell Settings

  • combat only - false
  • not a spell, is lua script - true
  • once per target - true (doesn't seem to make any difference)

Spell Conditions

  • me in combat - false

Here's the script:

RunMacroText("/targetlastenemy [help][noexists]")
RunMacroText("/cast Fetch")

Any ideas?

Link to comment
https://wrobot.eu/forums/topic/3783-macro-only-once-after-combat/
Share on other sites

Still having some issues:

08:06:27 - [Fight] Player Attack Leyline Researcher (lvl 110)
[F] 08:06:27 - [FightClass] Launch LUA script: PetAttack();
[F] 08:06:27 - [FightClass] Launch LUA script: RunMacroText("/cast [@focus, help] [@pet, nodead, exists] Misdirection")
[F] 08:06:28 - [Spell] Cast Mend Pet (Mend Pet)
[F] 08:06:28 - [Spell] Cast Bestial Wrath (Bestial Wrath)
[F] 08:06:28 - [FightClass] Launch C# code: robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", false);
[F] 08:06:30 - [Spell] Cast A Murder of Crows (A Murder of Crows)
[F] 08:06:30 - [FightClass] Launch LUA script: RunMacroText("/use Emmarel's Assault")
[F] 08:06:31 - [Spell] Cast Cobra Shot (Cobra Shot)
[F] 08:06:31 - [Spell] Cast Counter Shot (Counter Shot)
[F] 08:06:32 - [Spell] Cast Dire Beast (Dire Beast)
[F] 08:06:34 - [Spell] Cast Kill Command (Kill Command)
[F] 08:06:35 - [Spell] Cast Cobra Shot (Cobra Shot)
[F] 08:06:35 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:36 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:37 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:38 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:39 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:41 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:42 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
[F] 08:06:43 - [FightClass] Launch C# code: // System.Threading.Thread.Sleep(1000); wManager.Wow.Helpers.Lua.RunMacroText("/targetlastenemy [help][noexists]"); wManager.Wow.Helpers.Lua.RunMacroText("/cast Fetch"); robotManager.Helpful.Var.SetVar("OnceAfterCombat_SpellCast", true);
08:06:43 - [AntiAfk] Disposed.
08:06:44 - Session statistics:
Elapsed time: 00h:00m:23s
Kills: 1 (156/hr)
Deaths: 0 (0/hr)
Farms: 0 (0/hr)
Loots: 0 (0/hr)
Money/HR: 0 G 00 S 00 C (0 G 00 S 00 C)
Honor/HR: 0 (0)
Apexis Crystal/HR: 0 (0)

 

 

Perhaps an edit of the Loot-a-Rang plugin?

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