Welcome to the Builder Academy

Question Idea for spliting up group loot

More
26 Jun 2012 15:19 #262 by Liko
Hello,

Wouldn't it make sense while in a group the loot obtained from a corpse is randomly given out instead of just one person getting it? How would we begin to code this?

I was thinking of something like when the player goes to get something from a mob corpse it would

A) check to see if he is grouped
if player is grouped then load his group list than randomly select one of the players that the object would go into.
B) if player isn't grouped go directly to his inventory.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
26 Jun 2012 15:44 #263 by Vatiken
First thing you would need is some function for attaining the goods within the corpse. Currently, if a player has auto-loot, the mud will just call on do_get and use "corpse" as the argument. Which means any alteration of that system would require unneccesary changes to do_get.

So that would mean something like group_get_from_corpse() which is called when a member of a group kills something.

If you are using the stock system you'll have to find some means of dealing with issues like player's having personal kills shared with the group, or group collected items not being shared with group members not in the room.

If you are using my group code you could easily create a group bank for items and gold which gets added to while the group is flagged GROUP_RAID or something. And then split up randomly or evenly whenever the group leader decides.

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

Time to create page: 0.174 seconds