Jump to content
  • 0

Party loot script


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Hello rathenians,

I just want to ask how to make an npc script that will enable the whole party member to get the loot from the npc with the highest percentage of loot. 

For example:

Party consist of 6 members including the leader. Npc will show same item rewards to the whole party members. Items are randomly selected by the npc.

Party leader view:

1st: When the party leader click the npc for the first time, the npc will show to him the item rewards then he will have an option to put it on the party pool or assigned it to a specific member.

2nd: If the leader put it on the party pool, the members will be able to loot that item but if the leader assigned it to a member then that member will automatically gets that item. This process will continue until all items are pooled or assigned.

3rd: Once the leader already distributed the items he will now hmgonna have the chance to loot the items as well.

4th: If the leader clicked the npc for the first time then click the cancel button when it is aboit to distribute then all items will automatically be putted in the party pool.

Party member view:

1st: When they clicked the npc they will be able to see what are the items that they can get.

2nd: if the leader is not yet done distributing the items, the members will not be able to loot the items yet.

3rd: Once the leader is done distributing the items the member will have an option to loot the items. This process will continue untill all items are looted.

Party leader did not touch the npc:

If the leader did not touch the npc at all after 2 mins all items will be distributed to all party members randomly.

After the whole party rried to loot the items from the npc:

After 2 mins, evwn if they are not yet done looting the items, the items will be distributed to the member who got the highest loot percentage to a specific item.

Example:

Red potion [1ea] - player 1 (25%)

Orange Potion [1ea] - player 2 (69%)

Green Potion [1ea] - player 1 (75%)

White potion [1ea] - player 3 (44%)

This example shows that this are the pnly players who will be able to get the items from the npc.

Format:

Items, quantity, player who got the highest percentage to that specific item, percentage or numbers that they got from rand(1,100).

I hope everybody got what i mean to this script. Thank you. .

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   189
  • Joined:  11/19/11
  • Last Seen:  

In my opinion, that's pretty difficult to script:

1. You would have to disable the drop on the respective map.

2. Read the drops of the mob and generate the drop chance based on the server settings.

3. Save the drop via sql for the party and then give the loot according the previous calculation to the party members.

4. Best way what I could think of would  be after the dungeon run to give the loot which was dropped, cuz to give it during the run would take too much time or make it so automatically by defining the preferences of the party members beforehand.

5. I would make an setting before the run to decide how the loot will be given, like mentioned before. This includes the preferences too of course.

6. Party leader would have an advantage over the members if he would also gain every item which will be distributed.

7. Overall I think it's doable and not a bad idea. But what would be the party setting Even Share be for....

Regards, 

Chris 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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