1- Tibia 11 needs a php ajax file (it's working like flash client [login])
2- Tibia 11, starting from version 11.10, needs world identification. ( you need to know what the fuck is that :D). Just to know the world before sending onConnect or any other details.
Tibia sends UTF-8 characters...