Plugin to use Items/Macros every x time (minutes/sec) Hello ppl This Plugin will spam a macro or use a item every x milliseconds. How to use: Make sure you have the latest version of Honorbuddy Extract the ZIP in your HonorBuddy/Plugins folder and enable it Choose use Item or spam a Macro Config your Item or Macro with the Configwindow: Config your Time (1000 means 1 second !!!) press Save RunMacro2: This is the same Plugin as RunMacro but you can install both Plugins parallel to spam 4 Macros or Items. RunMacroDouble: With this Plugin you could setup both of the Macros/Items with own Timer and Settings. This could also be install beside RunMacro and RunMacro2. Also /Use 13 and /use 14 is possible. Hint: Macros with more then one line you write like this: /2 hello \n/2 I'm a spammer in the Tradechannel \n is like a return Hint two: If you use a Item you have to config it in the language of your Client Special Thanks to: highvoltz and znuffie they wrote the original "RunMacro"-Plugin Version 1.1: ? Implemented Plausichecks for GUI ? Implemented use the Macro or Item if stunned or possessed or fleeing Version 1.2:? Implemented use Macro/Item if entering Combat ? Implemented use Macro/Item if special Buff disappears Version 1.3: ? Implemented use Macro/Item during Combat every x mms ? Implemented an Option not to use Items/Macros if Mounted Version 1.4 ? It's now possible to use 2 Macros or Items or a mixed Version of both.
If its possible it would be good if there was an option to use/cast whenever you dont have a buff For things such as Alchemy flask, Deviate fish perhaps
implemented Version 1.2: • Implemented use Macro/Item if entering Combat • Implemented use Macro/Item if Buff disapears
I have that spam in my debug log [22:18:49:403] Plugin RunMacro - UseItem threw an exception in 'Pulse'! Exception: [22:18:49:404] System.OverflowException: Value was either too large or too small for an Int16. at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at katzerle.RunMacro.Pulse() in c:\Users\user\Desktop\HB\Plugins\RunMacro\RunMacro.cs:line 125 at Styx.Plugins.PluginWrapper.Pulse()
what i needed this plugin to do is to use a trinket every minute and a half (91 sec) and only while im in combat ( so it wont keep knocking me off my mount when im just running around) I modified it as follows: (note that i changed "Convert.ToInt16" to "Convert.ToInt32" to suport the larger number) and avoid the error mentined on the above post Code: public override void Pulse() { if (Settings.Text == "") return; bool MeCombat = false; if (!Me.Combat) MeCombat = false; if (Settings.BCombat) { if (Me.Combat && !MeCombat && !Me.IsCasting && !Me.Dead && !Me.IsGhost) { if (Settings.BBuff && !Me.IsCasting && !Me.Dead && !Me.IsGhost) { if (!(Me.ActiveAuras.ContainsKey(Settings.Buff))) Lua.DoString(string.Format("UseItemByName(\"{0}\")", Settings.Text), 0); } if (Settings.BStunned && (Me.Stunned || Me.Possessed || Me.Fleeing)) { if (Settings.BMacro) Lua.DoString(string.Format("RunMacroText(\"{0}\")", Settings.Text), 0); else if (Settings.BItem) Lua.DoString(string.Format("UseItemByName(\"{0}\")", Settings.Text), 0); else return; } if (Settings.BTime && (Settings.Time != "")) { if (!isPulsing && !pulseThrottleTimer.IsRunning || pulseThrottleTimer.ElapsedMilliseconds >= Convert.ToInt32(Settings.Time)) { if (Settings.BMacro && !Me.IsCasting) { Lua.DoString(string.Format("RunMacroText(\"{0}\")", Settings.Text), 0); pulseThrottleTimer.Reset(); pulseThrottleTimer.Start(); } else if (Settings.BItem && !Me.IsCasting) { Lua.DoString(string.Format("UseItemByName(\"{0}\")", Settings.Text), 0); pulseThrottleTimer.Reset(); pulseThrottleTimer.Start(); } else return; } else return; MeCombat = true; } } } }
This works great for me grinding the hell out of hat'ari Skyguard for the mount now i can use the Elixir of Shadows every 20 min =)
Is it possible to make it use 2 items? I run mixed mode with poolfisher and BG, and that results in me running around in a BG with a fishing pole. So "using" my weapons when I enter combat would fix that.