|
| 30 Aug 2013 07:18 PM |
Ex: MarketplaceService, BadgeService, GamePassService, etc.
How do I use these services to award badges/give special powers to gamepass owners/sell items in game? |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:21 PM |
(Bump)
And also could you name all of the services? |
|
|
| Report Abuse |
|
|
| |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:25 PM |
Use the API Dump
http://wiki.roblox.com/index.php/Class_reference/API_dump |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:27 PM |
O_O
Dude, I'm an average scripter (and not good at telling sarcasm from seriousness from trolling). I'm not that good. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:30 PM |
Oops. Did I hear you say "I'm not that good."?
In that case, use the API Dump! http://wiki.roblox.com/index.php/Class_reference/API_dump
It helps, good or bad, right or wrong, yes or no, true or false, 1 or 0 |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:32 PM |
I. DO. NOT. KNOW. WHAT. THAT. MEANS.
Okay, you're a troll. |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 30 Aug 2013 07:34 PM |
Hmmm, have you tried this yet?
http://wiki.roblox.com/index.php/Class_reference/API_dump |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:36 PM |
| *Calls table flipping boys* |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:36 PM |
I'm no troll. But if I were, I definitely would NOT tell you to use the API Dump because of it's excessive amount of awesomeness:
http://wiki.roblox.com/index.php/Class_reference/API_dump |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
| |
|
josh50000
|
  |
| Joined: 29 Nov 2009 |
| Total Posts: 697 |
|
|
| 30 Aug 2013 07:38 PM |
This will help btw: http://wiki.roblox.com/index.php/Class_reference/API_dump |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:38 PM |
I understand nothing in the API Dump. It makes no sense to me. All I want to know is how to use the Services.
|
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:39 PM |
You'd better get used to using that API Dump. Because that's the only link I'm giving you. :)
http://wiki.roblox.com/index.php/Class_reference/API_dump |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:40 PM |
Okay, well allow me to propose a new question:
How do I use the API Dump? |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
| |
|
|
| 30 Aug 2013 07:42 PM |
| But I do not understand what the purpose of the API Dump is. What does it DO? Can you explain it to me, hm? |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:43 PM |
| The [API Dump](http://wiki.roblox.com/index.php/Class_reference/API_dump) provides an organized, alphabetically sorted list of ROBLOX Objects. Using a simple string-search macro (usually CTRL+F), you can find all of the members (propeties, functions, yieldfunctions, callbacks, events) exclusive to a certain object. It tells you the parameters for all functions, and it tells you the security context too! So you even know what you can and cannot use. :D |
|
|
| Report Abuse |
|
|
josh50000
|
  |
| Joined: 29 Nov 2009 |
| Total Posts: 697 |
|
|
| 30 Aug 2013 07:44 PM |
This might be easier to understand :P http://wiki.roblox.com/index.php/GetService_(Method) |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:46 PM |
Okay, so I've found what I need (sort of, at least):
Class BadgeService : Instance Function void BadgeService:SetAwardBadgeUrl(string url) [LocalUserSecurity] Function void BadgeService:SetHasBadgeCooldown(int seconds) [LocalUserSecurity] Function void BadgeService:SetHasBadgeUrl(string url) [LocalUserSecurity] Function void BadgeService:SetIsBadgeDisabledUrl(string url) [LocalUserSecurity] Function void BadgeService:SetIsBadgeLegalUrl(string url) [LocalUserSecurity] Function void BadgeService:SetPlaceId(int placeId) [LocalUserSecurity] YieldFunction bool BadgeService:AwardBadge(int userId, int badgeId) YieldFunction bool BadgeService:IsDisabled(int badgeId) YieldFunction bool BadgeService:IsLegal(int badgeId) YieldFunction bool BadgeService:UserHasBadge(int userId, int badgeId) Event BadgeService.BadgeAwarded(string message) [RobloxScriptSecurity]
How do I use this to find out how to use the service? |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2013 07:47 PM |
| THANK YOU! That next link is so much better. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:47 PM |
Some quick tips:
No security label means that the member can be used by all forms of executed code. RobloxPlaceSecurity means that the member can only be used in Script and LocalScript objects running in a ROBLOX place. LocalUserSecurity means that the member can only be used in the command bar, plugins, or locally executed code (`Execute Script...`). WritePlayerSecurity is some weird psycho crap dont worry about it RobloxScriptSecurity means that the member can only be used in CoreScripts and StarterScripts. RobloxSecurity means that the member can only be used in well-protected code hosted directly on the ROBLOX site as a file.
in order of secured-ness: RobloxSecurity < RobloxScriptSecurity < WritePlayerSecurity < LocalUserSecurity < RobloxPlaceSecurity < (none)
|
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 30 Aug 2013 07:53 PM |
Hmm.... maybe those arrows were pointing the wrong way.
Awwww whatever. IM GOING TO REPOST SO THAT I CAN FORMAT :D
---
Some quick tips:
* *No security label* means that the member can be used by all forms of executed code. * **RobloxPlaceSecurity** means that the member can only be used in Script and LocalScript objects running in a ROBLOX place. * **LocalUserSecurity** means that the member can only be used in the command bar, plugins, or locally executed code `(Execute Script...)`. * **WritePlayerSecurity** is WritePlayerSecurity. what do you think i know? no i dont know stop asking k * **RobloxScriptSecurity** means that the member can only be used in CoreScripts and StarterScripts. * **RobloxSecurity** means that the member can only be used in well-protected code hosted directly on the ROBLOX site as a file.
[Anaminus has a page on the wiki which shows a bunch of cool stuff](http://wiki.roblox.com/index.php/User:Anaminus/Identity) |
|
|
| Report Abuse |
|
|