What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Plugin to use Items (Trinkets) every x time (minutes/sec)

katzerle

New Member
Joined
Jan 18, 2011
Messages
917
Reaction score
68
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:
  1. Make sure you have the latest version of Honorbuddy
  2. Extract the ZIP in your HonorBuddy/Plugins folder and enable it
  3. Choose use Item or spam a Macro
  4. Config your Item or Macro with the Configwindow:
    RunMacro.webp
  5. Config your Time (1000 means 1 second !!!)
  6. 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.

 

Attachments

Last edited:
Is it possible to have this run a macro instead every x seconds?
 
:)
Maybe, I will take a look at this tomorrow.

--> implemented :)
 
Last edited:
Please Reload the Plugin
I added a Configwindow and fixed some Problems
 
now it is :)
Sorry, have forgotten to upload the new version
 
How about useing @ low health and if stunned / feared?
 
Surely this is also possible.
Will implement this till friday ;)
 
Uploaded a New Version with "use Item or Macro if stunned or possessed or fleeing (fear)"
:)
 
Last edited:
Could you also make an option to run the macros if in battle mode? thanks =)
 
You mean if you get a "incombat"? Or what means in "Battle Mode".
 
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
 
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
Could you also make an option to run the macros if in battle mode? thanks =)
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()
 
Last edited:
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;
					}
				}
			}
		}
 
Last edited:
ok I will implement it :)

Edit:
Is implemented, just redownload it :)
 
Last edited:
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.
 
Back
Top