- 35
- 2
Друзья, всем привет, какой бы тупой вопрос тут не был написан пожалуйста отнеситесь с уважением.
Регистрировал аккаунты через рак бота для родины рп, по скрипту пароль должен был быть "goodgame" после чего я вхожу в аккаунт и пишет что неверный пароль, пожалуйста посмотрите в коде и скажите какой пароль, буду очень сильно благодарен.
пробывал писать пароли "goodgame" " goodgame" "Stas_Paketov"
Регистрировал аккаунты через рак бота для родины рп, по скрипту пароль должен был быть "goodgame" после чего я вхожу в аккаунт и пишет что неверный пароль, пожалуйста посмотрите в коде и скажите какой пароль, буду очень сильно благодарен.
пробывал писать пароли "goodgame" " goodgame" "Stas_Paketov"
Код:
local sampev = require("samp.events")
local ffi = require("ffi")
require('addon')
local socket = require 'socket'
os.execute("color 0")
local pos = 1
local betmen = {}
local currentTree = nil
local ce = 0
function sampev.onSendSpawn()
pos = 1
if pos == 1 then
onTeleportToCoord()
end
setAutoPick(true)
end
sampev['onServerMessage'] = function(color, text)
if text:find("телепортировал вас") then
reconnect(3000)
end
if text:find("телепортированы") then
reconnect(3000)
end
if text:find("Администратор") and text:find("забанил") and text:find(getBotNick()) and not text:find("говорит") then
bansave()
end
if text:find("посадил") and text:find("Администратор") and text:find(getBotNick()) and not text:find("говорит") then
bansave()
end
end
function onLoad()
setRate(RATE_LUA, 1200)
setAutoPick(true)
end
function onReceivePacket(id, bs)
if id == 220 then
bs:ignoreBits(8)
if (bs:readInt8() == 17) then
bs:ignoreBits(32)
local str = bs:readString(bs:readInt32())
if str:find('vue%.call') and str:find("progressBar/updateData") then
sendClick(("@24, pressKey"))
end
if str:find("window.executeEvent%(%'event%.setActiveView%'%,") and str:find('%[%"Auth%"%]') then
newTask(sendRegister, 1000, getBotNick(), goodgame, "Stas_Paketov")
else
end
end
end
end
function sendRegister(nick, pass, ref)
newTask(function()
local string1 = string.format("registration|%s|%s|null|friends|%s", nick, pass, ref)
local bs = bitStream.new()
bs:writeInt8(220)
bs:writeInt8(18)
bs:writeInt32(string.len(string1))
bs:writeString(string1)
bs:writeInt32(1)
bs:sendPacketEx(2, 9, 6)
bs:reset()
wait(500)
local string2 = "createCharacter|man|0"
local bs = bitStream.new()
bs:writeInt8(220)
bs:writeInt8(18)
bs:writeInt32(string.len(string2))
bs:writeString(string2)
bs:writeInt32(1)
bs:sendPacketEx(2, 9, 6)
bs:reset()
end)
end
function setRandomNick()
local data = {names = {}, surnames = {}}
local filenames = {"settings\\names.txt", "settings\\surnames.txt"}
for i = 1, #filenames do
local file = io.open(filenames[i], "r")
if not file then
return
end
for line in file:lines() do
line = line:gsub("%s", "")
table.insert(i == 1 and data.names or data.surnames, line)
end
file:close()
end
math.randomseed(os.time() + os.clock() * 1e6 + socket.gettime() * 1e6 + os.getenv("PATH"):len())
setBotNick(("%s_%s"):format(data.names[math.random(1, #data.names)], data.surnames[math.random(1, #data.surnames)]))
reconnect(1000)
reload()
end
function reload()
local script_name = debug.getinfo(1, 'S').source:sub(2):gsub('\\\\', '\\')
printm("Скрипт был успешно перезагружен системой!")
clearTasks()
collectgarbage()
dofile(script_name)
end
function bansave()
local file = io.open("banaccounts.txt", "a")
if file then
local currentTime = os.date("%d.%m.%Y %H:%M:%S")
local accountInfo = string.format(
"[%s] Ник: %s | Уровень: %d | Сервер: %s | Пароль: %s\n",
currentTime,
getBotNick(),
getBotScore(),
getServerName(),
password
)
file:write(accountInfo)
file:close()
print("Аккаунт сохранен в banaccounts.txt")
setRandomNick()
else
print("Ошибка при сохранении аккаунта в файл!")
end
end
function save()
local file = io.open("accounts.txt", "a")
if file then
local currentTime = os.date("%d.%m.%Y %H:%M:%S")
local accountInfo = string.format(
"[%s] Ник: %s | Уровень: %d | Сервер: %s | Пароль: %s\n",
currentTime,
getBotNick(),
getBotScore(),
getServerName(),
password
)
file:write(accountInfo)
file:close()
print("Аккаунт сохранен в banaccounts.txt")
setRandomNick()
else
print("Ошибка при сохранении аккаунта в файл!")
end
end