The Forgotten Server is written in C++, which controls most of the in-game variables and algorithms.
Lua is the scripting language for Tibia OTs and provides you the ability to create in-game things like new quests, events, spells, etc.
The only other language that is worth mentioning is XML...