Jump to content
  • 0

Question

Posted

Hello.

Example in one category i have 100 items with chance 1.5% for each item. But when i kill mob it always drop one of 100 items.

if in category have 2 items then to drop item chance low.

How work category?

I want make chance for one category example 2% and then check again for items in catagory then drop.

First check category chance if true then check all items chance in catagory.

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Category 1 category 2 etc make each item his own category

100000 = 10%

Edited by Reborn12
  • 0
Posted

oh yes now i see

_categoryChance += drop.getChance();

every drop chance add to categry chance. So i will need to edit code.

 

Thanks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock