50 lines
2.1 KiB
Plaintext
50 lines
2.1 KiB
Plaintext
print "[Mercury]: Loaded Studio corescript"
|
|
-- Setup studio cmd bar & load core scripts
|
|
|
|
with game\GetService "InsertService"
|
|
try
|
|
\SetFreeModelUrl "http://banland.xyz/game/tools/insertasset?type=fm&q=%s&pg=%d&rs=%d"
|
|
try
|
|
\SetFreeDecalUrl "http://banland.xyz/game/tools/insertasset?type=fd&q=%s&pg=%d&rs=%d"
|
|
|
|
game\GetService"ScriptInformationProvider"\SetAssetUrl "http://banland.xyz/Asset/"
|
|
\SetBaseSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
|
\SetUserSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
|
\SetCollectionUrl "http://banland.xyz/game/tools/insertasset?sid=%d"
|
|
\SetAssetUrl "http://banland.xyz/Asset/?id=%d"
|
|
\SetAssetVersionUrl "http://banland.xyz/asset/?assetversionid=%d"
|
|
\SetTrustLevel 0
|
|
|
|
with game\GetService "SocialService"
|
|
try
|
|
\SetFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
|
try
|
|
\SetBestFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
|
try
|
|
\SetGroupUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
|
try
|
|
\SetGroupRankUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
|
try
|
|
\SetGroupRoleUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
|
|
|
try
|
|
game\GetService"GamePassService"\SetPlayerHasPassUrl "http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
|
|
|
with game\GetService "MarketplaceService"
|
|
try
|
|
\SetProductInfoUrl "https://banland.xyz/marketplace/productinfo?assetId=%d"
|
|
try
|
|
\SetDevProductInfoUrl "https://banland.xyz/marketplace/productDetails?productId=%d"
|
|
try
|
|
\SetPlayerOwnsAssetUrl "https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
|
|
|
|
|
result, _ = try
|
|
game\GetService"ScriptContext"\AddStarterScript 37801172
|
|
|
|
if not result
|
|
try
|
|
game\GetService"ScriptContext"\AddCoreScript 37801172, game\GetService "ScriptContext", "StarterScript"
|
|
|
|
|