PDA

View Full Version : RotCorpse Command


Toriad
02-08-2008, 12:11 PM
void command_rotcorpse(Client *c, const Seperator *sep) {

Corpse *d;

if (c->GetTarget() && c->GetTarget()->IsPlayerCorpse()) {
d = c->GetTarget()->CastToCorpse();
d->SetDecayTimer(1);
c->Message(0, "Target Corpse was Rotted");
} else {
c->Message(0, "You Need to Target a Corpse!");
}

}

My issue with it is, when I use it in the shadowrest zone, the corpse is buried and rotted..

If I use it in QRG, or any other place For that matter, it just rots and the corpse is gone forever...

anyone know why?