[v8.0] [INTERNATIONAL] [Resu] PotionPerfectionPlugin menu

User Tag List

Results 1 to 11 of 11
  1. #1
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [v8.0] [INTERNATIONAL] [Resu] PotionPerfectionPlugin



    Shows percentage of potion perfection on potion in stash and inventory. Not displayed when the potion is perfect. (helps to compare them quickly)

    Download:
    >>>>> PotionPerfectionPlugin.cs <<<<<

    Install:
    save as plugins/Resu/ PotionPerfectionPlugin.cs
    Last edited by User5981; 02-15-2019 at 04:20 AM.
    Supported version for all Resu plugins

    [v8.0] [INTERNATIONAL] [Resu] PotionPerfectionPlugin
  2. Thanks TheDiscordian, JollyTex, BeeAntOS (3 members gave Thanks to User5981 for this useful post)
  3. #2
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Update :
    -Now displays equipped potion perfection. (not displayed if perfect)
    Supported version for all Resu plugins

  4. Thanks 2003VB12, TobiaSBooN (2 members gave Thanks to User5981 for this useful post)
  5. #3
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick question: How to show the actual perfection of the potion like in d3planner item perfection?
    i.e
    current logic: current stat / max stat
    d3planner logic: (current-min) / (max-min)

  6. #4
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2003VB12 View Post
    Quick question: How to show the actual perfection of the potion like in d3planner item perfection?
    i.e
    current logic: current stat / max stat
    d3planner logic: (current-min) / (max-min)
    So if I understand correctly, instead of 40.5 (%) displayed on the little mini tiny potion icon you want to display 36508/90000 ?

    edit : Ah I get it,
    if the min is 20000 that would make 16508/70000 with a percentage that would make a 23.5 (%) I don't know if it's more useful though...
    Last edited by User5981; 03-08-2019 at 02:52 PM.
    Supported version for all Resu plugins

  7. #5
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your swift respond. I'm not requesting you to make any changes to your original publish though. What I'm asking is:

    Original code:
    var CurStat = perfection.Cur;
    var MaxStat = perfection.Max;
    var Percentage = Math.Truncate( (( CurStat / MaxStat )*100)*10)/10;

    Now if i change it to this:
    var CurStat = perfection.Cur;
    var MaxStat = perfection.Max;
    var MinStat = perfection.Min;
    var Percentage = Math.Truncate( (( (CurStat-MinStat) / (MaxStat-Minstat) )*100)*10)/10;
    the modification would produce NaN errors. So how do I extract minimum values?

  8. #6
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2003VB12 View Post
    Thank you for your swift respond. I'm not requesting you to make any changes to your original publish though. What I'm asking is:

    Original code:
    var CurStat = perfection.Cur;
    var MaxStat = perfection.Max;
    var Percentage = Math.Truncate( (( CurStat / MaxStat )*100)*10)/10;

    Now if i change it to this:
    var CurStat = perfection.Cur;
    var MaxStat = perfection.Max;
    var MinStat = perfection.Min;
    var Percentage = Math.Truncate( (( (CurStat-MinStat) / (MaxStat-Minstat) )*100)*10)/10;
    the modification would produce NaN errors. So how do I extract minimum values?
    that should work...
    maybe try :

    var CurStat = perfection.Cur;
    var MaxStat = perfection.Max;
    var MinStat = perfection.Min;

    var operand1 = CurStat - MinStat;
    var operand2 = MaxStat - Minstat;

    var Percentage = Math.Truncate( (( operand1 / operand2 )*100)*10)/10;
    Supported version for all Resu plugins

  9. #7
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's still not working. It produces results like in this screenshot.
    potions.PNG

  10. #8
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2003VB12 View Post
    It's still not working. It produces results like in this screenshot.
    potions.PNG
    The NaN error is clearly by type of potion, can you look at what are the min, max, and current values of these potions?
    Supported version for all Resu plugins

  11. #9
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm afraid that is out of my capabilities. I cannot provide more information. Still thanks a lot for your help.

  12. #10
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2003VB12 View Post
    I'm afraid that is out of my capabilities. I cannot provide more information. Still thanks a lot for your help.
    it is provided by the game, press ctrl when the cursor is on the potion...
    Supported version for all Resu plugins

  13. #11
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fear: 3
    Life per hit: 15000
    Resource: 20
    Healing: 20
    Life per kill: 40000
    All Resist: 50
    Armor:10
    Additional life: 75000

Similar Threads

  1. [v7.3] [INTERNATIONAL] [Resu] ParagonPercentagePlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 89
    Last Post: 03-29-2021, 10:18 PM
  2. [v7.3] [INTERNATIONAL] [Resu] CraftersDelightPlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 194
    Last Post: 03-07-2021, 05:56 AM
  3. [v7.3] [INTERNATIONAL] [Resu] UrshisGiftPlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 55
    Last Post: 12-04-2020, 05:45 PM
  4. [v8.0] [INTERNATIONAL] [Resu] EquippedItemDurabilityPlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 8
    Last Post: 11-30-2019, 01:05 AM
  5. [v7.3] [INTERNATIONAL] [Resu] TimeEverywherePlugin
    By User5981 in forum TurboHUD Community Plugins
    Replies: 4
    Last Post: 08-30-2017, 05:20 PM
All times are GMT -5. The time now is 02:37 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search