Jump to content

Recommended Posts

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

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

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

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

  • 5 weeks later...
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

  • 3 months later...
  • 2 weeks later...
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

  • 8 months later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...