Как отправить нажатие/ответ на CEF

Terratomorf

Известный
Автор темы
315
58
Версия MoonLoader
Другое
Как отправить нажатие/ответ на CEF
Пытаюсь сделать регистрацию
знаю что CEF на 215 пакете(Radmir RP CRMP)
вроде как у меня получилось заполнить все полня, но не знаю как отправить нажатие что бы поставить галочку
Мой код
Код:
local RakLua = require "RakLua"
local sampev = require "lib.samp.events"
local bitstreamtext = ''

local pass = '123123'
local email = 'reedsads@mail.ru'

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then
        return
    end
    sampRegisterChatCommand("/reg", reg());
    RakLua.registerHandler(RakLuaEvents.INCOMING_PACKET, function(id, bs)
        if id == 215 then
            local _style = bs:readUInt16()
            local _type = bs:readUInt32()
            local l = bs:readUInt8()
            local style3 = bs:readUInt8()
            local length = bs:readUInt32()
            if length > 0 and length < 10000 then
                bitstreamtext = bs:readString(length)
                print(bitstreamtext)
            else
                bitstreamtext = nil
            end
            if bitstreamtext then
                if bitstreamtext:match('sounds/train/stop.mp3') then
                    reg()
                end
            end
        end
    end)
    while true do
    wait(0)
    end
end

local ref = 'Cody_Zlo'

function reg()
    local bs = RakLuaBitStream.new()
    local method = 'setRegistrationStage'
    bs:writeInt8(215)
    bs:writeInt16(2)
    bs:writeInt32(0)
    bs:writeInt32(#method)
    bs:writeString(method)
    bs:writeInt32(8)
    bs:writeInt8(115)
    bs:writeInt32(#email)
    bs:writeString(email)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:writeInt8(115)
    bs:writeInt32(#ref)
    bs:writeString(ref)
    print(bs:sendPacketEx(1, 9, 0))
end

function enterpass(pass)
    local bs = bitStream.new()
    local method = 'OnAuthorizationStart'
    bs:writeInt8(215)
    bs:writeInt16(2)
    bs:writeInt32(0)
    bs:writeInt32(#method)
    bs:writeString(method)
    bs:writeInt32(2)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:sendPacketEx(1, 9, 0)
    print(pass)
end
1680002664724.png
 
Последнее редактирование:

RoflHaHaWF

Известный
1,093
460
Как отправить нажатие/ответ на CEF
Пытаюсь сделать регистрацию
знаю что CEF на 215 пакете
вроде как у меня получилось заполнить все полня, но не знаю как отправить нажатие что бы поставить галочку
Мой код
Код:
local RakLua = require "RakLua"
local sampev = require "lib.samp.events"
local bitstreamtext = ''

local pass = '123123'
local email = 'reedsads@mail.ru'

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then
        return
    end
    sampRegisterChatCommand("/reg", reg());
    RakLua.registerHandler(RakLuaEvents.INCOMING_PACKET, function(id, bs)
        if id == 215 then
            local _style = bs:readUInt16()
            local _type = bs:readUInt32()
            local l = bs:readUInt8()
            local style3 = bs:readUInt8()
            local length = bs:readUInt32()
            if length > 0 and length < 10000 then
                bitstreamtext = bs:readString(length)
                print(bitstreamtext)
            else
                bitstreamtext = nil
            end
            if bitstreamtext then
                if bitstreamtext:match('sounds/train/stop.mp3') then
                    reg()
                end
            end
        end
    end)
    while true do
    wait(0)
    end
end

local ref = 'Cody_Zlo'

function reg()
    local bs = RakLuaBitStream.new()
    local method = 'setRegistrationStage'
    bs:writeInt8(215)
    bs:writeInt16(2)
    bs:writeInt32(0)
    bs:writeInt32(#method)
    bs:writeString(method)
    bs:writeInt32(8)
    bs:writeInt8(115)
    bs:writeInt32(#email)
    bs:writeString(email)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:writeInt8(115)
    bs:writeInt32(#ref)
    bs:writeString(ref)
    print(bs:sendPacketEx(1, 9, 0))
end

function enterpass(pass)
    local bs = bitStream.new()
    local method = 'OnAuthorizationStart'
    bs:writeInt8(215)
    bs:writeInt16(2)
    bs:writeInt32(0)
    bs:writeInt32(#method)
    bs:writeString(method)
    bs:writeInt32(2)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:sendPacketEx(1, 9, 0)
    print(pass)
end
Посмотреть вложение 195293
CEF это же 220, причем RPC, не?
 

Гриша23079

Потрачен
3
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Как отправить нажатие/ответ на CEF
Пытаюсь сделать регистрацию
знаю что CEF на 215 пакете(Radmir RP CRMP)
вроде как у меня получилось заполнить все полня, но не знаю как отправить нажатие что бы поставить галочку
Мой код
Код:
local RakLua = require "RakLua"
local sampev = require "lib.samp.events"
local bitstreamtext = ''

local pass = '123123'
local email = 'reedsads@mail.ru'

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then
        return
    end
    sampRegisterChatCommand("/reg", reg());
    RakLua.registerHandler(RakLuaEvents.INCOMING_PACKET, function(id, bs)
        if id == 215 then
            local _style = bs:readUInt16()
            local _type = bs:readUInt32()
            local l = bs:readUInt8()
            local style3 = bs:readUInt8()
            local length = bs:readUInt32()
            if length > 0 and length < 10000 then
                bitstreamtext = bs:readString(length)
                print(bitstreamtext)
            else
                bitstreamtext = nil
            end
            if bitstreamtext then
                if bitstreamtext:match('sounds/train/stop.mp3') then
                    reg()
                end
            end
        end
    end)
    while true do
    wait(0)
    end
end

local ref = 'Cody_Zlo'

function reg()
    local bs = RakLuaBitStream.new()
    local method = 'setRegistrationStage'
    bs:writeInt8(215)
    bs:writeInt16(2)
    bs:writeInt32(0)
    bs:writeInt32(#method)
    bs:writeString(method)
    bs:writeInt32(8)
    bs:writeInt8(115)
    bs:writeInt32(#email)
    bs:writeString(email)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:writeInt8(115)
    bs:writeInt32(#ref)
    bs:writeString(ref)
    print(bs:sendPacketEx(1, 9, 0))
end

function enterpass(pass)
    local bs = bitStream.new()
    local method = 'OnAuthorizationStart'
    bs:writeInt8(215)
    bs:writeInt16(2)
    bs:writeInt32(0)
    bs:writeInt32(#method)
    bs:writeString(method)
    bs:writeInt32(2)
    bs:writeInt8(115)
    bs:writeInt32(#pass)
    bs:writeString(pass)
    bs:sendPacketEx(1, 9, 0)
    print(pass)
end
Посмотреть вложение 195293
В данном случае она не влияет ни на что (если галочка установлена то кнопка далее будет активна, в противном случае неактивна, это обрабатывается на стороне клиента, если отправлять данные через битстрим, её наличие или отсутствие никак не повлияет на результат выполнения).
 
  • Bug
Реакции: Dmitry Code