PWLuaOOG

09/06/2014 16:29 Desmond Hume#1
[Only registered and activated users can see links. Click Here To Register...]
This is my program for working by PW's protocol on C#, but this use LUA scripts. main.lua in folder /scripts is "entry file". It's easy method for editing packets.

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:
  1. Console:
    1. Print(message, line) — print gray message, last param not required and print message on current line if false
    2. Log(message) — print white message
    3. Warning(message) — print yellow message
    4. Error(message) — print red message
    5. Success(message) — print green message
  2. ReceivedPacket:
    1. ReadBytes(count) — reads a sequence of bytes from the current stream
    2. ReadByte() — read one byte
    3. ReadWord() — read one machine word
    4. ReadDword() — read double machine word
    5. ReadString() — read string (CUInt + message), ASCII
    6. ReadUString() — read string (CUInt + message), Unicode
    7. ReadCUInt() — read CUInt
    8. Seek(count, dir) — sets the position within the current stream, last param is a dir (1 — begin, 2 — current, 3 — end), default 2.
  3. 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
  4. Protocol:
    1. Connect(link, port) — init new connection by link and port
    2. Disconnect() — close current connection
    3. InitRC4(CMKey, SMKey, Hash, login) — init objects for auto crypt and decrypt packets
  5. Crypt:
    1. GetHash(login, password, key, tablename) — create hash and filling LUA table
  6. Math:
    1. RandomTable(tablename, count) — filling LUA table by random data

VT: [Only registered and activated users can see links. Click Here To Register...]

Sorry for my english.
09/26/2014 18:38 jasty#2
Thanks for this! I've been interested in making some OOG chat apps and this suits my needs perfectly! I was trying to use some of the OOG framework DLLs with python but the loader couldn't find the exports table or something.
09/26/2014 22:53 turtadulce#3
make an cat shop for phone :)
10/03/2014 21:54 Desmond Hume#4
Quote:
Originally Posted by jasty View Post
Thanks for this! I've been interested in making some OOG chat apps and this suits my needs perfectly! I was trying to use some of the OOG framework DLLs with python but the loader couldn't find the exports table or something.
It works only with LUA. I don't know python syntax. May be some day I make it with python.
01/15/2016 12:29 archnael#5
You could make available the source code of the program?
05/28/2018 13:29 Desmond Hume#6
Sources 0.3b
[Only registered and activated users can see links. Click Here To Register...]