-
First Dev On The Internet
[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.
-
Post Thanks / Like - 3 Thanks
-
First Dev On The Internet
Update :
-Now displays equipped potion perfection. (not displayed if perfect)
-
Post Thanks / Like - 2 Thanks
-
Member
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)
-
First Dev On The Internet
Originally Posted by
2003VB12
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.
-
Member
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?
-
First Dev On The Internet
Originally Posted by
2003VB12
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;
-
Member
It's still not working. It produces results like in this screenshot.
potions.PNG
-
First Dev On The Internet
Originally Posted by
2003VB12
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?
-
Member
I'm afraid that is out of my capabilities. I cannot provide more information. Still thanks a lot for your help.
-
First Dev On The Internet
Originally Posted by
2003VB12
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...
-
Member
Fear: 3
Life per hit: 15000
Resource: 20
Healing: 20
Life per kill: 40000
All Resist: 50
Armor:10
Additional life: 75000