Actually that's not all. You need to check also for:
- whether it was the only character the player had,
- if so check what country it belonged to and set it in PS_GameData.dbo.UserMaxGrow table so player won't get the screen to choose faction, oh and you can do a silly bug this way by having a i.e. AoL character on UoF side.
- then check whether that character was in guild, if yes check which guild it was, check for guild leadership, return it to guild, correct MemberCount.
- you can set safe zone as Map 0. It's D-Water. The coordinates are irrelevant since player will spawn in own faction fortress.
- adding to what lilpro wrote. You also need to check whether player requested that character to be deleted or not. Otherwise you will restore a lot of useless toons.
I have a working UM Restore script written in PHP. Can't make it public sorry. it's for Kingdom.