Register for your free account! | Forgot your password?

You last visited: Today at 17:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PWLuaOOG

Discussion on PWLuaOOG within the Perfect World forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2014
Posts: 7
Received Thanks: 2
PWLuaOOG

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:

Sorry for my english.
Attached Files
File Type: zip PWLuaOOG_en.zip (174.2 KB, 80 views)
Desmond Hume is offline  
Thanks
2 Users
Old 09/26/2014, 18:38   #2
 
elite*gold: 0
Join Date: Jul 2011
Posts: 145
Received Thanks: 97
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.
jasty is offline  
Old 09/26/2014, 22:53   #3
 
elite*gold: 0
Join Date: Aug 2014
Posts: 7
Received Thanks: 0
make an cat shop for phone
turtadulce is offline  
Old 10/03/2014, 21:54   #4
 
elite*gold: 0
Join Date: Sep 2014
Posts: 7
Received Thanks: 2
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.
Desmond Hume is offline  
Old 01/15/2016, 12:29   #5
 
elite*gold: 0
Join Date: Oct 2013
Posts: 7
Received Thanks: 1
You could make available the source code of the program?
archnael is offline  
Thanks
1 User
Old 05/28/2018, 13:29   #6
 
elite*gold: 0
Join Date: Sep 2014
Posts: 7
Received Thanks: 2
Sources 0.3b
Desmond Hume is offline  
Reply




All times are GMT +2. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.