# Thread: [v7.6] [INTERNATIONAL] [Resu] PrimalAncientProbabilityPlugin

1. ## [v7.6] [INTERNATIONAL] [Resu] PrimalAncientProbabilityPlugin

Indicates Ancient & Primal Ancient drop probability.

>>>>> PrimalAncientProbabilityPlugin.cs <<<<<

Install:
save as plugins/Resu/PrimalAncientProbabilityPlugin.cs

2. Nice I love it

3. Good job.
Is there any way to keep % when restart game? Primal % is calculated account wide, not per game I think.
M

4. How you calculate this chance?
Ancient is 10% + every non ancient item increase 10% more up to 100% or what?

5. Originally Posted by MrOne
How you calculate this chance?
Ancient is 10% + every non ancient item increase 10% more up to 100% or what?
According to what I read on websites :

Ancients have a 10% chance to drop each legendary drop.
Primals have a 0.22% chance to drop each legendary drop.
(if you have more precise or exact stats, I'll be glad to modify the plugin)

The % of probability formulae is :

(1 - (unsuccessful drop chance)^(number of unsuccessful drops))*100

so for Ancients :

(1 - (9/10)^(number of legendaries dropped))*100

primals :

(1 - (99.78/100)^(number of legendaries dropped))*100

Each time a Legendary drops, Both dedicated legendaries counters are incremented.
Each time an Ancient drops, the dedicated legendaries counter is reset for Ancients.
Each time a Primal drops, the dedicated legendaries counter is reset for Primals.
(simplified explanation)

Originally Posted by ch25
Good job.
Is there any way to keep % when restart game? Primal % is calculated account wide, not per game I think.
M
It keeps calculating as long as TurboHUD is running, on restarting it, it is reset to the lowest probability.
Keeping the % when shutting down/restarting TurboHUD would require writing to a file the total amount of legendaries, ancient & primal dropped at the moment of the shutdown and the legendaries, ancient & primal dropped during that session, that's above my level at this moment.

6. For writing to a file you can just use the Hud.Textlog.Log (you can see the syntax in paragon capture plugin), but I'm not sure there's an internal method to read these files.

7. Change of percent doesn't work for Kadala and cubed.

8. Originally Posted by F3n1XX
Change of percent doesn't work for Kadala and cubed.
Yep I noticed, I will investigate...Thanks.

10. Originally Posted by User5981
I do not know why but it does not work for me and I leave exceptions

11. Originally Posted by Kruxy4
I do not know why but it does not work for me and I leave exceptions
paste exceptions here so I can fix it

12. Originally Posted by User5981
paste exceptions here so I can fix it

I keep all the file well, but inside the game I do not get the PrimalAncientProbabilityPlugin and I get exceptions

13. Please, paste here the errors located at :
TurboHUD\logs\exceptions.txt

14. Originally Posted by User5981
Please, paste here the errors located at :
TurboHUD\logs\exceptions.txt
2018.01.29 18:58:38.882namespace mismatch in plugin file: 'C:\Users\wisow\Desktop\turbo\Plugins\Default\PrimalAncientProbabilityPlugin.cs' : namespace should be this: 'Turbo.Plugins.Default

15. Originally Posted by Kruxy4
2018.01.29 18:58:38.882namespace mismatch in plugin file: 'C:\Users\wisow\Desktop\turbo\Plugins\Default\PrimalAncientProbabilityPlugin.cs' : namespace should be this: 'Turbo.Plugins.Default

Page 1 of 8 12345 ... Last