open($d2info_path . $oldchar); $char->setName($newchar, CHARINFO); $char->save($d2info_path . $newchar, CHARINFO); // save as d2info format // 2 step - rename D2Save $char->open($d2save_path . $oldchar); $char->setName($newchar, CHARSAVE); $char->save($d2save_path . $newchar, CHARSAVE); // save as d2save format // use CHARSAVE or CHARINFO # $char->setLadder(true, CHARSAVE); // ladder # $char->setLadder(false, CHARSAVE); // nonladder # $char->setDead(true, CHARSAVE); // dead # $char->setDead(false, CHARSAVE); // live ?>