EndUser 4 Posted September 5, 2016 Share Posted September 5, 2016 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 More sharing options...
Droidz 2738 Posted September 6, 2016 Share Posted September 6, 2016 Hello, testOnceAfterCombat.xml Link to comment https://wrobot.eu/forums/topic/3783-macro-only-once-after-combat/#findComment-17675 Share on other sites More sharing options...
EndUser 4 Posted September 9, 2016 Author Share Posted September 9, 2016 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? Link to comment https://wrobot.eu/forums/topic/3783-macro-only-once-after-combat/#findComment-17785 Share on other sites More sharing options...
Droidz 2738 Posted September 9, 2016 Share Posted September 9, 2016 can you share your fightclass Link to comment https://wrobot.eu/forums/topic/3783-macro-only-once-after-combat/#findComment-17788 Share on other sites More sharing options...
EndUser 4 Posted September 14, 2016 Author Share Posted September 14, 2016 Sure. The repeating log entry only happens after I finish combat. It doesn't display that behavior just after launch. 7.03 Hunter B_3.xml Link to comment https://wrobot.eu/forums/topic/3783-macro-only-once-after-combat/#findComment-17926 Share on other sites More sharing options...
Droidz 2738 Posted September 14, 2016 Share Posted September 14, 2016 remove "// System.Threading.Thread.Sleep(1000);" Link to comment https://wrobot.eu/forums/topic/3783-macro-only-once-after-combat/#findComment-17928 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now