But now it just beta version. In scripts what you can find on program folder I made reading world-chat and autobinding if your char is female.
You should type server, port (usually 29000), login and password to settings.lua for start.
Functions:
- Console:
- Print(message, line) — print gray message, last param not required and print message on current line if false
- Log(message) — print white message
- Warning(message) — print yellow message
- Error(message) — print red message
- Success(message) — print green message
- ReceivedPacket:
- ReadBytes(count) — reads a sequence of bytes from the current stream
- ReadByte() — read one byte
- ReadWord() — read one machine word
- ReadDword() — read double machine word
- ReadString() — read string (CUInt + message), ASCII
- ReadUString() — read string (CUInt + message), Unicode
- ReadCUInt() — read CUInt
- Seek(count, dir) — sets the position within the current stream, last param is a dir (1 — begin, 2 — current, 3 — end), default 2.
- SendPacket:
- WriteCUInt(value) — write CUInt to current stream
- WriteBytes(value) — write bytes
- WriteWord(value, swap) — write one machine word, if last param is true change the byte order
- WriteDword(value, swap) — write double machine word, if last param is true change the byte order
- WriteByte(value) — write one byte
- WriteString(value) — write string (CUInt + string), ANSII
- WriteUString(value) — write string (CUInt + message), Unicode
- PackContainer(opcode) — pack current stream like container by opcode
- SendPacket(opcode) — send current stream by opcode
- Protocol:
- Connect(link, port) — init new connection by link and port
- Disconnect() — close current connection
- InitRC4(CMKey, SMKey, Hash, login) — init objects for auto crypt and decrypt packets
- Crypt:
- GetHash(login, password, key, tablename) — create hash and filling LUA table
- Math:
- RandomTable(tablename, count) — filling LUA table by random data
VT:
Sorry for my english.