• 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. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      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.
       

      Attached Files:

      Last edited: Jul 22, 2010
      turbocross likes this.
    2. Cubix

      Cubix Member

      Joined:
      Jan 15, 2010
      Messages:
      172
      Likes Received:
      1
      Trophy Points:
      18
      Thanks a lot for this upgrade !
       
    3. MaiN

      MaiN Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,017
      Likes Received:
      35
      Trophy Points:
      48
    4. klokje

      klokje Community Developer

      Joined:
      Mar 7, 2010
      Messages:
      72
      Likes Received:
      0
      Trophy Points:
      0
      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
       
    5. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      What?

      filler
       
    6. klokje

      klokje Community Developer

      Joined:
      Mar 7, 2010
      Messages:
      72
      Likes Received:
      0
      Trophy Points:
      0
      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
       
    7. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      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.
       
    8. klokje

      klokje Community Developer

      Joined:
      Mar 7, 2010
      Messages:
      72
      Likes Received:
      0
      Trophy Points:
      0
      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
       
    9. Owneth

      Owneth Member

      Joined:
      Jan 15, 2010
      Messages:
      723
      Likes Received:
      5
      Trophy Points:
      18
      So does it work? Or not?
       
    10. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      HB2 isn't out yet, so we shall see.
       
    11. mgarley

      mgarley New Member

      Joined:
      Jan 15, 2010
      Messages:
      49
      Likes Received:
      0
      Trophy Points:
      0
      are there plug ins in the beta HB2? mine has none
       
    12. tantric132

      tantric132 New Member

      Joined:
      Mar 16, 2010
      Messages:
      43
      Likes Received:
      0
      Trophy Points:
      0
      Great job Ski, about to test now...
       
    13. letsgo2u

      letsgo2u New Member

      Joined:
      Jan 15, 2010
      Messages:
      252
      Likes Received:
      0
      Trophy Points:
      0
      works on german system YAY - thanks ski for makeing the finishing touch - thanks enerion for the great basis!
       
    14. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      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.
       
    15. tantric132

      tantric132 New Member

      Joined:
      Mar 16, 2010
      Messages:
      43
      Likes Received:
      0
      Trophy Points:
      0
      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:
       

      Attached Files:

    16. Deathlad

      Deathlad New Member

      Joined:
      May 2, 2010
      Messages:
      81
      Likes Received:
      0
      Trophy Points:
      0
      This is very nice well done
       
    17. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      Apparently not bugged. Lol.
       
    18. letsgo2u

      letsgo2u New Member

      Joined:
      Jan 15, 2010
      Messages:
      252
      Likes Received:
      0
      Trophy Points:
      0
      worked fine with my hb2b8 too
       
    19. dayloon

      dayloon Active Member

      Joined:
      Mar 5, 2010
      Messages:
      1,046
      Likes Received:
      3
      Trophy Points:
      38
      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 ?
       
    20. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      You can, but you don't have to. It should work no matter what you put in there as it overwrites it anyway.
       

    Share This Page