NOTE: Updated for 1.9.5.1 This is a rewrite of the HB1 eRefreshment plugin. It should now support all languages and all the food/drink in the game. I can't test it since I'm having an issue with one of my characters, so it may not even work. If it does work, let me know. If it doesn't work, also let me know and POST A LOG.
change if (foodName != "") { StyxSettings.HBSettings.FoodName = foodName; } if (drinkName != "") { StyxSettings.HBSettings.DrinkName = drinkName; } in StyxSettings.HBSettings.FoodName = foodName; StyxSettings.HBSettings.DrinkName = drinkName; it's much better
I really don't get why you check if foodname is "". because if you don't found a food is "". But there is a bug, for example: 1. you got 2 bananas. 2. code find 2 bananas. 3. StyxSettings.HBSettings.FoodName = bananas. 4. you eat all your bananas 5. foodName != "" is true but StyxSettings.HBSettings.FoodName is still bananas
Because if no food/drink is found it returns "", and if it returns "" you don't want it overwriting your food/drink settings. And the food/drink detect runs every minute, so if you run out it will find the next best food you have.
indeed but if you don't have any food, he is trying to eat something he doesn't has, but it's just me nvm
works on german system YAY - thanks ski for makeing the finishing touch - thanks enerion for the great basis!
Btw I think this was broken in the latest beta. If anyone is getting crashes from it post up logs so I can take a look.
Just got done using it. Works great! Beta 8. My HB2 did crash however, not sure if it was due to the plugin. Meh, here's the log anyhow:
Sorry for the noob question but am i right in saying that if we use this plugin, we should leave the food/drink name in HB itself blank ?
You can, but you don't have to. It should work no matter what you put in there as it overwrites it anyway.