When the LOOTING_ALLOWED flag is enabled in config.h,
PK players are supposed to have a chance of looting
an item (or multiple items) from their PK kills.
Currently, this works by the MUD dumping the item(s)
onto the ground in the room where the kill occured
(allowing anyone - not just the PK player that
performed the kill) to pick them up!
Logged In: YES
user_id=7682
Should we just dump the items into the player's inventory?
That would make sense to me.
I suppose the best way to do this would be to allow the
killer to see and retrieve only certain items in the corpse
and leave the rest of the items locked for the killed
player. *shrug* Make some suggestions or something. I
can see how dumping the loot into the killers inventory
could become a pain in the ass.
Logged In: YES
user_id=7716
Any proper solution to this problem is a pain in the ass
from a code standpoint.
1) We dump to killer's inventory (which may or may not have
room)
2) We somehow keep track of who is allowed to loot each
individual item ('cause they may not be able to loot all of
them). Also, if the killer is allowed to loot an item,
then the person who owns the corpse itself shouldn't be
allowed to loot that item or sac the corpse.
#1 seems less complicated but we have to work out what to
do if the item is too heavy for the killer to hold... I
suppose it could be dropped to the ground in that case, but
that sucks. Or, it could just not give them the item (but
how would you inform the player? "Sorry, no uber-loot for
you today because you can't carry it!") #2 is the only
solution (terribly complicated) that is likely to make
everyone happy (except for the guy that got killed, of
course ;)
Logged In: YES
user_id=7716
Any proper solution to this problem is a pain in the ass
from a code standpoint.
1) We dump to killer's inventory (which may or may not have
room)
2) We somehow keep track of who is allowed to loot each
individual item ('cause they may not be able to loot all of
them). Also, if the killer is allowed to loot an item,
then the person who owns the corpse itself shouldn't be
allowed to loot that item or sac the corpse.
#1 seems less complicated but we have to work out what to
do if the item is too heavy for the killer to hold... I
suppose it could be dropped to the ground in that case, but
that sucks. Or, it could just not give them the item (but
how would you inform the player? "Sorry, no uber-loot for
you today because you can't carry it!") #2 is the only
solution (terribly complicated) that is likely to make
everyone happy (except for the guy that got killed, of
course ;)
Logged In: NO
A good idea for this, which I've seen on other MUDs, would be to have all the items dump into a container.
Say the container was lockable, or only able to be opened by a specific player (yet another tag to add to all
objects to be opened...ugh!). But say the container was the dead players corpse, and it was only openable
by the person that killed them and the dead person. You could tag the corpse as unmoveable so it stays
put. Then again the weight of the corpse might take care of that.
It's more code, but it helps prevent it open theft. Most people on MUDs look at items on the ground as
free, even after a kill. Drop it in the corpse, and it helps prevent any "mistakes" by other players. Make the
corpse openable by only two people - then if you die you can get your stuff back, and then only the enemy
can loot you - not his friends.
Of course it makes your corpse a bitch to retrieve if you've died in the room with a room full of nasties.
Just some thoughts.
Logged In: YES
user_id=27510
What about leaving the items on the victims corpse, and
then doing a percent chance of succeeding when the killer
does get all corpse or get <item> corpse. Make this only
apply when the corpse is a player corpse.
We currently have two types of corpse if I recall
correctly - npc_corpse and player_corpse, what about doing
a pk_corpse, and apply the rules to looting it?
Logged In: YES
user_id=38690
I do know that you can add the LOOTING check in can_loot,
thus allowing player corpse-looting. This is how I
implement it in my MUD, of course it is a little harsh, you
see, that means anyone can loot anything. I know, I'm a
mean Admin, but it you get to choose to be PK, you have to
face the consequences. A little catch, I also use morgues
when the player is killed by an NPC, and to prevent someone
from looting corpses in morgues I just make the morgue
rooms safe, which sets off can_loot.
Logged In: YES
user_id=27510
Further found with a mort watching a pk fight, with tintin
looting triggers is also able to loot the corpse before it
disappears.
Logged In: YES
user_id=27510
This is going to need a long look at. I don't see it as a
showstopper for 0.9.45