cyrus1222Join Date: 2009-01-29 Post Count: 5141 |
This will connect to the ROBLOX website for certain Pages.
Pages:
http://www.roblox.com/
http://www.roblox.com/UserName/GameData.aspx
http://www.roblox.com/Forum/Default.aspx
http://www.roblox.com/Contests/
http://www.roblox.com/Browse.aspx
http://www.roblox.com/Games.aspx
http://www.roblox.com/User.aspx?Name=USERNAME
http://www.roblox.com/ITEM-item?id=ID HERE
UserName/GameData has to be your username.
Properties:
Page
WaitingRequests(Table)
Methods:
AddRequest(String RequestName) --returns RequestId, Accepted(Bool)
GetElement(String ElementName) --Returns Element
StopRequest(Number RequestId) --Getting request IDs come from the Object.WaitingRequests
SetPage(String Page)
GetTime() --Returns the amount of time until another request can be made.
Events:
RequestOverturned(Number RequestId)
RequestReturned(Number RequestId)
RequestMade(Number RequestId)
RequestCanceled(Number RequestId)
RequestAccepeted(Number RequestId
Every page has it's own requests seeable in the Object Browser.
Like Contests has things like "View Highest" Which will return a table of the Highest ranked Users.
An example of a Go to game script using this would be:
I = Instance.new("ROBLOX_Website_Connect")
I.Parent = Workspace
print(pcall(function() I:SetPage("http://www.roblox.com/My/Home.aspx") end))
I:SetPage("http://www.roblox.com/Games.aspx")
h1,h2 = I:GetElement("Game 1")
I:SetPage("http://www.roblox.com/Game-item?id="..tostring(h2))
print(I:GetElement("Page Name"))
This would print something like:
false Page Request overturned, Page is not an allowed page of Website Connect
http://www.roblox.com/1st-game-on-games-page-item?id=1st-game's-ID
The Data area can be used like a "Model Saving" Device if you wanted, or a Save device, how?
I:SetPage("http://www.roblox.com/cyrus1222/GameData.aspx")
if I:GetTime() ~= 0 then
for k = 1, I:GetTime() do
wait(1)
end
l,k = I:AddRequest("Update Model",script.Parent.Parent)
repeat wait() until k ~= nil
if k == true then
print("Model Updated")
end
This would update a model on your page?
This is basically an object that allows you to "Talk" to the roblox site securely.
So is this a good idea, it's secure, no one can edit your tix or buy anything liek that. So, like my idea?
|
|
cyrus1222Join Date: 2009-01-29 Post Count: 5141 |
Bump, All my posts are long, most, and no one cares to read them! |
|
|
OBFJoin Date: 2009-09-29 Post Count: 10709 |
They read them, they just don't understand all the smart stuff on it. :P
Mainly, I think this will be exploited and people will do bad things with it. |
|
cyrus1222Join Date: 2009-01-29 Post Count: 5141 |
How, only certain requests will be in there, there will be no "Add Tickets" type of request. |
|
OBFJoin Date: 2009-09-29 Post Count: 10709 |
Well, looking over it, it doesn't seem that bad at all. |
|
10FREE1Join Date: 2007-11-23 Post Count: 2939 |
Well... it sounds good... Ummm, yeah the idea sounds good.
*Stares at the complicated part* errr |
|
cyrus1222Join Date: 2009-01-29 Post Count: 5141 |
Complication can be figured out. |
|
|
Quick, to the Google-mobile! :) |
|
palexbJoin Date: 2009-09-02 Post Count: 514 |
Kuser, umm..the Google-mobile is *that* way. -points- |
|
|