Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local url="http://roapi-slowki.rhcloud.com/"
- local http=game:GetService("HttpService")
- local List=http:JSONDecode(http:GetAsync(url.."/Limiteds",true))
- local Temp={}
- local GetRAP = function(v)
- local RAP=http:GetAsync(url.."/ItemRap?id="..v.id,true)
- return {v.id,v.name,RAP}
- end
- local q=0
- if List then
- for i,v in pairs(List) do
- q=q+1
- if q>=3 then
- q=0
- makeRoutine=true
- end
- if makeRoutine then
- makeRoutine=false
- coroutine.wrap(function()
- local RAP=GetRAP(v)
- table.insert(Temp,{v.id,v.name,RAP})
- end)()
- elseif not makeRoutine then
- local RAP=GetRAP(v)
- table.insert(Temp,{v.id,v.name,RAP})
- end
- end
- end
- print("local Limiteds={")
- for i,v in pairs(Limiteds) do
- wait()
- print(string.format([[ {
- ['Id'] = ]]..v.Id..[[,
- ['Name'] = %s]]..v.Name..[[%s,
- ['RAP'] = ]]..v.RAP..[[,
- },]],"[[","]]"))
- end
- print("}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement