|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 04 Sep 2015 10:18 AM |
That url gives u: HTTP 500 (HTTP/1.1 302 Moved Temporarily) error. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 04 Sep 2015 10:36 AM |
http://www.roblox.com/Asset/BodyColors.ashx?userId=261
|
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
| |
|
|
| 04 Sep 2015 11:29 AM |
Load the character, put in table, destroy it Also, wit about asking them |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 04 Sep 2015 11:47 AM |
| I spelled Colors right, and colours. |
|
|
| Report Abuse |
|
|
MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
|
| 04 Sep 2015 12:42 PM |
| "Colours" is a wrong spelling for "colors". |
|
|
| Report Abuse |
|
|
| |
|
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
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 04 Sep 2015 02:35 PM |
lool salt everywhere
-=Robo=- |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|