• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • eRefreshment 2.0 - Detects your food and drink automatically! [HB2]

    Discussion in 'Archives' started by ski, Apr 19, 2010.

    1. Knut

      Knut New Member

      Joined:
      Aug 16, 2010
      Messages:
      100
      Likes Received:
      1
      Trophy Points:
      0
      Same here, using 1.9.5.5, and it doesn't work.

      Can someone update it please?
       
    2. dayloon

      dayloon Active Member

      Joined:
      Mar 5, 2010
      Messages:
      1,046
      Likes Received:
      3
      Trophy Points:
      38
      Has this plugin now died ?
       
    3. panYama

      panYama Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      2,629
      Likes Received:
      49
      Trophy Points:
      0
      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
       
    4. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      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 ;)
       
    5. nice well that has prior so good luck with that;)
       
    6. zomgmage

      zomgmage Member

      Joined:
      Jan 15, 2010
      Messages:
      610
      Likes Received:
      2
      Trophy Points:
      18
      Cant wait for a update on this!
       
    7. dayloon

      dayloon Active Member

      Joined:
      Mar 5, 2010
      Messages:
      1,046
      Likes Received:
      3
      Trophy Points:
      38
      You mean to say that you find your new house more important than eRefreshment ? How dare you. Get your priorities straight
       
    8. IeU

      IeU Member

      Joined:
      Jul 20, 2010
      Messages:
      830
      Likes Received:
      11
      Trophy Points:
      18
      Any news? :)
       
    9. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      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.
       

      Attached Files:

    10. zomgmage

      zomgmage Member

      Joined:
      Jan 15, 2010
      Messages:
      610
      Likes Received:
      2
      Trophy Points:
      18
      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.
       
    11. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      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.
       
    12. .iArt

      .iArt New Member

      Joined:
      Aug 10, 2010
      Messages:
      71
      Likes Received:
      0
      Trophy Points:
      0
      Hm, dont works 4 me anymore. dont update food/drink names =( Tested on 6.1 and 6.0
       
    13. sGkz

      sGkz Member

      Joined:
      Aug 1, 2010
      Messages:
      110
      Likes Received:
      0
      Trophy Points:
      16
      Would love to see an update :)
       
    14. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      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.)
       
    15. sGkz

      sGkz Member

      Joined:
      Aug 1, 2010
      Messages:
      110
      Likes Received:
      0
      Trophy Points:
      16
      Working perfectly, thanks a lot Apoc.
       
    16. mctrix

      mctrix Member

      Joined:
      Jan 15, 2010
      Messages:
      225
      Likes Received:
      1
      Trophy Points:
      18
      thanks apoc
       
    17. whinnie

      whinnie Member

      Joined:
      Oct 23, 2010
      Messages:
      117
      Likes Received:
      1
      Trophy Points:
      18
      Forgive my idiocy but where am i meant to put that text apoc :x just completely overwrite the erefreshment file?
       
    18. zomgmage

      zomgmage Member

      Joined:
      Jan 15, 2010
      Messages:
      610
      Likes Received:
      2
      Trophy Points:
      18
      I would assume you open a text file, copy and pasted apocs code and "save as" xxx.cs
       
    19. sGkz

      sGkz Member

      Joined:
      Aug 1, 2010
      Messages:
      110
      Likes Received:
      0
      Trophy Points:
      16

      Yes, very simple.
       
    20. whinnie

      whinnie Member

      Joined:
      Oct 23, 2010
      Messages:
      117
      Likes Received:
      1
      Trophy Points:
      18
      aye cheers thought as much, still new to all of this HB lark!
       

    Share This Page