• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Plugin to use Items (Trinkets) every x time (minutes/sec)

    Discussion in 'Archives' started by katzerle, Mar 12, 2011.

    1. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      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.jpg
      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.

       

      Attached Files:

      Last edited: May 5, 2011
      Ahempo likes this.
    2. ross2000

      ross2000 New Member

      Joined:
      Apr 4, 2010
      Messages:
      85
      Likes Received:
      1
      Trophy Points:
      0
      Is it possible to have this run a macro instead every x seconds?
       
    3. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      :)
      Maybe, I will take a look at this tomorrow.

      --> implemented :)
       
      Last edited: Mar 20, 2011
    4. ross2000

      ross2000 New Member

      Joined:
      Apr 4, 2010
      Messages:
      85
      Likes Received:
      1
      Trophy Points:
      0
      Thanks v much :)
       
    5. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      Please Reload the Plugin
      I added a Configwindow and fixed some Problems
       
    6. ross2000

      ross2000 New Member

      Joined:
      Apr 4, 2010
      Messages:
      85
      Likes Received:
      1
      Trophy Points:
      0
      There doesn't seem to be a link to the zip file?
       
    7. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      now it is :)
      Sorry, have forgotten to upload the new version
       
    8. kayes

      kayes Active Member

      Joined:
      Jan 15, 2010
      Messages:
      1,353
      Likes Received:
      4
      Trophy Points:
      38
      How about useing @ low health and if stunned / feared?
       
    9. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      Surely this is also possible.
      Will implement this till friday ;)
       
    10. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      Uploaded a New Version with "use Item or Macro if stunned or possessed or fleeing (fear)"
      :)
       
      Last edited: Mar 29, 2011
    11. BlackPrapor

      BlackPrapor New Member

      Joined:
      May 7, 2010
      Messages:
      285
      Likes Received:
      1
      Trophy Points:
      0
      Could you also make an option to run the macros if in battle mode? thanks =)
       
    12. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      You mean if you get a "incombat"? Or what means in "Battle Mode".
       
    13. Zeewolf

      Zeewolf Member

      Joined:
      Feb 2, 2011
      Messages:
      266
      Likes Received:
      9
      Trophy Points:
      18
      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
       
    14. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      implemented :)
      Version 1.2:
      • Implemented use Macro/Item if entering Combat
      • Implemented use Macro/Item if Buff disapears
       
    15. topi4ek

      topi4ek New Member

      Joined:
      Jan 4, 2011
      Messages:
      95
      Likes Received:
      0
      Trophy Points:
      0
      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: Apr 2, 2011
    16. DalordUrgod

      DalordUrgod New Member

      Joined:
      Feb 19, 2011
      Messages:
      57
      Likes Received:
      0
      Trophy Points:
      0
      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: Apr 2, 2011
    17. katzerle

      katzerle New Member

      Joined:
      Jan 18, 2011
      Messages:
      917
      Likes Received:
      68
      Trophy Points:
      0
      ok I will implement it :)

      Edit:
      Is implemented, just redownload it :)
       
      Last edited: Apr 3, 2011
    18. theatristformallyknownasG

      theatristformallyknownasG Active Member

      Joined:
      Jan 16, 2010
      Messages:
      3,041
      Likes Received:
      8
      Trophy Points:
      38
      great, was looking for a trinket plugin that worked as described above.

      G
       
    19. forvirrad

      forvirrad Member

      Joined:
      Jan 11, 2011
      Messages:
      116
      Likes Received:
      1
      Trophy Points:
      18
      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 =)
       
    20. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      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.
       

    Share This Page