Dofus emulator in Bash