Compress named corescripts with retain-lines darklua generator
This commit is contained in:
parent
05ab4b836c
commit
443ca3f3fe
14
compile.sh
14
compile.sh
|
|
@ -1 +1,13 @@
|
||||||
yue ./yue && darklua process ./yue ./processed && rm -f ./yue/*.lua
|
yue ./yue
|
||||||
|
|
||||||
|
echo "Processing corescripts..."
|
||||||
|
for file in yue/[0-9]*.lua; do
|
||||||
|
darklua process -c dense.json5 $file processed/$(basename "$file")
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Processing other corescripts..."
|
||||||
|
for file in yue/[a-z]*.lua; do
|
||||||
|
darklua process -c lines.json5 $file processed/$(basename "$file")
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f ./yue/*.lua
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@
|
||||||
rule: "rename_variables",
|
rule: "rename_variables",
|
||||||
globals: ["$default", "$roblox"],
|
globals: ["$default", "$roblox"],
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
rules: [
|
||||||
|
"remove_spaces",
|
||||||
|
"group_local_assignment",
|
||||||
|
"compute_expression",
|
||||||
|
"remove_unused_if_branch",
|
||||||
|
"remove_unused_while",
|
||||||
|
"remove_empty_do",
|
||||||
|
// "remove_method_definition",
|
||||||
|
"remove_function_call_parens",
|
||||||
|
"filter_after_early_return",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,163 +1,163 @@
|
||||||
print("[Mercury]: Loaded Host corescript")
|
print"[Mercury]: Loaded Host corescript"
|
||||||
local placeId, sleeptime, access, url, killID, deathID, timeout, injectScriptAssetID, servicesUrl, libraryRegistrationScriptAssetID
|
local placeId,sleeptime,access,url,killID,deathID,timeout,injectScriptAssetID,servicesUrl,libraryRegistrationScriptAssetID
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("ScriptContext"):AddStarterScript(injectScriptAssetID)
|
return game:GetService"ScriptContext":AddStarterScript(injectScriptAssetID)
|
||||||
end)
|
end)
|
||||||
game:GetService("RunService"):Run()
|
game:GetService"RunService":Run()
|
||||||
local waitForChild
|
local waitForChild
|
||||||
waitForChild = function(parent, childName)
|
waitForChild=function(parent,childName)
|
||||||
while true do
|
while true do
|
||||||
local child = parent:findFirstChild(childName)
|
local child=parent:findFirstChild(childName)
|
||||||
if child then
|
if child then
|
||||||
return child
|
return child
|
||||||
end
|
end
|
||||||
parent.ChildAdded:wait()
|
parent.ChildAdded:wait()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local getKillerOfHumanoidIfStillInGame
|
local getKillerOfHumanoidIfStillInGame
|
||||||
getKillerOfHumanoidIfStillInGame = function(humanoid)
|
getKillerOfHumanoidIfStillInGame=function(humanoid)
|
||||||
local tag = humanoid:findFirstChild("creator")
|
local tag=humanoid:findFirstChild"creator"
|
||||||
if tag then
|
if tag then
|
||||||
local killer = tag.Value
|
local killer=tag.Value
|
||||||
if killer.Parent then
|
if killer.Parent then
|
||||||
return killer
|
return killer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local onDied
|
local onDied
|
||||||
onDied = function(victim, humanoid)
|
onDied=function(victim,humanoid)
|
||||||
local killer = getKillerOfHumanoidIfStillInGame(humanoid)
|
local killer,
|
||||||
local victorId = 0
|
victorId=getKillerOfHumanoidIfStillInGame(humanoid),0
|
||||||
if killer then
|
if killer then
|
||||||
victorId = killer.userId
|
victorId=killer.userId
|
||||||
print("STAT: kill by " .. tostring(victorId) .. " of " .. tostring(victim.userId))
|
print("STAT: kill by "..tostring(victorId).." of "..tostring(victim.userId))
|
||||||
game:HttpGet(tostring(url) .. "/Game/Knockouts.ashx?UserID=" .. tostring(victorId) .. "&" .. tostring(access))
|
game:HttpGet(tostring(url).."/Game/Knockouts.ashx?UserID="..tostring(victorId).."&"..tostring(access))
|
||||||
end
|
end
|
||||||
print("STAT: death of " .. tostring(victim.userId) .. " by " .. tostring(victorId))
|
print("STAT: death of "..tostring(victim.userId).." by "..tostring(victorId))
|
||||||
return game:HttpGet(tostring(url) .. "/Game/Wipeouts.ashx?UserID=" .. tostring(victim.userId) .. "&" .. tostring(access))
|
return game:HttpGet(tostring(url).."/Game/Wipeouts.ashx?UserID="..tostring(victim.userId).."&"..tostring(access))
|
||||||
end
|
end
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Network.UseInstancePacketCache = true
|
settings().Network.UseInstancePacketCache=true
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Network.UsePhysicsPacketCache = true
|
settings().Network.UsePhysicsPacketCache=true
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError
|
settings()["Task Scheduler"].PriorityMethod=Enum.PriorityMethod.AccumulatedError
|
||||||
end)
|
end)
|
||||||
settings().Network.PhysicsSend = Enum.PhysicsSendMethod.ErrorComputation2
|
settings().Network.PhysicsSend=Enum.PhysicsSendMethod.ErrorComputation2
|
||||||
settings().Network.ExperimentalPhysicsEnabled = true
|
settings().Network.ExperimentalPhysicsEnabled=true
|
||||||
settings().Network.WaitingForCharacterLogRate = 100
|
settings().Network.WaitingForCharacterLogRate=100
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return settings().Diagnostics:LegacyScriptMode()
|
return settings().Diagnostics:LegacyScriptMode()
|
||||||
end)
|
end)
|
||||||
url = "_BASE_URL"
|
url="_BASE_URL"
|
||||||
local scriptContext = game:GetService("ScriptContext")
|
local scriptContext=game:GetService"ScriptContext"
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return scriptContext:AddStarterScript(libraryRegistrationScriptAssetID)
|
return scriptContext:AddStarterScript(libraryRegistrationScriptAssetID)
|
||||||
end)
|
end)
|
||||||
scriptContext.ScriptsDisabled = true
|
scriptContext.ScriptsDisabled=true
|
||||||
game:GetService("ChangeHistoryService"):SetEnabled(false)
|
game:GetService"ChangeHistoryService":SetEnabled(false)
|
||||||
local ns = game:GetService("NetworkServer")
|
local ns=game:GetService"NetworkServer"
|
||||||
if (url ~= nil) then
|
if(url~=nil)then
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("Players"):SetAbuseReportUrl(tostring(url) .. "/Report/Games.ashx")
|
return game:GetService"Players":SetAbuseReportUrl(tostring(url).."/Report/Games.ashx")
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("ScriptInformationProvider"):SetAssetUrl(tostring(url) .. "/Asset/")
|
return game:GetService"ScriptInformationProvider":SetAssetUrl(tostring(url).."/Asset/")
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("ContentProvider"):SetBaseUrl(tostring(url) .. "/")
|
return game:GetService"ContentProvider":SetBaseUrl(tostring(url).."/")
|
||||||
end)
|
end)
|
||||||
if (access ~= nil) then
|
if(access~=nil)then
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("BadgeService")
|
local _with_0=game:GetService"BadgeService"
|
||||||
_with_0:SetAwardBadgeUrl(tostring(url) .. "/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&" .. tostring(access))
|
_with_0:SetAwardBadgeUrl(tostring(url).."/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&"..tostring(access))
|
||||||
_with_0:SetHasBadgeUrl(tostring(url) .. "/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&" .. tostring(access))
|
_with_0:SetHasBadgeUrl(tostring(url).."/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&"..tostring(access))
|
||||||
_with_0:SetIsBadgeDisabledUrl(tostring(url) .. "/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&" .. tostring(access))
|
_with_0:SetIsBadgeDisabledUrl(tostring(url).."/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&"..tostring(access))
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("FriendService")
|
local _with_0=game:GetService"FriendService"
|
||||||
_with_0:SetMakeFriendUrl(tostring(servicesUrl) .. "/Friend/CreateFriend?firstUserId=%d&secondUserId=%d&" .. tostring(access))
|
_with_0:SetMakeFriendUrl(tostring(servicesUrl).."/Friend/CreateFriend?firstUserId=%d&secondUserId=%d&"..tostring(access))
|
||||||
_with_0:SetBreakFriendUrl(tostring(servicesUrl) .. "/Friend/BreakFriend?firstUserId=%d&secondUserId=%d&" .. tostring(access))
|
_with_0:SetBreakFriendUrl(tostring(servicesUrl).."/Friend/BreakFriend?firstUserId=%d&secondUserId=%d&"..tostring(access))
|
||||||
_with_0:SetGetFriendsUrl(tostring(servicesUrl) .. "/Friend/AreFriends?userId=%d&" .. tostring(access))
|
_with_0:SetGetFriendsUrl(tostring(servicesUrl).."/Friend/AreFriends?userId=%d&"..tostring(access))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
game:GetService("BadgeService"):SetIsBadgeLegalUrl("")
|
game:GetService"BadgeService":SetIsBadgeLegalUrl""
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("InsertService")
|
local _with_0=game:GetService"InsertService"
|
||||||
_with_0:SetBaseSetsUrl(tostring(url) .. "/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
_with_0:SetBaseSetsUrl(tostring(url).."/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
||||||
_with_0:SetUserSetsUrl(tostring(url) .. "/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
_with_0:SetUserSetsUrl(tostring(url).."/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
||||||
_with_0:SetCollectionUrl(tostring(url) .. "/Game/Tools/InsertAsset.ashx?sid=%d")
|
_with_0:SetCollectionUrl(tostring(url).."/Game/Tools/InsertAsset.ashx?sid=%d")
|
||||||
_with_0:SetAssetUrl(tostring(url) .. "/Asset/?id=%d")
|
_with_0:SetAssetUrl(tostring(url).."/Asset/?id=%d")
|
||||||
_with_0:SetAssetVersionUrl(tostring(url) .. "/Asset/?assetversionid=%d")
|
_with_0:SetAssetVersionUrl(tostring(url).."/Asset/?assetversionid=%d")
|
||||||
end
|
|
||||||
pcall(function()
|
|
||||||
return loadfile(tostring(url) .. "/Game/LoadPlaceInfo.ashx?PlaceId=" .. tostring(placeId))()
|
|
||||||
end)
|
|
||||||
pcall(function()
|
|
||||||
if access then
|
|
||||||
return loadfile(tostring(url) .. "/Game/PlaceSpecificScript.ashx?PlaceId=" .. tostring(placeId) .. "&" .. tostring(access))()
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("NetworkServer"):SetIsPlayerAuthenticationRequired(true)
|
return loadfile(tostring(url).."/Game/LoadPlaceInfo.ashx?PlaceId="..tostring(placeId))()
|
||||||
end)
|
end)
|
||||||
settings().Diagnostics.LuaRamLimit = 0
|
pcall(function()
|
||||||
if (placeId ~= nil) and (killID ~= nil) and (deathID ~= nil) and (url ~= nil) then
|
if access then
|
||||||
local createDeathMonitor
|
return loadfile(tostring(url).."/Game/PlaceSpecificScript.ashx?PlaceId="..tostring(placeId).."&"..tostring(access))()
|
||||||
createDeathMonitor = function(player)
|
|
||||||
if player.Character then
|
|
||||||
local humanoid = waitForChild(player.Character, "Humanoid")
|
|
||||||
return humanoid.Died:connect(function()
|
|
||||||
return onDied(player, humanoid)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
game:GetService("Players").ChildAdded:connect(function(player)
|
|
||||||
createDeathMonitor(player)
|
|
||||||
return player.Changed:connect(function(property)
|
|
||||||
if property == "Character" then
|
|
||||||
return createDeathMonitor(player)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
game:GetService("Players").PlayerAdded:connect(function(player)
|
|
||||||
print("Player " .. tostring(player.userId) .. " added")
|
|
||||||
if url and access and placeId and player and player.userId then
|
|
||||||
game:HttpGet(tostring(url) .. "/Game/ClientPresence.ashx?action=connect&" .. tostring(access) .. "&PlaceID=" .. tostring(placeId) .. "&UserID=" .. tostring(player.userId))
|
|
||||||
return game:HttpGet(tostring(url) .. "/Game/PlaceVisit.ashx?UserID=" .. tostring(player.userId) .. "&AssociatedPlaceID=" .. tostring(placeId) .. "&" .. tostring(access))
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
game:GetService("Players").PlayerRemoving:connect(function(player)
|
end
|
||||||
print("Player " .. tostring(player.userId) .. " leaving")
|
pcall(function()
|
||||||
if url and access and placeId and player and player.userId then
|
return game:GetService"NetworkServer":SetIsPlayerAuthenticationRequired(true)
|
||||||
return game:HttpGet(tostring(url) .. "/Game/ClientPresence.ashx?action=disconnect&" .. tostring(access) .. "&PlaceID=" .. tostring(placeId) .. "&UserID=" .. tostring(player.userId))
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
if (placeId ~= nil) and (url ~= nil) then
|
settings().Diagnostics.LuaRamLimit=0
|
||||||
wait()
|
if(placeId~=nil)and(killID~=nil)and(deathID~=nil)and(url~=nil)then
|
||||||
game:Load(tostring(url) .. "/asset/?id=" .. tostring(placeId))
|
local createDeathMonitor
|
||||||
|
createDeathMonitor=function(player)
|
||||||
|
if player.Character then
|
||||||
|
local humanoid=waitForChild(player.Character,"Humanoid")
|
||||||
|
return humanoid.Died:connect(function()
|
||||||
|
return onDied(player,humanoid)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
game:GetService"Players".ChildAdded:connect(function(player)
|
||||||
|
createDeathMonitor(player)
|
||||||
|
return player.Changed:connect(function(property)
|
||||||
|
if property=="Character"then
|
||||||
|
return createDeathMonitor(player)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
game:GetService"Players".PlayerAdded:connect(function(player)
|
||||||
|
print("Player "..tostring(player.userId).." added")
|
||||||
|
if url and access and placeId and player and player.userId then
|
||||||
|
game:HttpGet(tostring(url).."/Game/ClientPresence.ashx?action=connect&"..tostring(access).."&PlaceID="..tostring(placeId).."&UserID="..tostring(player.userId))
|
||||||
|
return game:HttpGet(tostring(url).."/Game/PlaceVisit.ashx?UserID="..tostring(player.userId).."&AssociatedPlaceID="..tostring(placeId).."&"..tostring(access))
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
game:GetService"Players".PlayerRemoving:connect(function(player)
|
||||||
|
print("Player "..tostring(player.userId).." leaving")
|
||||||
|
if url and access and placeId and player and player.userId then
|
||||||
|
return game:HttpGet(tostring(url).."/Game/ClientPresence.ashx?action=disconnect&"..tostring(access).."&PlaceID="..tostring(placeId).."&UserID="..tostring(player.userId))
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
if(placeId~=nil)and(url~=nil)then
|
||||||
|
wait()
|
||||||
|
game:Load(tostring(url).."/asset/?id="..tostring(placeId))
|
||||||
end
|
end
|
||||||
if _MAP_LOCATION_EXISTS then
|
if _MAP_LOCATION_EXISTS then
|
||||||
wait()
|
wait()
|
||||||
game:Load("_MAP_LOCATION")
|
game:Load"_MAP_LOCATION"
|
||||||
end
|
end
|
||||||
ns:Start(_SERVER_PORT, sleeptime)
|
ns:Start(_SERVER_PORT,sleeptime)
|
||||||
game:GetService("Visit"):SetPing("_SERVER_PRESENCE_URL", 30)
|
game:GetService"Visit":SetPing("_SERVER_PRESENCE_URL",30)
|
||||||
if timeout then
|
if timeout then
|
||||||
scriptContext:SetTimeout(timeout)
|
scriptContext:SetTimeout(timeout)
|
||||||
end
|
end
|
||||||
scriptContext.ScriptsDisabled = false
|
scriptContext.ScriptsDisabled=false
|
||||||
local reset = ";mc"
|
local reset=";mc"
|
||||||
return game.Players.PlayerAdded:connect(function(player)
|
return game.Players.PlayerAdded:connect(function(player)
|
||||||
return player.Chatted:connect(function(msg)
|
return player.Chatted:connect(function(msg)
|
||||||
if msg == reset then
|
if msg==reset then
|
||||||
if player.Character then
|
if player.Character then
|
||||||
player.Character.Humanoid.Health = 0
|
player.Character.Humanoid.Health=0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
|
||||||
end)
|
end)
|
||||||
|
end)
|
||||||
|
|
@ -1,232 +1,232 @@
|
||||||
print("[Mercury]: Loaded Join corescript");
|
print"[Mercury]: Loaded Join corescript"-- MultiplayerSharedScript.lua inserted here ------ Prepended to Join.lua --
|
||||||
-- MultiplayerSharedScript.lua inserted here ------ Prepended to Join.lua --
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetPlaceID(_PLACE_ID, false)
|
return game:SetPlaceID(_PLACE_ID,false)
|
||||||
end)
|
end)
|
||||||
local isTouchDevice = Game:GetService("UserInputService").TouchEnabled
|
local isTouchDevice=Game:GetService"UserInputService".TouchEnabled
|
||||||
settings()["Game Options"].CollisionSoundEnabled = true
|
settings()["Game Options"].CollisionSoundEnabled=true
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Rendering.EnableFRM = true
|
settings().Rendering.EnableFRM=true
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Physics.Is30FpsThrottleEnabled = false
|
settings().Physics.Is30FpsThrottleEnabled=false
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError
|
settings()["Task Scheduler"].PriorityMethod=Enum.PriorityMethod.AccumulatedError
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.DefaultAuto
|
settings().Physics.PhysicsEnvironmentalThrottle=Enum.EnviromentalPhysicsThrottle.DefaultAuto
|
||||||
end)
|
end)
|
||||||
local threadSleepTime = ...
|
local threadSleepTime=...
|
||||||
if threadSleepTime == nil then
|
if threadSleepTime==nil then
|
||||||
threadSleepTime = 15
|
threadSleepTime=15
|
||||||
end
|
end
|
||||||
local test = _IS_STUDIO_JOIN
|
local test=_IS_STUDIO_JOIN
|
||||||
print("! Joining game '_PLACE_ID' place _PLACE_ID at _SERVER_ADDRESS")
|
print"! Joining game '_PLACE_ID' place _PLACE_ID at _SERVER_ADDRESS"
|
||||||
game:GetService("ChangeHistoryService"):SetEnabled(false)
|
game:GetService"ChangeHistoryService":SetEnabled(false)
|
||||||
game:GetService("ContentProvider"):SetThreadPool(16)
|
game:GetService"ContentProvider":SetThreadPool(16)
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("InsertService")
|
local _with_0=game:GetService"InsertService"
|
||||||
_with_0:SetBaseSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
_with_0:SetBaseSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base"
|
||||||
_with_0:SetUserSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
_with_0:SetUserSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d"
|
||||||
_with_0:SetCollectionUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d")
|
_with_0:SetCollectionUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d"
|
||||||
_with_0:SetAssetUrl("http://banland.xyz/Asset/?id=%d")
|
_with_0:SetAssetUrl"http://banland.xyz/Asset/?id=%d"
|
||||||
_with_0:SetAssetVersionUrl("http://www.roblox.com/Asset/?assetversionid=%d")
|
_with_0:SetAssetVersionUrl"http://www.roblox.com/Asset/?assetversionid=%d"
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("SocialService")
|
local _with_0=game:GetService"SocialService"
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d")
|
return _with_0:SetFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
|
||||||
pcall(function()
|
|
||||||
return _with_0:SetBestFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d")
|
|
||||||
end)
|
|
||||||
pcall(function()
|
|
||||||
return _with_0:SetGroupUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d")
|
|
||||||
end)
|
|
||||||
pcall(function()
|
|
||||||
return _with_0:SetGroupRankUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d")
|
|
||||||
end)
|
|
||||||
pcall(function()
|
|
||||||
return _with_0:SetGroupRoleUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d")
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
pcall(function()
|
|
||||||
return game:GetService("GamePassService"):SetPlayerHasPassUrl("http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d")
|
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("MarketplaceService"):SetProductInfoUrl("https://banland.xyz/marketplace/productinfo?assetId=%d")
|
return _with_0:SetBestFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("MarketplaceService"):SetPlayerOwnsAssetUrl("https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d")
|
return _with_0:SetGroupUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetCreatorID(_CREATOR_ID, Enum.CreatorType.User)
|
return _with_0:SetGroupRankUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble)
|
return _with_0:SetGroupRoleUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
local waitingForCharacter = false
|
end
|
||||||
pcall(function()
|
pcall(function()
|
||||||
if settings().Network.MtuOverride == 0 then
|
return game:GetService"GamePassService":SetPlayerHasPassUrl"http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
||||||
settings().Network.MtuOverride = 1400
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
client = game:GetService("NetworkClient")
|
|
||||||
visit = game:GetService("Visit")
|
|
||||||
setMessage = function(message)
|
|
||||||
return game:SetMessage((function()
|
|
||||||
if not false then
|
|
||||||
return message
|
|
||||||
else
|
|
||||||
return "Teleporting ..."
|
|
||||||
end
|
|
||||||
end)())
|
|
||||||
end
|
|
||||||
showErrorWindow = function(message, _, _)
|
|
||||||
return game:SetMessage(message)
|
|
||||||
end
|
|
||||||
reportError = function(err, message)
|
|
||||||
print("***ERROR*** " .. tostring(err))
|
|
||||||
if not test then
|
|
||||||
visit:SetUploadUrl("")
|
|
||||||
end
|
|
||||||
client:disconnect()
|
|
||||||
wait(4)
|
|
||||||
return showErrorWindow("Error: " .. tostring(err), message, "Other")
|
|
||||||
end
|
|
||||||
onDisconnection = function(_, lostConnection)
|
|
||||||
if lostConnection then
|
|
||||||
return showErrorWindow("You have lost the connection to the game", "LostConnection", "LostConnection")
|
|
||||||
else
|
|
||||||
return showErrorWindow("This game has shut down", "Kick", "Kick")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
requestCharacter = function(replicator)
|
|
||||||
local connection
|
|
||||||
connection = player.Changed:connect(function(property)
|
|
||||||
if property == "Character" then
|
|
||||||
game:ClearMessage()
|
|
||||||
waitingForCharacter = false
|
|
||||||
return connection:disconnect()
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
setMessage("Requesting character")
|
|
||||||
local success, err
|
|
||||||
success, err = pcall(function()
|
|
||||||
replicator:RequestCharacter()
|
|
||||||
setMessage("Waiting for character")
|
|
||||||
waitingForCharacter = true
|
|
||||||
end)
|
|
||||||
if not success then
|
|
||||||
reportError(err, "W4C")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
onConnectionAccepted = function(url, replicator)
|
|
||||||
local connectResolved = true
|
|
||||||
local waitingForMarker = true
|
|
||||||
local success, err
|
|
||||||
success, err = pcall(function()
|
|
||||||
if not test then
|
|
||||||
visit:SetPing("_PING_URL", 30)
|
|
||||||
end
|
|
||||||
if not false then
|
|
||||||
game:SetMessageBrickCount()
|
|
||||||
else
|
|
||||||
setMessage("Teleporting ...")
|
|
||||||
end
|
|
||||||
replicator.Disconnection:connect(onDisconnection)
|
|
||||||
local marker = replicator:SendMarker()
|
|
||||||
return marker.Received:connect(function()
|
|
||||||
waitingForMarker = false
|
|
||||||
return requestCharacter(replicator)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
if not success then
|
|
||||||
reportError(err, "ConnectionAccepted")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
while waitingForMarker do
|
|
||||||
workspace:ZoomToExtents()
|
|
||||||
wait(0.5)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
onConnectionFailed = function(_, err)
|
|
||||||
return showErrorWindow("Failed to connect to the Game. (ID=" .. tostring(err) .. ")", "ID" .. tostring(err), "Other")
|
|
||||||
end
|
|
||||||
onConnectionRejected = function()
|
|
||||||
connectionFailed:disconnect()
|
|
||||||
return showErrorWindow("This game is not available. Please try another", "WrongVersion", "WrongVersion")
|
|
||||||
end
|
|
||||||
local idled = false
|
|
||||||
onPlayerIdled = function(time)
|
|
||||||
if time > 20 * 60 then
|
|
||||||
showErrorWindow(string.format("You were disconnected for being idle %d minutes", time / 60), "Idle", "Idle")
|
|
||||||
client:disconnect()
|
|
||||||
if not idled then
|
|
||||||
idled = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return settings().Diagnostics:LegacyScriptMode()
|
return game:GetService"MarketplaceService":SetProductInfoUrl"https://banland.xyz/marketplace/productinfo?assetId=%d"
|
||||||
end)
|
end)
|
||||||
local success, err = pcall(function()
|
|
||||||
game:SetRemoteBuildMode(true)
|
|
||||||
setMessage("Connecting to Server")
|
|
||||||
client.ConnectionAccepted:connect(onConnectionAccepted)
|
|
||||||
client.ConnectionRejected:connect(onConnectionRejected)
|
|
||||||
connectionFailed = client.ConnectionFailed:connect(onConnectionFailed)
|
|
||||||
client.Ticket = ""
|
|
||||||
playerConnectSucces, player = pcall(function()
|
|
||||||
return client:PlayerConnect(_USER_ID, "_SERVER_ADDRESS", _SERVER_PORT, 0, threadSleepTime)
|
|
||||||
end)
|
|
||||||
if not playerConnectSucces then
|
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(_USER_ID)
|
|
||||||
client:Connect("_SERVER_ADDRESS", _SERVER_PORT, 0, threadSleepTime)
|
|
||||||
end
|
|
||||||
if not test then
|
|
||||||
delay(300, function()
|
|
||||||
while false do
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:HttpPost("https://banland.xyz/auth/renew", "renew")
|
return game:GetService"MarketplaceService":SetPlayerOwnsAssetUrl"https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
||||||
end)
|
end)
|
||||||
wait(300)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
do
|
|
||||||
local _with_0 = player
|
|
||||||
_with_0:SetSuperSafeChat(false)
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetUnder13(false)
|
return game:SetCreatorID(_CREATOR_ID,Enum.CreatorType.User)
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetMembershipType(Enum.MembershipType._MEMBERSHIP_TYPE)
|
return game:GetService"Players":SetChatStyle(Enum.ChatStyle.ClassicAndBubble)
|
||||||
end)
|
end)
|
||||||
|
local waitingForCharacter=false
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetAccountAge(1)
|
if settings().Network.MtuOverride==0 then
|
||||||
end)
|
settings().Network.MtuOverride=1400
|
||||||
end
|
end
|
||||||
player.Idled:connect(onPlayerIdled)
|
end)
|
||||||
pcall(function()
|
client=game:GetService"NetworkClient"
|
||||||
player.Name = [========[_USER_NAME]========]
|
visit=game:GetService"Visit"
|
||||||
end)
|
setMessage=function(message)
|
||||||
player.CharacterAppearance = "_CHAR_APPEARANCE"
|
return game:SetMessage((function()do
|
||||||
if not test then
|
|
||||||
return visit:SetUploadUrl("")
|
return message end
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
end)())
|
||||||
|
end
|
||||||
|
showErrorWindow=function(message,_,_)
|
||||||
|
return game:SetMessage(message)
|
||||||
|
end
|
||||||
|
reportError=function(err,message)
|
||||||
|
print("***ERROR*** "..tostring(err))
|
||||||
|
if not test then
|
||||||
|
visit:SetUploadUrl""
|
||||||
|
end
|
||||||
|
client:disconnect()
|
||||||
|
wait(4)
|
||||||
|
return showErrorWindow("Error: "..tostring(err),message,"Other")
|
||||||
|
end
|
||||||
|
onDisconnection=function(_,lostConnection)
|
||||||
|
if lostConnection then
|
||||||
|
return showErrorWindow("You have lost the connection to the game","LostConnection","LostConnection")
|
||||||
|
else
|
||||||
|
return showErrorWindow("This game has shut down","Kick","Kick")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
requestCharacter=function(replicator)
|
||||||
|
local connection
|
||||||
|
connection=player.Changed:connect(function(property)
|
||||||
|
if property=="Character"then
|
||||||
|
game:ClearMessage()
|
||||||
|
waitingForCharacter=false
|
||||||
|
return connection:disconnect()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
setMessage"Requesting character"
|
||||||
|
local success,err
|
||||||
|
success,err=pcall(function()
|
||||||
|
replicator:RequestCharacter()
|
||||||
|
setMessage"Waiting for character"
|
||||||
|
waitingForCharacter=true
|
||||||
end)
|
end)
|
||||||
if not success then
|
if not success then
|
||||||
reportError(err, "CreatePlayer")
|
reportError(err,"W4C")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
onConnectionAccepted=function(url,replicator)
|
||||||
|
local connectResolved,
|
||||||
|
waitingForMarker,
|
||||||
|
success,err=true,true,nil,nil
|
||||||
|
success,err=pcall(function()
|
||||||
if not test then
|
if not test then
|
||||||
loadfile(("")("", -1, 0))
|
visit:SetPing("_PING_URL",30)
|
||||||
|
end do
|
||||||
|
|
||||||
|
game:SetMessageBrickCount()end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
replicator.Disconnection:connect(onDisconnection)
|
||||||
|
local marker=replicator:SendMarker()
|
||||||
|
return marker.Received:connect(function()
|
||||||
|
waitingForMarker=false
|
||||||
|
return requestCharacter(replicator)
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
if not success then
|
||||||
|
reportError(err,"ConnectionAccepted")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
while waitingForMarker do
|
||||||
|
workspace:ZoomToExtents()
|
||||||
|
wait(0.5)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
onConnectionFailed=function(_,err)
|
||||||
|
return showErrorWindow("Failed to connect to the Game. (ID="..tostring(err)..")","ID"..tostring(err),"Other")
|
||||||
|
end
|
||||||
|
onConnectionRejected=function()
|
||||||
|
connectionFailed:disconnect()
|
||||||
|
return showErrorWindow("This game is not available. Please try another","WrongVersion","WrongVersion")
|
||||||
|
end
|
||||||
|
local idled=false
|
||||||
|
onPlayerIdled=function(time)
|
||||||
|
if time>12E2 then
|
||||||
|
showErrorWindow(string.format("You were disconnected for being idle %d minutes",time/60),"Idle","Idle")
|
||||||
|
client:disconnect()
|
||||||
|
if not idled then
|
||||||
|
idled=true
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetScreenshotInfo("")
|
return settings().Diagnostics:LegacyScriptMode()
|
||||||
|
end)
|
||||||
|
local success,err=pcall(function()
|
||||||
|
game:SetRemoteBuildMode(true)
|
||||||
|
setMessage"Connecting to Server"
|
||||||
|
client.ConnectionAccepted:connect(onConnectionAccepted)
|
||||||
|
client.ConnectionRejected:connect(onConnectionRejected)
|
||||||
|
connectionFailed=client.ConnectionFailed:connect(onConnectionFailed)
|
||||||
|
client.Ticket=""
|
||||||
|
playerConnectSucces,player=pcall(function()
|
||||||
|
return client:PlayerConnect(_USER_ID,"_SERVER_ADDRESS",_SERVER_PORT,0,threadSleepTime)
|
||||||
|
end)
|
||||||
|
if not playerConnectSucces then
|
||||||
|
player=game:GetService"Players":CreateLocalPlayer(_USER_ID)
|
||||||
|
client:Connect("_SERVER_ADDRESS",_SERVER_PORT,0,threadSleepTime)
|
||||||
|
end
|
||||||
|
if not test then
|
||||||
|
delay(300,function()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
do
|
||||||
|
local _with_0=player
|
||||||
|
_with_0:SetSuperSafeChat(false)
|
||||||
|
pcall(function()
|
||||||
|
return _with_0:SetUnder13(false)
|
||||||
|
end)
|
||||||
|
pcall(function()
|
||||||
|
return _with_0:SetMembershipType(Enum.MembershipType._MEMBERSHIP_TYPE)
|
||||||
|
end)
|
||||||
|
pcall(function()
|
||||||
|
return _with_0:SetAccountAge(1)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
player.Idled:connect(onPlayerIdled)
|
||||||
|
pcall(function()
|
||||||
|
player.Name=[========[_USER_NAME]========]
|
||||||
|
end)
|
||||||
|
player.CharacterAppearance="_CHAR_APPEARANCE"
|
||||||
|
if not test then
|
||||||
|
return visit:SetUploadUrl""
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
if not success then
|
||||||
|
reportError(err,"CreatePlayer")
|
||||||
|
end
|
||||||
|
if not test then
|
||||||
|
loadfile(("")("",-1,0))
|
||||||
|
end
|
||||||
|
pcall(function()
|
||||||
|
return game:SetScreenshotInfo""
|
||||||
end)
|
end)
|
||||||
return pcall(function()
|
return pcall(function()
|
||||||
return game:SetVideoInfo('<?xml version="1.0"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"><media:group><media:title type="plain"><![CDATA[ROBLOX Place]]></media:title><media:description type="plain"><![CDATA[ For more games visit http://www.roblox.com]]></media:description><media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category><media:keywords>ROBLOX, video, free game, online virtual world</media:keywords></media:group></entry>')
|
return game:SetVideoInfo'<?xml version="1.0"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"><media:group><media:title type="plain"><![CDATA[ROBLOX Place]]></media:title><media:description type="plain"><![CDATA[ For more games visit http://www.roblox.com]]></media:description><media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category><media:keywords>ROBLOX, video, free game, online virtual world</media:keywords></media:group></entry>'
|
||||||
end)
|
end)
|
||||||
|
|
@ -1,59 +1,59 @@
|
||||||
print("[Mercury]: Loaded Studio corescript")
|
print"[Mercury]: Loaded Studio corescript"
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("InsertService")
|
local _with_0=game:GetService"InsertService"
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetFreeModelUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d")
|
return _with_0:SetFreeModelUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetFreeDecalUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d")
|
return _with_0:SetFreeDecalUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d"
|
||||||
end)
|
end)
|
||||||
game:GetService("ScriptInformationProvider"):SetAssetUrl("http://banland.xyz/Asset/")
|
game:GetService"ScriptInformationProvider":SetAssetUrl"http://banland.xyz/Asset/"
|
||||||
_with_0:SetBaseSetsUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
_with_0:SetBaseSetsUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=10&type=base"
|
||||||
_with_0:SetUserSetsUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
_with_0:SetUserSetsUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d"
|
||||||
_with_0:SetCollectionUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?sid=%d")
|
_with_0:SetCollectionUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?sid=%d"
|
||||||
_with_0:SetAssetUrl("http://banland.xyz/Asset/?id=%d")
|
_with_0:SetAssetUrl"http://banland.xyz/Asset/?id=%d"
|
||||||
_with_0:SetAssetVersionUrl("http://www.roblox.com/Asset/?assetversionid=%d")
|
_with_0:SetAssetVersionUrl"http://www.roblox.com/Asset/?assetversionid=%d"
|
||||||
_with_0:SetTrustLevel(0)
|
_with_0:SetTrustLevel(0)
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("SocialService")
|
local _with_0=game:GetService"SocialService"
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d")
|
return _with_0:SetFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetBestFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d")
|
return _with_0:SetBestFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetGroupUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d")
|
return _with_0:SetGroupUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetGroupRankUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d")
|
return _with_0:SetGroupRankUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetGroupRoleUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d")
|
return _with_0:SetGroupRoleUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("GamePassService"):SetPlayerHasPassUrl("http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d")
|
return game:GetService"GamePassService":SetPlayerHasPassUrl"http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
||||||
end)
|
end)
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("MarketplaceService")
|
local _with_0=game:GetService"MarketplaceService"
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetProductInfoUrl("https://banland.xyz/marketplace/productinfo?assetId=%d")
|
return _with_0:SetProductInfoUrl"https://banland.xyz/marketplace/productinfo?assetId=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetDevProductInfoUrl("https://banland.xyz/marketplace/productDetails?productId=%d")
|
return _with_0:SetDevProductInfoUrl"https://banland.xyz/marketplace/productDetails?productId=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetPlayerOwnsAssetUrl("https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d")
|
return _with_0:SetPlayerOwnsAssetUrl"https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
local result, _
|
local result,_
|
||||||
result, _ = pcall(function()
|
result,_=pcall(function()
|
||||||
return game:GetService("ScriptContext"):AddStarterScript(37801172)
|
return game:GetService"ScriptContext":AddStarterScript(37801172)
|
||||||
end)
|
end)
|
||||||
if not result then
|
if not result then
|
||||||
return pcall(function()
|
return pcall(function()
|
||||||
return game:GetService("ScriptContext"):AddCoreScript(37801172, game:GetService("ScriptContext", "StarterScript"))
|
return game:GetService"ScriptContext":AddCoreScript(37801172,game:GetService("ScriptContext","StarterScript"))
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
@ -1,145 +1,145 @@
|
||||||
print("[Mercury]: Loaded Visit corescript")
|
print"[Mercury]: Loaded Visit corescript"do
|
||||||
if true then
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetPlaceID(_PLACE_ID)
|
return game:SetPlaceID(_PLACE_ID)
|
||||||
end)
|
end)end
|
||||||
end
|
|
||||||
local visit = game:GetService("Visit")
|
local visit,
|
||||||
local message = Instance.new("Message")
|
message=game:GetService"Visit",Instance.new"Message"
|
||||||
message.Parent = workspace
|
message.Parent=workspace
|
||||||
message.archivable = false
|
message.archivable=false
|
||||||
game:GetService("ScriptInformationProvider"):SetAssetUrl("http://banland.xyz/Asset/")
|
game:GetService"ScriptInformationProvider":SetAssetUrl"http://banland.xyz/Asset/"
|
||||||
game:GetService("ContentProvider"):SetThreadPool(16)
|
game:GetService"ContentProvider":SetThreadPool(16)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("InsertService"):SetFreeModelUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d")
|
return game:GetService"InsertService":SetFreeModelUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("InsertService"):SetFreeDecalUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d")
|
return game:GetService"InsertService":SetFreeDecalUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d"
|
||||||
end)
|
end)
|
||||||
settings().Diagnostics:LegacyScriptMode()
|
settings().Diagnostics:LegacyScriptMode()
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("InsertService")
|
local _with_0=game:GetService"InsertService"
|
||||||
_with_0:SetBaseSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
_with_0:SetBaseSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base"
|
||||||
_with_0:SetUserSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
_with_0:SetUserSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d"
|
||||||
_with_0:SetCollectionUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d")
|
_with_0:SetCollectionUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d"
|
||||||
_with_0:SetAssetUrl("http://banland.xyz/Asset/?id=%d")
|
_with_0:SetAssetUrl"http://banland.xyz/Asset/?id=%d"
|
||||||
_with_0:SetAssetVersionUrl("http://www.roblox.com/Asset/?assetversionid=%d")
|
_with_0:SetAssetVersionUrl"http://www.roblox.com/Asset/?assetversionid=%d"
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
local _with_0 = game:GetService("SocialService")
|
local _with_0=game:GetService"SocialService"
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d")
|
return _with_0:SetFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetBestFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d")
|
return _with_0:SetBestFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetGroupUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d")
|
return _with_0:SetGroupUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetGroupRankUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d")
|
return _with_0:SetGroupRankUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return _with_0:SetGroupRoleUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d")
|
return _with_0:SetGroupRoleUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("GamePassService"):SetPlayerHasPassUrl("http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d")
|
return game:GetService"GamePassService":SetPlayerHasPassUrl"http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetCreatorID(0, Enum.CreatorType.User)
|
return game:SetCreatorID(0,Enum.CreatorType.User)
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetScreenshotInfo("")
|
return game:SetScreenshotInfo""
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:SetVideoInfo("")
|
return game:SetVideoInfo""
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings().Rendering.EnableFRM = true
|
settings().Rendering.EnableFRM=true
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError
|
settings()["Task Scheduler"].PriorityMethod=Enum.PriorityMethod.AccumulatedError
|
||||||
end)
|
end)
|
||||||
game:GetService("ChangeHistoryService"):SetEnabled(false)
|
game:GetService"ChangeHistoryService":SetEnabled(false)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("Players"):SetBuildUserPermissionsUrl("http://banland.xyz//Game/BuildActionPermissionCheck.ashx?assetId=0&userId=%d&isSolo=true")
|
return game:GetService"Players":SetBuildUserPermissionsUrl"http://banland.xyz//Game/BuildActionPermissionCheck.ashx?assetId=0&userId=%d&isSolo=true"
|
||||||
end)
|
end)
|
||||||
workspace:SetPhysicsThrottleEnabled(true)
|
workspace:SetPhysicsThrottleEnabled(true)
|
||||||
local addedBuildTools = false
|
local addedBuildTools,
|
||||||
local screenGui = game:GetService("CoreGui"):FindFirstChild("RobloxGui")
|
screenGui,
|
||||||
local doVisit
|
doVisit=false,game:GetService"CoreGui":FindFirstChild"RobloxGui",nil
|
||||||
doVisit = function()
|
doVisit=function()
|
||||||
message.Text = "Loading Game"
|
message.Text="Loading Game"do
|
||||||
if false then
|
|
||||||
game:Load("")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return visit:SetUploadUrl("")
|
return visit:SetUploadUrl""
|
||||||
end)
|
end)end
|
||||||
else
|
|
||||||
pcall(function()
|
message.Text="Running"
|
||||||
return visit:SetUploadUrl("")
|
game:GetService"RunService":Run()
|
||||||
end)
|
message.Text="Creating Player"do
|
||||||
end
|
|
||||||
message.Text = "Running"
|
|
||||||
game:GetService("RunService"):Run()
|
|
||||||
message.Text = "Creating Player"
|
|
||||||
if false then
|
player=game:GetService"Players":CreateLocalPlayer(0)end
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(1)
|
|
||||||
player.Name = [====[Guest _GUEST_NUMBER]====]
|
player.CharacterAppearance=""
|
||||||
else
|
local propExists,
|
||||||
player = game:GetService("Players"):CreateLocalPlayer(0)
|
canAutoLoadChar=false,false
|
||||||
end
|
propExists=pcall(function()
|
||||||
player.CharacterAppearance = ""
|
canAutoLoadChar=game.Players.CharacterAutoLoads
|
||||||
local propExists = false
|
end)
|
||||||
local canAutoLoadChar = false
|
if(propExists and canAutoLoadChar)or not propExists then
|
||||||
propExists = pcall(function()
|
player:LoadCharacter()
|
||||||
canAutoLoadChar = game.Players.CharacterAutoLoads
|
|
||||||
end)
|
|
||||||
if (propExists and canAutoLoadChar) or not propExists then
|
|
||||||
player:LoadCharacter()
|
|
||||||
end
|
|
||||||
message.Text = "Setting GUI"
|
|
||||||
player:SetSuperSafeChat(true)
|
|
||||||
pcall(function()
|
|
||||||
return player:SetMembershipType(Enum.MembershipType.None)
|
|
||||||
end)
|
|
||||||
pcall(function()
|
|
||||||
return player:SetAccountAge(0)
|
|
||||||
end)
|
|
||||||
if false then
|
|
||||||
message.Text = "Setting Ping"
|
|
||||||
visit:SetPing("http://banland.xyz/Game/ClientPresence.ashx?version=old&PlaceID=_PLACE_ID", 300)
|
|
||||||
message.Text = "Sending Stats"
|
|
||||||
return game:HttpGet("")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
local success, err = pcall(doVisit)
|
message.Text="Setting GUI"
|
||||||
if not addedBuildTools then
|
player:SetSuperSafeChat(true)
|
||||||
do
|
|
||||||
local _with_0 = Instance.new("StringValue")
|
|
||||||
_with_0.Name = "PlayerName"
|
|
||||||
_with_0.Value = player.Name
|
|
||||||
_with_0.RobloxLocked = true
|
|
||||||
_with_0.Parent = screenGui
|
|
||||||
end
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
return game:GetService("ScriptContext"):AddCoreScript(59431535, screenGui, "BuildToolsScript")
|
return player:SetMembershipType(Enum.MembershipType.None)
|
||||||
end)
|
end)
|
||||||
addedBuildTools = true
|
pcall(function()
|
||||||
|
return player:SetAccountAge(0)
|
||||||
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
local success,err=pcall(doVisit)
|
||||||
|
if not addedBuildTools then
|
||||||
|
do
|
||||||
|
local _with_0=Instance.new"StringValue"
|
||||||
|
_with_0.Name="PlayerName"
|
||||||
|
_with_0.Value=player.Name
|
||||||
|
_with_0.RobloxLocked=true
|
||||||
|
_with_0.Parent=screenGui
|
||||||
|
end
|
||||||
|
pcall(function()
|
||||||
|
return game:GetService"ScriptContext":AddCoreScript(59431535,screenGui,"BuildToolsScript")
|
||||||
|
end)
|
||||||
|
addedBuildTools=true
|
||||||
end
|
end
|
||||||
if success then
|
if success then
|
||||||
message.Parent = nil
|
message.Parent=nil
|
||||||
else
|
else
|
||||||
print(err)
|
print(err)
|
||||||
if false then
|
|
||||||
pcall(function()
|
|
||||||
return visit:SetUploadUrl("")
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
wait(5)
|
wait(5)
|
||||||
message.Text = "Error on visit: " .. tostring(err)
|
message.Text="Error on visit: "..tostring(err)
|
||||||
if false then
|
|
||||||
return game:HttpPost("http://banland.xyz/Error/Lua.ashx?", "Visit.lua: " .. tostring(err))
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import "macros" as { $ }
|
|
||||||
print "[Mercury]: Loaded Join corescript"
|
print "[Mercury]: Loaded Join corescript"
|
||||||
|
import "macros" as { $ }
|
||||||
|
|
||||||
-- functions --------------------------
|
-- functions --------------------------
|
||||||
-- onPlayerAdded = (player) ->
|
-- onPlayerAdded = (player) ->
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
print "[Mercury]: Loaded Studio corescript"
|
print "[Mercury]: Loaded Studio corescript"
|
||||||
|
|
||||||
-- Setup studio cmd bar & load core scripts
|
-- Setup studio cmd bar & load core scripts
|
||||||
|
|
||||||
with game\GetService "InsertService"
|
with game\GetService "InsertService"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
|
|
||||||
print "[Mercury]: Loaded Visit corescript"
|
print "[Mercury]: Loaded Visit corescript"
|
||||||
|
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
|
||||||
|
|
||||||
if true
|
if true
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue