I didn't think it needed to be a rule, so I just hardcoded a 5 sec decay on empty corpses.
In zone/PlayerCorpse.cpp, near line 150 after Hogie's variable decay loop, add this.
Code:
// Added By Hogie
for(int count = 0; count < 100; count++) {
if ((level >= npcCorpseDecayTimes[count].minlvl) && (level <= npcCorpseDecayTimes[count].maxlvl)) {
corpse_decay_timer.SetTimer(npcCorpseDecayTimes[count].seconds*1000);
break;
}
}
// Added By Hogie -- End
if (itemlist.size() < 1)
corpse_decay_timer.SetTimer(5000);
for (int i=0; i<MAX_LOOTERS; i++)
looters[i] = 0;
this->rezzexp = 0;
I can put it into a rule if that's how it should be.