Your character may advance in power by gaining experience. The experience points needed to attain your next level is determined by your experience points per level at level 1 + 20% for each level. Therefore, a human warrior (1500 experience points per level at level 1) would need 3000 experience points to get from level 6 to level 7.
You gain experience by:
being part of a group that kills a monster
improving on a skill or a spell
You lose experience by:
slaying good aligned mobiles if you are also good aligned
fleeing from combat
recalling out of combat
being the target of certain spells
dying to mobiles
The experience you get from a kill depends on several things: how many players are in your group; your level versus the level of the monster; your alignment versus the monster's alignment; how many of this monster have been killed lately; and some random variation.
There is a big experience bonus for groups of three and a small bonus for groups of two.
Aabahran