![]() |
Data converter to packet - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Resources (https://archive.gothic-online.com/forum-14.html) +---- Forum: Scripts (https://archive.gothic-online.com/forum-17.html) +---- Thread: Data converter to packet (/thread-1267.html) |
Data converter to packet - Galin - 27.03.2016 Hi. There you have a converter which can change data to string to sending with packets.
http://pastebin.com/nNc8ar1s Copy to client-side and server-side Types supported:
When you send packet, use function:
Code: convertToPacket(data) And when you get packet, use function:
Code: receiveFromPacket(packetData) |