Jump to content
  • 0

Item (count) split equal to all party members


Question

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

Actually your question is the answer. You can check how the 'adena' seperate to party members.

  • You have to check if the party is random (optional)
  • Then check if the item count > 1 so the split can start
  • Then make a list with all party members (if the party exists)
  • Then you have to do a loop by giving the item to party members based on item count.

(for example if the item count is 10 and your party have 6 members you have to run a loop 10 times to each player and when the 6th player get the item then start again from the 1st pt member until 4th).

Ofc if the count is large you mustn't do this , you have to create your own count to each player like  int count = item / partyMembers.size(); and do the loop smaller

 

You can check distributeAdena method in Party.java (if you are using aCis)

finally you have to add your custom method before default loot by checking the item? monster? idk

Edited by melron

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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..