PK
If you kill another player outside an event or duel you become a PK (red name). While you are PK, guards attack you and you can lose items when you die. The status wears off over time, and you can also clear it with the /pk command (from level 150, with a zen cost and once per hour).
Duels
To fight without punishment, challenge someone to a duel: the first to reach 10 points wins, or whoever has more after 10 minutes.
PvP maps and events
Each map page tells you whether it is a safe zone or has PvP. There are also organized PvP events: see the Events section.