Codes

Enabling the Console

To enable the console, go to C:\Users\YOURUSERNAME\Documents\my games\Runic Games\Torchlight 2\save\(number).
The number will be different from person to person, the point is that it is a string of numbers.
Open that folder, then open up settings.txt (back up recommended, like always).
Change 'Console:0' to 'Console:1'
Once you are in game, press the Insert key (INS) to open up the console.

Code

Effect

Add a friend by username or email.

ADDFRIENDBYUSER

Toggles monster AI on and off

AIFREEZE

Spawns all items

ALLITEMS

Gives you all stats

ALLSTATS <count>

Player will always score critical hits

ALWAYSCRIT

Goes down a floor

ASCEND

CLS

Clear Console History

Gives you defense points

DEFENSE <count>

Goes up a floor

DESCEND

Gives you ranged points

DEXTERITY <count>

Displays the current game difficulty

DIFFICULTY

Disables the Player's pet

DISABLEPET

Gives you fame points

FAME <count>

Shows the frame rate and other information

FPS

Toggles Godmode

GOD

Toggles both Godmode and Speed mode

GODSPEED

Reduces the player's and the player's pet HP by the given percent

HURTME <percent>

Identifies all items in the player's inventory

IDENTIFYALL

Creates an a an item the given number of times

ITEM <itemname>,<count>

Kills all monsters

KILLALL

Increase XP to the next level

LEVELUP

Gives you magic points

MAGIC <count>

Gives you gold

MONEY <amount>

The player will not gain XP

NOXP

SPAWNCLASS

pawnclassName,count,level = just type spawnclass to see all the spawn classes listed. Pass in Zero or a negative number for level will use the dungeon

Easter Eggs

Claptrap (from Borderlands) Easter Egg

A CL4P-TP (You may call him by his locally designated name, Clap Trap!) is secreted away in Bloatfang's boss room (Act 3 - Some Assembly Required). After defeating the boss, step up onto the ledge where the Automaton Power Source and chest are waiting for you. There is a path you can follow that goes south and west around the boss arena. When you reach the southern point of the level you should see Clap Trap standing between a couple of rocks. He congratulates you for defeating Bloatfang, and then gives you a unique socketable to mark the occasion. (Claptrap's Bolt, rare socketable; Armor/Trinkets: Increase charge rate by 10%, Weapon: Conveys 5% chance to Shock for 5 seconds, Requires item level 32, "My servos... are seizing...")
Although you cannot interact with Claptrap, the interplanetary ninja assassin will continue to stand around and shout, as he is one to do. He has a number of lines of dialogue that are all parodies of his lines in Borderlands:
"Good as new! Welcome to... actually, I have no idea where we are!"
"Thank you stranger! Speaking of strange... you're either going to a costume party, or I'm a long way from home!"
"Look at me! I'm an easter egg! An easter egg!"

The Goonies come to Estheria

Plunder Cove, an optional quest available in act one, is replete with references to the 1985 film 'The Goonies'. Hidden randomly within the level you should be able to find a lootable corpse named Chester Copperpot, after the ill-fated Oregonian whose skeletal remains were stumbled upon in the tunnels beneath the Fratelli hideout. The boss of this quest, One-Eyed Willy, is also a nod to the film, and the cove where you can find his ship also bears many resemblances to the location in the film. It is possible to find two socketables in this stage; Copperpot always drops a rare called 'One-Eyed Willy's Other Eye', and Willy himself has a chance to drop a unique called 'One-Eyed Willy's Eye'.