[REQUEST]Hearts Fix

Discussion in 'Archived: Plugin Requests' started by Costelush, Aug 28, 2013.

  1. Offline

    Costelush

    Plugin category: Rpg

    Suggested name: Simple Hearts

    What I want: I get this problem when i use vanilla attributes when i have on an item 1000 health, i get too many hearts on the HUD( Untitled.png )and i want only one row of hearts (10) also i want a command which can show you your health (/hp) or i want the health to be shown where the Experience level is

    Ideas for commands: /hp or Hp to be shown as EXP Level.

    Ideas for permissions: Not important but if you want to add them its okay :)

    When I'd like it by: As soon as possible :)
     
  2. Offline

    ejzz

    So basically, you want your current health to show when you type /hp or in your EXP bar?

    Costelush
     
  3. Offline

    Costelush

    ejzz i prefer on exp level :)
     
  4. Offline

    ejzz

    Costelush Ok, I will start working on it in a few minutes.
     
    Costelush likes this.
  5. Offline

    Costelush

    ejzz much appreciated , thank you

    ejzz how is the progress?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  6. Offline

    boogagoal1

    Lol. He quit.
     
  7. Offline

    Costelush

    He didnt
     
  8. Offline

    timtower Moderator Moderator

    Any prove?
     
    Costelush likes this.
  9. Offline

    boogagoal1

    I don't have proof but this is a simple plugin that would take maximum 2 hours to make.
     
  10. Offline

    Costelush

    Then why dont you give it a try ? :D , maybe he doesnt have time right now. Patience is a virtue.(but not months lol)
     
  11. Offline

    timtower Moderator Moderator

    That still doesn't make that the developer quit
     
  12. Offline

    ejzz

    boogagoal1 Um, no. I just had like a 1000 different things to do. Please don't make assumptions based on nothing. Also ran into a problem. How would I trigger the health updating when it has changed? There is no health change event.
     
    timtower likes this.
  13. Offline

    bartboy8

    PlayerDamageEvent possibly?
     
  14. Offline

    ejzz

  15. Offline

    Costelush

    Wow i wish i had your knowledge. Thanks ejzz and bartboy8
     
  16. Offline

    xxMOxMOxx

    You also need to use an EntityRegainHealthEvent for when they regen health
     
  17. Offline

    ejzz

    Costelush Ok, so I finished the plugin and I will give it to you soon. Just need to do some stuffs.
     
  18. Offline

    Costelush

    ejzz wow thank you so much, ill be around :)
     
  19. Offline

    Costelush

    bump

    <Removed double post - Bumping is allowed only every 24 hours - Necrodoom>
     
  20. Offline

    Costelush

    ejzz hey what happend? Can you release the plugin please?
     
  21. Offline

    timtower Moderator Moderator

    He hasn't been online since Saturday, wait for him to get back online or send him a pm, some people have email notifications turned on
     
  22. Offline

    Costelush

    Alright ...ill give it a try :)
     
  23. Offline

    ejzz

    I'm back, sorry I was on vacation this weekend. The plugin will be released soon. Just need to finish some stuffs like setting health when you log in.
     
  24. Offline

    RingOfStorms

    Why use the experience bar? Seems like a waste. Just use hearts and do setScale(20) which will make it show just 20 hearts, while still being 1000
     
    bobacadodl likes this.
  25. Offline

    ejzz

    Costelush The plugin is finished! <Edit by Moderator: Redacted mediafire url>
    Let me know if you need the source code or there is a bug.
     
    Last edited by a moderator: Nov 5, 2016
  26. Offline

    Costelush

    RingOfStorms erm i think i did mention the exp LVL not BAR... i'm gonna check the plugin now
    ejzz thank you very much , yeah i might want the source code for study purposes but i will let you know ;)

    ejzz erm the part with the health showing on the exp level works great but i still get a lot of hearts when i wear an item with a lot of health http://imgur.com/tirV83V. I want only 10 hearts to be displayed, even if the hp is 10k,it does show on the exp lvl but the hearts still block the view.
     
  27. Offline

    ejzz

    Costelush Okay, I can fix that. Yeah, also let me know if you want the source code. It is nothing too special, just a few events and a delayer task because getHealth() gets the health before it goes down. Pretty stupid imo.
     
  28. Offline

    Costelush

    ejzz yes source too please, and its not stupid really, i have no idea how to do this, and i really appreciate this community helps and create plugins on requests. Faith in humanity restored !
     
  29. Offline

    ejzz

    Costelush I was not talking about you, I was talking about the getHealth method returning the health before it has changed. Lol, sorry if it sounded like I was telling you you're stupid.
     
  30. Offline

    Costelush

    ejzz no it didnt sound like that,dont worry, i meant that even you say its easy for you, its hard for me ;)
     

Share This Page