Wizard

The Wizard is an NPC, which must be saved from an underground part of the world after defeating the Wall of Flesh. He will randomly spawn in open areas in the Cavern layer while you are exploring. The Dungeon contains a large number of open areas and is the fastest way to force him to spawn. Talking to him in this state will free him, and he will wander the area until he gets killed by any nearby enemy or hazard, or until you move far enough from him. After that, he will move into an available house like any normal NPC. Note that if he gets killed, you WON'T have to unbind another one (the same with the Goblin Tinkerer and Mechanic.)

Once the Wizard has moved into a house, he will sell the following:

Note: As with all NPCs, right-clicking an item will allow multiple purchases rather than purchasing it one by one.

Quotes
During day During night When homeless When rescued "Thanks for saving me, friend! This bondage was starting to chafe."
 * "Well, hi there, [name of another NPC same gender as the player]! What can I do for you today?"
 * "Want me to pull a coin from behind your ear? No? Ok."
 * "I make a rather enchanting hot chocolate if you'd be inter... No? Ok."
 * "Do you want some magic candy? No? Ok."
 * "Ever wanted an enchanted ring that turns rocks into slimes? Well neither did I."
 * "Someone once told me friendship is magic. That's ridiculous. You can't turn people into frogs with friendship." (Possibly a reference to My Little pony: Friendship is Magic.)
 * "I once tried to bring an Angel Statue to life. It didn't do anything." (this is a reference to the fact that the Angel Statue was utterly useless and the tooltip even said 'it doesn't do anything')"
 * "Are you here for a peek at my crystal ball?"
 * "I can see your future now... You will buy a lot of items from me!"
 * "Ohh, my hero!"
 * "Oh, how heroic! Thank you for saving me, young (man/lady)!"
 * "Now that we know each other, I can move in with you, right?"

Trivia

 * His randomly generated names, Fizban and Dalamar, are references to the Dragonlance universe.
 * He may be slightly senile, as he confuses the player with NPCs of the same gender residing in Town.
 * Another random name, Merlyn, is a pun on the actual wizard name "Merlin"