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

Not eating food!

Zabbad

New Member
Joined
May 29, 2010
Messages
21
Reaction score
0
My bot is not eating food.
Yes I have the food in my Backpack
Food name: "Sour Goat Cheese"
It have worked before and then suddenly one day when I decided to bot it just wouldn't eat anymore.
Any solutions please?
 

Attachments

Tried a different food type? Worked for me when my warrior decided he no longer liked Roasted Quail...
 
Same thing with my DK, it never seems to trigger the rest function? Not sure
 
Might be something in the CC then, though I don't know enough about HB to say for sure... Try another CC?
 
TLDR: Download attached CC and replace default

OK, so, I decided to look in to this and this is what I found:

In the DeathKnightCC (CustomClasses/Deathknight.cs) this code is on line 36:

Code:
public override bool NeedRest { get { return _me.HealthPercent < Styx.Logic.Common.Rest.RestPercentageHealth; } }

I'm not sure if for some reason Styx.Logic.Common.Rest.RestPercentageHealth is no longer returning a value (I'm not super familiar with HB) or if it's returning an unexpected value (I assume we would see this in the debug log) or just an incorrect integer, but it is preventing the bot from resting.

I have attached a fixed version that rests at 50%. If you would like it to rest at another value you can modify the EatHealth variable in the CS file. Enjoy.
 

Attachments

I have attached a fixed version that rests at 50%. If you would like it to rest at another value you can modify the EatHealth variable in the CS file. Enjoy.

Thank you. I will test it now and report back how it works.

EDIT: I added your Deathknight.cs then got myself down to roughly 30% Closed WoW and restarted HB. When I tried to start HB I got a debug message.

Log:

bla bla bla
Adding: Unholy Presence
Spell book built
Could not compile CC from <HB DK.cs LOCATION>
File. Deathknight.cs Line: 36 Error: ;expected
 
Last edited:
Thank you. I will test it now and report back how it works.

EDIT: I added your Deathknight.cs then got myself down to roughly 30% Closed WoW and restarted HB. When I tried to start HB I got a debug message.

Log:

bla bla bla
Adding: Unholy Presence
Spell book built
Could not compile CC from <HB DK.cs LOCATION>
File. Deathknight.cs Line: 36 Error: ;expected

Add a ; to the end of that line?
 
Back
Top