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

eRefreshment 2.0 - Detects your food and drink automatically! [HB2]

Same here, using 1.9.5.5, and it doesn't work.

Can someone update it please?
 
just ask a random plugin maker to update the internals of the file and it should work again. so by saying so can a plugin maker or Erenion/ski work on this
 
just ask a random plugin maker to update the internals of the file and it should work again. so by saying so can a plugin maker or Erenion/ski work on this

I'm going to fix it in the very near future. Just got the keys to my new house today so going to check that out first ;)
 
I'm going to fix it in the very near future. Just got the keys to my new house today so going to check that out first ;)

You mean to say that you find your new house more important than eRefreshment ? How dare you. Get your priorities straight
 
I don't see your issues.
Here it still does what it's supposed to do (and I'm not aware of any changes I might have made to it, unless in my sleep).
I ran this with 1.9.5.3 / 1.9.5.5 and the latest one 1.9.5.9

I will attach it here just in case, but as said I'm not aware of any changes to it.
 

Attachments

I just tried the one you posted liquid, and it works great! The oringal post one would not work in 1.9.5.7 for me... but yours works on 1.9.5.9 perfect.
 
I just tried the one you posted liquid, and it works great! The oringal post one would not work in 1.9.5.7 for me... but yours works on 1.9.5.9 perfect.
Then I must've changed something in my sleep :S
I'm really not aware of any changed I might've made to it.
But if it works for you, that's what counts.
 
Hm, dont works 4 me anymore. dont update food/drink names =( Tested on 6.1 and 6.0
 
Not really an update; more of a replacement:

Code:
using System;

using Styx.Helpers;
using Styx.Logic.Inventory;
using Styx.Plugins.PluginClass;

namespace QuickPlugins
{
    public class RefreshmentDetector : HBPlugin
    {
        private readonly WaitTimer _updateTimer = WaitTimer.TenSeconds;
        public override void Pulse()
        {
            if (_updateTimer.IsFinished)
            {
                _updateTimer.Reset();
                var drink = Consumable.GetBestDrink(false);
                var food = Consumable.GetBestFood(false);

                if (drink != null)
                    LevelbotSettings.Instance.DrinkName = drink.Entry.ToString();
                if (food != null)
                    LevelbotSettings.Instance.FoodName = food.Entry.ToString();
            }
        }

        public override string Name { get { return "Refreshment Detection"; } }

        public override string Author { get { return "Apoc"; } }

        public override Version Version { get { return new Version(1,0,0,0);} }
    }
}

It's what I use. (I cba to update the actual plugin.)
 
Forgive my idiocy but where am i meant to put that text apoc :x just completely overwrite the erefreshment file?
 
Forgive my idiocy but where am i meant to put that text apoc :x just completely overwrite the erefreshment file?

I would assume you open a text file, copy and pasted apocs code and "save as" xxx.cs
 
Back
Top