Mad4life 31 Posted August 11, 2018 Report Share Posted August 11, 2018 Hello guys ,,, please can anyone tell me how to add drop rate to items? am using Power-ps sources and client .. i will be thankful // More info server is (Pi) add me on discord Mad4Life#6115 Link to comment Share on other sites More sharing options...
KieranDevvs 1 Posted December 9, 2018 Report Share Posted December 9, 2018 (edited) This is done in various ways. One way to do this is to take a seed (a random value) and compare that against drop categories e.g (common (10%), uncommon (30%), rare( 50%) etc.). Once you have determined what level of drop the user has landed, you then take another seed to select the item within a category based off its loot drop chance. e.g if the user landed on a rare drop chance: (DDS (30%), DFS (3%)) Each drop has two factors, the drop chance category, and the item drop within that category. A user may get a seed of 100% for the category (giving them a chance at the best loot possible) but the second factor may come in at a low value thus not producing anything. An item drop chance percentage can be calculated by applying the chance of hitting the relative category with the chance of hitting said item. Another way to calculate drops would be to replicate the formula that OSRS uses (however I think this is overkill for an RSPS as the player count is so low and the effort required is so high, but it depends on what you want your implementation to be): This is the hidden content, please Sign In or Sign Up Edited December 9, 2018 by KieranDevvs Additional reasoning. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now