View Full Version : Monster won't leave corpse
Randymarsh9
05-13-2009, 09:17 PM
Why would an npc not leave a corpse? I made one involved in a quest and it's not leaving a corpse when it dies.
ChaosSlayerZ
05-13-2009, 09:34 PM
does npc has loot?
if npc has no loot, the corpse poofs in 15 seconds or less (based on rule in rule table)
Randymarsh9
05-13-2009, 09:35 PM
it has loot
trevius
05-14-2009, 03:50 AM
If the NPC is a merchant, they will not leave a corpse either (class 41). May also be true for adventure merchants, GMs, and other odd non-player classes.
So_1337
05-14-2009, 08:33 AM
You can adjust the value in the rule_values table for the rule "NPC:EmptyNPCCorpseDecayTimeMS". Adjust it to however long you'd like empty corpses to stay around. A value of 5000 would leave them for 5 seconds (as it's measured in milliseconds).
Randymarsh9
05-14-2009, 05:35 PM
Then npc has loot, it is a warrior, and it doesnt have a merchant id either.
trevius
05-14-2009, 05:57 PM
Did you restart your server after you added the loot table for him? New loot tables don't take effect until the server is restarted. You can tell if he actually has loot or not by doing a "#npcstats" on him. If you don't get any loot or cash showing from that output, then he doesn't have loot and will require a server restart for the loot to get added to him.
Oh yeah, and also if you #kill a mob without hitting it at least 1 time, they will never leave a corpse.
Randymarsh9
05-14-2009, 08:41 PM
Yeah I restarted server first. I can tell he had loot because I did #npcloot show and he was wielding the items as well. I did #kill, #damage, and straight meleeing but none of them changed it
trevius
05-14-2009, 09:52 PM
Ok, we are running out of possible causes for this issue. Please describe exactly what the quest script is you are trying to use for him and other related NPCs if any. Post them if you want.
The last thing I can think of that will poof a corpse is if an NPC or anything other than a player lands the killing blow. If the final kill doesn't come from a player, the corpse will poof immediately.
Randymarsh9
05-14-2009, 10:24 PM
It's simple. You kill a mob and it pops him. Then you kill him
So_1337
05-15-2009, 08:48 AM
Is your GM flag on? Only other thing I can think of.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.