-
First Dev On The Internet
-
Post Thanks / Like - 7 Thanks
-
First Dev On The Internet
On new versions of TurboHUD : No need to press F3 anymore after Grift. :-)
Last edited by User5981; 09-23-2019 at 03:04 AM.
-
Member
I think you can press "F2" and it will refresh the value(s).
-
First Dev On The Internet
Originally Posted by
Litespeed0
I think you can press "F2" and it will refresh the value(s).
yes F2 works, thank you.
-
Contributor
Might actually use this. Thanks
Waiting for Jack's usual optimizations first! :P
-
Contributor
Hi,
1% chance is up to 15!! levels difference from Gem to GR
for example:
if your gem is lvl 120 u can 1% this gem with 105 GR the last time.
so you should alter you line 114 like this
PHP Code:
if (ChanceWantedPercentage == 1) {AddPerc = -15;}
why??
PHP Code:
if (NumberOfAttempts == 1) {AddNum = 0;}
if (NumberOfAttempts == 2) {AddNum = 1;}
if (NumberOfAttempts == 3) {AddNum = 2;}
if (NumberOfAttempts == 4) {AddNum = 3;}
if (NumberOfAttempts == 5) {AddNum = 4;}
since
PHP Code:
AddNum = NumberOfAttempts -1;
if you want a safe user usage of "NumberOfAttempts"
PHP Code:
if (1 <= NumberOfAttempts && NumberOfAttempts <= 5) AddNum = NumberOfAttempts - 1;
------------------
line 61:
PHP Code:
var items = Hud.Inventory.ItemsInStash.Where(x => x.Location != ItemLocation.Merchant && x.Quality == ItemQuality.Legendary && x.JewelRank > -1 && x.SnoItem.MainGroupCode == "gems_unique");
is never used.
line 43/53
PHP Code:
private float rv;
rv = 32.0f / 600.0f * Hud.Window.Size.Height;
is never used.
line 15
PHP Code:
public bool GRupgradeChanceEnabled { get; set; }
is never used.
--------------
and a question:
PHP Code:
if ((Hud.Inventory.InventoryLockArea.Width > 0) && (Hud.Inventory.InventoryLockArea.Height > 0))
{
var rect = Hud.Inventory.GetRectInInventory(Hud.Inventory.InventoryLockArea.X, Hud.Inventory.InventoryLockArea.Y, Hud.Inventory.InventoryLockArea.Width, Hud.Inventory.InventoryLockArea.Height);
InventoryLockBorderBrush.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height);
}
what is this supposed to do? it make no difference for me, to remove it.
-------------
can look like this:
[C#] UrshisGiftPlugin.cs - Pastebin.com
greetz gjuz
-
Post Thanks / Like - 1 Thanks
User5981 (1 members gave Thanks to gjuz for this useful post)
-
First Dev On The Internet
Originally Posted by
gjuz
Hi,
1% chance is up to 15!! levels difference from Gem to GR
for example:
if your gem is lvl 120 u can 1% this gem with 105 GR the last time.
so you should alter you line 114 like this
PHP Code:
if (ChanceWantedPercentage == 1) {AddPerc = -15;}
greetz gjuz
Thanks, it looks like I read wrong data, every other gem upgrade math is ok ?
Originally Posted by
gjuz
what is this supposed to do? it make no difference for me, to remove it.
I think it is the exclusion zone for NotGoodDisplayEnabled, I started this plugin by a copy paste of InventoryAndStashPlugin so...
Thanks a lot, I will look at your code and update the 1st post
-
First Dev On The Internet
-
Contributor
i refactored a little bit more, and added a hint in itemhovered menu - like in weapondamagererollcalculatorplugin
[C#] UrshisGiftPlugin.cs - Pastebin.com
greetz gjuz
-
Contributor
Originally Posted by
User5981
Thanks, it looks like I read wrong data, every other gem upgrade math is ok ?
I think it is the exclusion zone for NotGoodDisplayEnabled, I started this plugin by a copy paste of InventoryAndStashPlugin so...
Thanks a lot, I will look at your code and update the 1st post
yes
100% = +10
90% = +9
80% = +8
70% = +7
60% = +6 to +0
30% = -1
15% = -2
8% = -3
4% = -4
2% = -5
1% = -6 to -15
greetz gjuz
-
Post Thanks / Like - 1 Thanks
User5981 (1 members gave Thanks to gjuz for this useful post)
-
First Dev On The Internet
Code & customization updated !
-
Contributor
Add
PHP Code:
if (item.SnoItem.Sno == 3249876973 && jewelRank == 100 || // 3249876973 - Esoteric Alteration
item.SnoItem.Sno == 3249984784 && jewelRank == 100 || // 3249984784 - Mutilation Guard
item.SnoItem.Sno == 3248762926 && jewelRank == 150 || // 3248762926 - Gogok of Swiftness
item.SnoItem.Sno == 3250883209 && jewelRank == 50 || // 3250883209 - Iceblink
item.SnoItem.Sno == 3249805099 && jewelRank == 50) // 3249805099 - Boon of the Hoarder
return;
in DrawTextLine() method, since upgrading is impossible.
i prefere,
PHP Code:
if (GRlevel < 1) return;
greetz gjuz
-
First Dev On The Internet
Originally Posted by
gjuz
Add
PHP Code:
if (item.SnoItem.Sno == 3249876973 && jewelRank == 100 || // 3249876973 - Esoteric Alteration
item.SnoItem.Sno == 3249984784 && jewelRank == 100 || // 3249984784 - Mutilation Guard
item.SnoItem.Sno == 3248762926 && jewelRank == 150 || // 3248762926 - Gogok of Swiftness
item.SnoItem.Sno == 3250883209 && jewelRank == 50 || // 3250883209 - Iceblink
item.SnoItem.Sno == 3249805099 && jewelRank == 50) // 3249805099 - Boon of the Hoarder
return;
in DrawTextLine() method, since upgrading is impossible.
I added a text for maxed legendary gems and number of attempts. Code updated.
Originally Posted by
gjuz
i prefere,
PHP Code:
if (GRlevel < 1) return;
I chose to set it to 1 in the case someone has set a 1% chance and has a legendary gem < 16, you prefer not displaying the GR level in that case ?
Last edited by User5981; 09-11-2017 at 01:08 AM.
-
Savvy ? 🐒
Originally Posted by
Stormreaver
Waiting for Jack's usual optimizations first! :P
Well, there is some twisted logic, but it's pretty good overall.
-
Contributor
Originally Posted by
User5981
I chose to set it to 1 in the case someone has set a 1% chance and has a legendary gem < 16, you prefer not displaying the GR level in that case ?
yes since this hint might be missleading -> 1% chance for lvl 0 gem at GR 1....
Originally Posted by
JackCeparou
Well, there is some twisted logic, but it's pretty good overall.
What's so twisted?
greetz gjuz