Welcome to the Builder Academy

Question Cedit and Player Corpses

More
06 Dec 2018 06:57 #8254 by WhiskyTest
Replied by WhiskyTest on topic Cedit and Player Corpses
I'll double check but fairly certain it doesnt change mob corpses

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

More
06 Dec 2018 15:17 #8255 by Sascha
Replied by Sascha on topic Cedit and Player Corpses
Here's what I see, my brilliant and creative friend... :)

[ 3715] The Lair of the Rat King [ DARK INDOORS * ] [ Inside ]
A part of the sewer tunnels has been blockaded by a morass of junk and litter.
In the far corner is a huge nest made of trash and old bleached bones.
Glittering objects litter the nest, interspersed with foul bits and pieces of
refuse. There are deep claw marks in the stone floor, and there are splashes of
something rusty on the lower parts of the tunnel walls.
[ Exits: n ]
[65535] The corpse of the big rat is lying here.
[3700] [T862] A pile of glittering objects has been gathered here.
[3713] A piece of fungus grows with an eerie light.
[3702] [T3703] A huge rat lashes its tail as you approach.
[3703] [TRIGS] The Rat King is standing here.

i1 510hp 110mn 92mv>
l king
At first look this creature is the largest rat ever seen. Its body is covered
in mottled fur and its beady eyes glitter with malice. On second look the fur
is actually clothing made from bits and pieces of animal skins, but the malice
in the man's eyes is very real.
The Rat King is in excellent condition.

The Rat King is using:
<worn on body> [3714] a fur shirt
<worn on head> [3719] a crown of twisted scrap metal
<worn on legs> [3715] some fur-covered leggings
<worn on feet> [3716] a pair of fur-trimmed boots
<worn on hands> [3717] a pair of claw-tipped fur gloves
<worn about waist> [3718] a beltpouch
<wielded> [431] a silver-chased dagger

You attempt to peek at its inventory:
Nothing.

i1 510hp 110mn 92mv>
k king
You chop it to pieces! Ah! The blood!
Your blood freezes as you hear the Rat King's death cry.

i1 510hp 110mn 92mv>
The protector rat stops following the Rat King.

i1 510hp 110mn 92mv>
l
[ 3715] The Lair of the Rat King [ DARK INDOORS * ] [ Inside ]
A part of the sewer tunnels has been blockaded by a morass of junk and litter.
In the far corner is a huge nest made of trash and old bleached bones.
Glittering objects litter the nest, interspersed with foul bits and pieces of
refuse. There are deep claw marks in the stone floor, and there are splashes of
something rusty on the lower parts of the tunnel walls.
[ Exits: n ]
[431] A sharp dagger with a silver-chased hilt glints in the light.
[3718] A beltpouch is here.
[3717] A pair of furry gloves tipped with sharp claws have been left here.
[3716] A pair of boots trimmed with fur stand together.
[3715] A scant length of fur is folded here.
[3719] Some shiny scrap metal has been twisted together into a band.
[3714] A shirt made of animal fur lies in a pile.
[65535] The corpse of the Rat King is lying here.
[65535] The corpse of the big rat is lying here.
[3700] [T862] A pile of glittering objects has been gathered here.
[3713] A piece of fungus grows with an eerie light.
[3702] [T3703] A huge rat lashes its tail as you approach.

i1 510hp 110mn 92mv>

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000
The following user(s) said Thank You: WhiskyTest

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

More
06 Dec 2018 16:11 #8256 by WhiskyTest
Replied by WhiskyTest on topic Cedit and Player Corpses
Yep it's a bug!

I need to have a closer look at this when I get home, but for a quick fix try this:

in fight.c, make this change
Code:
+ /* Begin item transferal */ + if (IS_NPC(ch) || (!IS_NPC(ch) && GET_LEVEL(ch) > CONFIG_CORPSE_LEVEL)) { /* transfer character's inventory to the corpse */ corpse->contains = ch->carrying; for (o = corpse->contains; o != NULL; o = o->next_content)

I realize now that mob corpses will also be subject to the decay rules - was this what you wanted? Or only player corpse contents should get donated etc?..

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

More
07 Dec 2018 15:08 #8259 by Sascha
Replied by Sascha on topic Cedit and Player Corpses
The idea is to not include the NPC corpses, so that if someone kills something and they don't loot it it remains for someone else to find or if unfound is left behind when the body decays. PCs should be the only ones subject to the decay rules. Thanks for checking!

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

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

More
08 Dec 2018 08:53 #8260 by WhiskyTest
Replied by WhiskyTest on topic Cedit and Player Corpses
Gotcha! I'll need to make some more changes.
Sorry I didn't catch this earlier it's kind of obvious now!..

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

More
09 Dec 2018 11:21 #8261 by WhiskyTest
Replied by WhiskyTest on topic Cedit and Player Corpses
Bug fixes uploaded into original post:
1) Mobs no longer affected by the decay behaviors
2) Players below the corpse retrieval level are now crash-saved upon being killed to correctly retain their equipment before extraction

Thanks Viv for highlighting these!

Happy to help if you need a hand updating your existing code

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

Time to create page: 0.269 seconds