scrublord69420 0 Posted June 5, 2017 Share Posted June 5, 2017 Is there a way to feed my hunter pet "X" food after "x" amount of time, or "x" number of monsters killed? If this isn't possible with fight class/lua in fight class could someone make a plugin that does this? Link to comment Share on other sites More sharing options...
Matenia 625 Posted June 5, 2017 Share Posted June 5, 2017 For TBC, you could use an FeedMachine, which as far as I know picks food automatically. It also (afaik) uses some sort of button you just click for one-click feeding. In your fight class, you could just call the Lua code: RunMacroText("/click <buttonname>") Where <buttonname> would be the name of the button FeedMachine uses. No clue what it's called. Link to comment Share on other sites More sharing options...
scrublord69420 0 Posted June 5, 2017 Author Share Posted June 5, 2017 I found a multiline macro #showtooltip Feed Pet /cast [@pet, dead] Revive Pet /cast [nopet, nocombat] Call Pet 1 /cast [pet, combat] Mend Pet /cast [pet, nocombat] Feed Pet /use [nocombat] 0 1 I guess this will eat food if its in the #1 inventory slot Can you call multi line with lua in the same spell or how does that work? Would I create an in game macro and call the macro as a spell? How? Link to comment Share on other sites More sharing options...
Matenia 625 Posted June 6, 2017 Share Posted June 6, 2017 You could multiline by using \n for linebreaks. Or you could create a small addon with a public function that executes all these things, then use the Bot's Lua API to call that function. Link to comment Share on other sites More sharing options...
Photogenic 24 Posted July 5, 2017 Share Posted July 5, 2017 On 6/5/2017 at 10:03 AM, scrublord69420 said: Is there a way to feed my hunter pet "X" food after "x" amount of time, or "x" number of monsters killed? If this isn't possible with fight class/lua in fight class could someone make a plugin that does this? Add spell named : RunMacroText("/cast Feed Pet"); RunMacroText("/use NameOfFood"); Now: NameOfFood= the food you gonna give to your pet. Do the following / Is not spell, Lua script: True Time: (here you put timer of how often you want the bot to feed your pet) >>> Exampel, I want the bot to feed pet every 1 minute. So, timer:60000 Thats 60 seconds ^ which is one minute. Combat only?: False Check Distance: False Can move when using: True There you go, thats a semi solid solution :) Link to comment Share on other sites More sharing options...
Lokiro 5 Posted October 13, 2017 Share Posted October 13, 2017 my first class is a .xml how i can add runmacro ? Link to comment Share on other sites More sharing options...
Photogenic 24 Posted October 22, 2017 Share Posted October 22, 2017 On 10/12/2017 at 8:35 PM, Lokiro said: my first class is a .xml how i can add runmacro ? Its where you write the spell name, Just as I explained above. After you type the spell name exactly like I wrote it up there, you make sure you fix the settings I included. If you couldn't figure it out drop me a message Link to comment Share on other sites More sharing options...
farq 0 Posted July 6, 2018 Share Posted July 6, 2018 On 10/23/2017 at 7:06 AM, lonellywolf said: Its where you write the spell name, Just as I explained above. After you type the spell name exactly like I wrote it up there, you make sure you fix the settings I included. If you couldn't figure it out drop me a message do i add in 2 spells ? one for feed one for the actual item? Link to comment Share on other sites More sharing options...
sb360 17 Posted July 6, 2018 Share Posted July 6, 2018 No its a single macro. Link to comment 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