Jump to content
  • 0

interlude 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...