- 4
- 0
нужно чтобы ракбот нажал на кнопку (или стрелками перенес) и принял работу
function clickDialog(btn, item, text)
local bs = bitStream.new()
bs:writeUInt8(215)
bs:writeInt16(2)
bs:writeInt32(0)
bs:writeInt32(#'OnDialogResponse')
bs:writeString('OnDialogResponse')
bs:writeInt32(8)
bs:writeInt8(100)
bs:writeInt32(0)
bs:writeInt8(100)
bs:writeInt32(btn)
bs:writeInt8(100)
bs:writeInt32(item)
bs:writeInt8(115)
bs:writeInt32(#text)
bs:writeString(text)
bs:sendPacketEx(1, 9, 0)
end
исходник
function clickDialog(btn, item, text)
local bs = bitStream.new()
bs:writeUInt8(215)
bs:writeInt16(2)
bs:writeInt32(0)
bs:writeInt32(#'OnDialogResponse')
bs:writeString('OnDialogResponse')
bs:writeInt32(8)
bs:writeInt8(100)
bs:writeInt32(0)
bs:writeInt8(100)
bs:writeInt32(btn)
bs:writeInt8(100)
bs:writeInt32(item)
bs:writeInt8(115)
bs:writeInt32(#text)
bs:writeString(text)
bs:sendPacketEx(1, 9, 0)
end
исходник