generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: HttpService get BodyColor possible?

Previous Thread :: Next Thread 
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
01 Sep 2015 12:13 PM
Hi,
Using this:
http://rproxy.pw/Asset/AvatarAccoutrements.ashx?userId=348902
Will give me everything about the character EXCEPT his body color.

How can I get his bodycolor WITHOUT loading the character?
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
01 Sep 2015 12:54 PM
http://wiki.roblox.com/index.php?title=Web_APIs#Get_a_user.27s_body_part_colors
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
01 Sep 2015 01:02 PM
function getbcolours(id)
local res = game:GetService"HttpService":GetAsync("http://rproxy.pw/Asset/BodyColors.ashx?userId="..tostring(id));
local ret = {};
for n,v in res:gmatch('\60int name="([%w%s]-)"\62(%d-)\60/int\62') do
ret[n] = BrickColor.new(v);
end;
return ret
end

I'm sure BodyColors has its own Instance but I cba to find out -or- test
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
04 Sep 2015 10:18 AM
That url gives u:
HTTP 500 (HTTP/1.1 302 Moved Temporarily)
error.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
04 Sep 2015 10:33 AM
Hmm. Maybe if I knew more about Roblox I would be able to provide a solution.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
04 Sep 2015 10:36 AM
http://www.roblox.com/Asset/BodyColors.ashx?userId=261

Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
04 Sep 2015 10:37 AM
Yeah that's the one I put, and I just assumed that it would work through roproxy. Apparently not.
Report Abuse
Froast is not online. Froast
Joined: 12 Mar 2009
Total Posts: 3134
04 Sep 2015 10:42 AM
Goes through my proxy: roblox-proxy.cf/Asset/BodyColors.ashx?userId=261
Report Abuse
PlaceRebuilder is not online. PlaceRebuilder
Joined: 29 Apr 2008
Total Posts: 1056
04 Sep 2015 11:17 AM
That proxy didnt work either. It gave the error:
HTTP 400 (HTTP/1.1 400 Bad Request)

when you did:
local res = game:GetService("HttpService"):GetAsync("http://www.roblox-proxy.cf/Asset/BodyColors.ashx?userId="..tostring(id))



When you get AvatarAccoutrements, it opens a webpage:
http://www.roblox.com/Asset/AvatarAccoutrements.ashx?userId=261

When you get bodycolor, it downloads a file:
http://www.roblox.com/Asset/BodyColors.ashx?userId=261


I believe that's whats causing the issue but I have no idea how to fix it..

Report Abuse
Froast is not online. Froast
Joined: 12 Mar 2009
Total Posts: 3134
04 Sep 2015 11:24 AM
Yeah, it probably has something to do with the headers a roblox request sends out.
The best way to do this would be writing a php script to do it and just getting that from the actual server.
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
04 Sep 2015 11:28 AM
Spelled colors wrong.
Report Abuse
OrangeKitten is not online. OrangeKitten
Joined: 12 Jul 2007
Total Posts: 383
04 Sep 2015 11:29 AM
Load the character, put in table, destroy it
Also, wit about asking them
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
04 Sep 2015 11:47 AM
I spelled Colors right, and colours.
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
04 Sep 2015 12:42 PM
"Colours" is a wrong spelling for "colors".
Report Abuse
filiptibell is online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
04 Sep 2015 12:46 PM
^ American detected
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
04 Sep 2015 02:33 PM
Colours is the correct spelling for colors, if you are British like me. How about you stop being so uncultured and sit down.

Learn where your language came from before you tell me that I'm spelling things wrong.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
04 Sep 2015 02:35 PM
lool salt everywhere


-=Robo=-
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
04 Sep 2015 02:48 PM
@eLunate
Americans technically do not speak English. It is its own language.
Technical British English has much different spellings and grammar rules. The two languages are very similar, but are not the same. Thus, you are both correct.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
04 Sep 2015 02:55 PM
Uh, you know British people obviously don't speak American English.

We aren't uncultured swines.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
04 Sep 2015 10:15 PM
tfw ignorantly corrects someone and that makes Americans swines, okay, you're really smart.

-=Robo=-
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image