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.

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."
 * "I once tried to bring an Angel Statue to life. It didn't do anything." (this is a reference to the fact that before the 1.1 update 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

 * In one of his night quotes he mentions "friendship is magic", which is a reference to the show "My Little Pony: Friendship is magic", which has become a hit in pop culture.

History

 * Early mentions:
 * Terraria Soundtrack 2nd November 2011
 * Wall of Fle.. Text 21st November 2011