仅使用用户名登录 Robox,就像在奖励网站上一样 [英] Use Login Robox using username only like on reward sites

查看:49
本文介绍了仅使用用户名登录 Robox,就像在奖励网站上一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这可能不是问这个的地方,但我现在很难过,因为我似乎找不到任何与 Roblox 合作的参考或文档.我的意思是确定他们有认证路线等,但没有详细说明.我想使用用户名登录用户,并根据他们在网站上采取的不同操作(例如完成调查等)为他们提供 roblox.任何人都可以给我一些资源的链接,这些资源对于特定目的会派上用场.谢谢.

解决方案

Roblox 不支持任何 OAuth 系统,但您仍然可以使用 HttpService:GetAsync() 函数从网站获取字符串/数据(如果网站中的页面显示该文本),保持从 url(网页)收到的数据安全的方法是在服务器端使用 HttpService:GetAsync() 函数存储脚本(例如:RobloxScriptService).您需要在 GameSettings 中允许 http 请求 ->roblox 工作室的安全性.脚本示例:

 local HttpService = game:GetService("HttpService")本地 stringg = HttpService:GetAsync("https://pastebin.com/raw/k7S6Ln9R")打印(字符串)--应该输出写在网页上的数据,你可以使用任何网页来存储数据,甚至你自己的

剩下的唯一两件事是让您的 Web 服务器重写页面,或者通过将其 url 放入 loadstring() 函数来使用您网站上的一些数据库.现在您只需要解析 url 给出的字符串即可使用它的数据.我写到 loadstring() 中的 pastebin url 只是一个例子,你可以写任何你想要的,但同样你需要解析你从 url 获得的数据,或者只是将字符串转换为页面上的文本类型,和然后检查它们是否写在 url/webpage 上.示例:

localwrittenpass = game.Players[anyplayer"].PlayerGui.TestGui.Frame.PasswordTextBox.textlocal writelogin = game.Players[anyplayer"].PlayerGui.TestGui.Frame.LoginTextBox.text本地 HttpService = 游戏:GetService(HttpService")本地响应 = HttpService:GetAsync(https://pastebin.com/raw/k7S6Ln9R")local istrue = string.find(response, "{ login = "..writtenlogin.." pass = "..writtenpass.." }")打印(是真的)如果 istrue == 1 那么打印(存在!")--如果存在登录和传递,则采取什么操作结尾

您可以在这里查看页面https://pastebin.com/raw/k7S6Ln9R>

嗯,伤害很大!如果它有助于标记我

Hi i know this is probably not the place to ask this but i m stumped at the moment as i cant seem to find any reference or docs relating to working with Roblox. I mean sure they have an auth route etc but nothing detailed. I want to login user using username and give them roblox based on different actions they take on the site like completing surveys etc. Can anyone please give me links to some resources that would come in handy for the particular purpose. Thank you.

解决方案

Roblox does not support any OAuth systems, but you still can use HttpService:GetAsync() function to get strings/data from web site(if the page in website display that text), the way to keep data that you recieved from url(web page) safe is to store script with HttpService:GetAsync() function in server side(example: RobloxScriptService). You need to allow http requests in your GameSettings -> Security in roblox studio. Script example:

  local HttpService = game:GetService("HttpService")

local stringg = HttpService:GetAsync("https://pastebin.com/raw/k7S6Ln9R")

print(string)
--Should outpud data written ot the web page, you can use any web page to store data even your own

The only two things that left is to make your web server rewrite the page, or just use some databases at your web site by placing their url into loadstring() function. Now you just need to parse the string given by url to use it's data. The pastebin url that i wrote into loadstring() just an example, you can write whatever you wan, but again you need to parse the data that you got from url, or just convert the string into type of text like on the page, and then just check is they written at url/webpage. Example:

local writtenpass = game.Players["anyplayer"].PlayerGui.TestGui.Frame.PasswordTextBox.text

local writtenlogin = game.Players["anyplayer"].PlayerGui.TestGui.Frame.LoginTextBox.text


local HttpService = game:GetService("HttpService")

local   response = HttpService:GetAsync("https://pastebin.com/raw/k7S6Ln9R")



local istrue = string.find(response, "{ login = ".. writtenlogin .." pass = ".. writtenpass .." }")

print(istrue)


if istrue == 1 then
        print("exist!")
--whatewer actions if login and pass exist
        end
    

You can wiew the page here https://pastebin.com/raw/k7S6Ln9R

Well that a lot of damage! If it helps mark me

这篇关于仅使用用户名登录 Robox,就像在奖励网站上一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆