remove
This commit is contained in:
parent
15941036f3
commit
dbc0eb4fc0
|
|
@ -1,3 +0,0 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIICXQIBAAKBgQDAWrd/TwGJULsVRo06rCpznNmW4zLJK6LwkfTvG3wURFFBj9E9zuaKAOzHVRrHsWKJhq2BxSUze7OClgzgzFLRQHhRQFKn/skLPrV85bFakoK/dnt9h/Jyn2cD2A8Za6q90O3h9FSy9mLvCN07g07IXtauYZfOXvqyqOn4rAeUJQIDAQABAoGBAISbxddZo0iERIW1XtXtLVMI9iUEutVfZPSO2xogi5j5RD97o5gF1H+dhZ8iN9UloDYJiAJn5G6qwCWtxnEPy6NO4lMDgFMQtlpIIW9mafZ7m+AueYJtgO5elLUnFbOA39OcvFUleL9ded42yuB2wfsGdKl85+mHvn8j4zTmT0+9AkEA3H7NBFhIVf3Vj6iLXwPmamhou8T8b+HSXop0krrP/jDw/wHbl0DEJbQv+ypYdoXJo8XS2Hs39z20pCEsUo2/NwJBAN9T5aWXmVnymbdNUCDMjjer2d6Ey9ARyFgB07xHSod+HWlSCES8pcWwZZrP/I4cf2CEiAInfgak0kNNWLOWnYMCQDJEoj7UVaFtHiwDM8r0m6o0pXPxY8+p/wjYrdzpxBNiWv74EHT6Kf2ih7HOJJ7Yv3Cb4AbEiKzQH4evnGgxsp8CQQDRPK+ad/DLn0p5vMvoDv7oFfCoVM8IAMEuA3g3nKutSnGP7bWlgQHnuB9Z7qf3FagZ69HqAspGu0HsoJkMmX61AkAO5wTd+rja0MP7rT5xNVYBALtdYLWowBov4NCN7BVDkd0JzeTjMtDerirvEDuzDBrbyFtKV5rZjZpuotFc+5/t
|
||||
-----END RSA PRIVATE KEY-----
|
||||
|
|
@ -1 +0,0 @@
|
|||
version-000000010
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head>
|
||||
<title>
|
||||
ROBLOX Help
|
||||
</title><link href="/CSS/RobloxOld.css" type="text/css" rel="stylesheet"><link rel="stylesheet" type="text/css"></head>
|
||||
<body>
|
||||
<form name="Form1" method="post" action="morblox.us/Game/Help.aspx" id="Form1">
|
||||
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzMDU5NjU4NjhkZIKJzjfFEOdRA2+w7aT1UMPiON7a">
|
||||
|
||||
<p>Besides using simple blocks, you can insert Things that other people have built
|
||||
into your Place. Use the Insert... menu in the game to browse.</p>
|
||||
<table id="Table1" class="Help">
|
||||
<tbody><tr style="FONT-WEIGHT: bold">
|
||||
<td>Action</td>
|
||||
<td>Primary</td>
|
||||
<td>Alternate</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Move Character</td>
|
||||
<td>Arrow keys</td>
|
||||
<td>ASDW keys</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Move Character (no tool selected)</td>
|
||||
<td>Click location with green disk</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jump</td>
|
||||
<td>Space Bar</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Look up/down/left/right</td>
|
||||
<td>Right-click and drag mouse</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Look side to side</td>
|
||||
<td>Move mouse to the far right or far left
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Zoom in/out and up/down</td>
|
||||
<td>Mouse wheel</td>
|
||||
<td>I (in) and O (out) keys</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Change Tool / Toggle tool on off</td>
|
||||
<td>Number keys 1, 2, 3, ...</td>
|
||||
<td>Click on the tool</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Drop Tool</td>
|
||||
<td>Backspace key</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Drop Hat</td>
|
||||
<td>Equal (=) key</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Regenerate dead or stuck character</td>
|
||||
<td>Character regenerates automatically</td>
|
||||
<td>Exit and then return to the Place</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>First Person Mode</td>
|
||||
<td>Zoom all the way in</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</form>
|
||||
|
||||
|
||||
</body></html>
|
||||
|
|
@ -1,231 +0,0 @@
|
|||
<?php
|
||||
|
||||
header("content-type:text/plain");
|
||||
|
||||
$port = addslashes($_GET["port"]);
|
||||
$rbxl = addslashes($_GET["rbxl"]);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
-- Start Game Script Arguments
|
||||
|
||||
------------------- UTILITY FUNCTIONS --------------------------
|
||||
|
||||
local cdnSuccess = 0
|
||||
local cdnFailure = 0
|
||||
|
||||
function waitForChild(parent, childName)
|
||||
while true do
|
||||
local child = parent:findFirstChild(childName)
|
||||
if child then
|
||||
return child
|
||||
end
|
||||
parent.ChildAdded:wait()
|
||||
end
|
||||
end
|
||||
|
||||
-- returns the player object that killed this humanoid
|
||||
-- returns nil if the killer is no longer in the game
|
||||
function getKillerOfHumanoidIfStillInGame(humanoid)
|
||||
|
||||
-- check for kill tag on humanoid - may be more than one - todo: deal with this
|
||||
local tag = humanoid:findFirstChild("creator")
|
||||
|
||||
-- find player with name on tag
|
||||
if tag then
|
||||
local killer = tag.Value
|
||||
if killer.Parent then -- killer still in game
|
||||
return killer
|
||||
end
|
||||
end
|
||||
|
||||
return nil
|
||||
end
|
||||
-----------------------------------END UTILITY FUNCTIONS -------------------------
|
||||
|
||||
-----------------------------------"CUSTOM" SHARED CODE----------------------------------
|
||||
|
||||
pcall(function() settings().Network.UseInstancePacketCache = true end)
|
||||
pcall(function() settings().Network.UsePhysicsPacketCache = true end)
|
||||
pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError end)
|
||||
|
||||
|
||||
settings().Network.PhysicsSend = Enum.PhysicsSendMethod.TopNErrors
|
||||
settings().Network.ExperimentalPhysicsEnabled = true
|
||||
settings().Network.WaitingForCharacterLogRate = 100
|
||||
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
|
||||
|
||||
-----------------------------------START GAME SHARED SCRIPT------------------------------
|
||||
|
||||
-- establish this peer as the Server
|
||||
local ns = game:GetService("NetworkServer")
|
||||
|
||||
local badgeUrlFlagExists, badgeUrlFlagValue = pcall(function () return settings():GetFFlag("NewBadgeServiceUrlEnabled") end)
|
||||
local newBadgeUrlEnabled = badgeUrlFlagExists and badgeUrlFlagValue
|
||||
if url~=nil then
|
||||
local url = "http://www.morblox.us"
|
||||
|
||||
pcall(function() game:GetService("Players"):SetAbuseReportUrl(url .. "/AbuseReport/InGameChatHandler.ashx") end)
|
||||
pcall(function() game:GetService("ScriptInformationProvider"):SetAssetUrl(url .. "/Asset/") end)
|
||||
pcall(function() game:GetService("ContentProvider"):SetBaseUrl(url .. "/") end)
|
||||
pcall(function() game:GetService("Players"):SetChatFilterUrl(url .. "/Game/ChatFilter.ashx") end)
|
||||
|
||||
if gameCode then
|
||||
game:SetVIPServerId(tostring(gameCode))
|
||||
end
|
||||
|
||||
game:GetService("BadgeService"):SetPlaceId(1818)
|
||||
game:SetPlaceId(1818)
|
||||
game:SetCreatorId(123891239128398123)
|
||||
|
||||
|
||||
if newBadgeUrlEnabled then
|
||||
game:GetService("BadgeService"):SetAwardBadgeUrl(apiProxyUrl .. "/assets/award-badge?userId=%d&badgeId=%d&placeId=%d")
|
||||
end
|
||||
|
||||
if access~=nil then
|
||||
if not newBadgeUrlEnabled then
|
||||
game:GetService("BadgeService"):SetAwardBadgeUrl(url .. "/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&" .. access)
|
||||
end
|
||||
|
||||
game:GetService("BadgeService"):SetHasBadgeUrl(url .. "/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&" .. access)
|
||||
game:GetService("BadgeService"):SetIsBadgeDisabledUrl(url .. "/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&" .. access)
|
||||
|
||||
game:GetService("FriendService"):SetMakeFriendUrl(url .. "/Game/CreateFriend?firstUserId=%d&secondUserId=%d")
|
||||
game:GetService("FriendService"):SetBreakFriendUrl(url .. "/Game/BreakFriend?firstUserId=%d&secondUserId=%d")
|
||||
game:GetService("FriendService"):SetGetFriendsUrl(url .. "/Game/AreFriends?userId=%d")
|
||||
end
|
||||
game:GetService("BadgeService"):SetIsBadgeLegalUrl("")
|
||||
game:GetService("InsertService"):SetBaseSetsUrl(url .. "/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
||||
game:GetService("InsertService"):SetUserSetsUrl(url .. "/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
||||
game:GetService("InsertService"):SetCollectionUrl(url .. "/Game/Tools/InsertAsset.ashx?sid=%d")
|
||||
game:GetService("InsertService"):SetAssetUrl(url .. "/Asset/?id=%d")
|
||||
game:GetService("InsertService"):SetAssetVersionUrl(url .. "/Asset/?assetversionid=%d")
|
||||
|
||||
pcall(function() loadfile(url .. "/Game/LoadPlaceInfo.ashx?PlaceId=" .. placeId)() end)
|
||||
|
||||
pcall(function()
|
||||
if access then
|
||||
loadfile(url .. "/Game/PlaceSpecificScript.ashx?PlaceId=" .. placeId .. "&" .. access)()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
pcall(function() game:GetService("NetworkServer"):SetIsPlayerAuthenticationRequired(true) end)
|
||||
settings().Diagnostics.LuaRamLimit = 0
|
||||
|
||||
|
||||
|
||||
if placeId~=nil and killID~=nil and deathID~=nil and url~=nil then
|
||||
-- listen for the death of a Player
|
||||
function createDeathMonitor(player)
|
||||
-- we don't need to clean up old monitors or connections since the Character will be destroyed soon
|
||||
if player.Character then
|
||||
local humanoid = waitForChild(player.Character, "Humanoid")
|
||||
humanoid.Died:connect(
|
||||
function ()
|
||||
onDied(player, humanoid)
|
||||
end
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
-- listen to all Players' Characters
|
||||
game:GetService("Players").ChildAdded:connect(
|
||||
function (player)
|
||||
createDeathMonitor(player)
|
||||
player.Changed:connect(
|
||||
function (property)
|
||||
if property=="Character" then
|
||||
createDeathMonitor(player)
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
||||
)
|
||||
end
|
||||
|
||||
game:GetService("Players").PlayerAdded:connect(function(player)
|
||||
|
||||
print("Player " .. player.userId .. " added")
|
||||
|
||||
if url and access and placeId and player and player.userId then
|
||||
game:HttpGet(url .. "/Game/ClientPresence.ashx?action=connect&" .. access .. "&PlaceID=" .. placeId .. "&UserID=" .. player.userId)
|
||||
game:HttpPost(url .. "/Game/PlaceVisit.ashx?UserID=" .. player.userId .. "&AssociatedPlaceID=" .. placeId .. "&" .. access, "")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
game:GetService("Players").PlayerRemoving:connect(function(player)
|
||||
print("Player " .. player.userId .. " leaving")
|
||||
|
||||
if url and access and placeId and player and player.userId then
|
||||
game:HttpGet(url .. "/Game/ClientPresence.ashx?action=disconnect&" .. access .. "&PlaceID=" .. placeId .. "&UserID=" .. player.userId)
|
||||
end
|
||||
end)
|
||||
|
||||
-- Now start the connection
|
||||
game:Load("rbxasset://<?php echo $rbxl; ?>")
|
||||
-- fix asset ids
|
||||
local assetPropertyNames = {"Texture", "TextureId", "SoundId", "MeshId", "SkyboxUp", "SkyboxLf", "SkyboxBk", "SkyboxRt", "SkyboxFt", "SkyboxDn", "PantsTemplate", "ShirtTemplate", "Graphic", "Frame", "ImageLabel", "GuiMain", "Image", "LinkedSource", "AnimationId"}
|
||||
local variations = {"http://www%.roblox%.com/asset/%?id=", "http://www%.roblox%.com/asset%?id=", "http://%.roblox%.com/asset/%?id=", "http://%.roblox%.com/asset%?id=", "rbxassetid://", "http://www%.roblox%.com/asset/%?version=1&id=", "http://www%.roblox%.com/Asset/%?id="}
|
||||
|
||||
function GetDescendants(o)
|
||||
local allObjects = {}
|
||||
local function FindChildren(Object)
|
||||
for _,v in pairs(Object:GetChildren()) do
|
||||
table.insert(allObjects,v)
|
||||
FindChildren(v)
|
||||
end
|
||||
end
|
||||
FindChildren(o)
|
||||
return allObjects
|
||||
end
|
||||
|
||||
local replacedProperties = 0--Amount of properties changed
|
||||
local replacedSourceCodes = 0
|
||||
|
||||
for i, v in pairs(GetDescendants(game)) do
|
||||
if v.ClassName == 'Script' or v.ClassName == 'LocalScript' then
|
||||
local SourceCode = v.Source
|
||||
if SourceCode then
|
||||
for _, variation in pairs(variations) do
|
||||
local String, Number = string.gsub(SourceCode, variation, "http://www%.morblox%.us/asset/%?id=")
|
||||
SourceCode = String
|
||||
if Number > 0 then
|
||||
replacedSourceCodes = replacedSourceCodes + Number
|
||||
end
|
||||
end
|
||||
v.Source = SourceCode
|
||||
end
|
||||
end
|
||||
|
||||
for _, property in pairs(assetPropertyNames) do
|
||||
pcall(function()
|
||||
if v[property] and not v:FindFirstChild(property) then --Check for property, make sure we're not getting a child instead of a property
|
||||
assetText = string.lower(v[property])
|
||||
for _, variation in pairs(variations) do
|
||||
v[property], matches = string.gsub(assetText, variation, "http://www%.morblox%.us/asset/%?id=")
|
||||
if matches > 0 then
|
||||
replacedProperties = replacedProperties + 1
|
||||
print("Replaced " .. property .. " asset link for " .. v.Name)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
-- other stuff
|
||||
ns:Start(<?php echo $port; ?>, sleeptime)
|
||||
pcall(function() game.LocalSaveEnabled = true end)
|
||||
|
||||
-- StartGame --
|
||||
Game:GetService("RunService"):Run()
|
||||
<?php
|
||||
$data = ob_get_clean();
|
||||
$signature;
|
||||
$key = file_get_contents("../GameRBLX/PrivKey.pem");
|
||||
openssl_sign($data, $signature, $key, OPENSSL_ALGO_SHA1);
|
||||
echo "" . sprintf("%%%s%%%s", base64_encode($signature), $data);
|
||||
?>
|
||||
|
|
@ -1,264 +0,0 @@
|
|||
<?php
|
||||
|
||||
header("content-type:text/plain");
|
||||
|
||||
/*$username = addslashes($_GET["username"]);
|
||||
$ip = addslashes($_GET["ip"]);
|
||||
$port = addslashes($_GET["port"]);
|
||||
$id = addslashes($_GET["id"]);
|
||||
$app = addslashes($_GET["app"]);*/
|
||||
|
||||
$authorised = 0;
|
||||
|
||||
if (Auth::check()) {
|
||||
$username = addslashes(Auth::user()->name);
|
||||
$authorised = 1;
|
||||
$id = addslashes(Auth::id());
|
||||
$app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=' . addslashes(Auth::id());
|
||||
} else {
|
||||
$randName = mt_rand(1, 9999);
|
||||
$username = "Guest " . $randName;
|
||||
$authorised = 0;
|
||||
$id = mt_rand(1000, 9999);
|
||||
$app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=0';
|
||||
}
|
||||
$ip = addslashes($_GET["ip"]);
|
||||
$port = addslashes($_GET["port"]);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
-- functions --------------------------
|
||||
function onPlayerAdded(player)
|
||||
-- override
|
||||
end
|
||||
|
||||
pcall(function() game:SetPlaceID(-1, false) end)
|
||||
|
||||
local startTime = tick()
|
||||
local connectResolved = false
|
||||
local loadResolved = false
|
||||
local joinResolved = false
|
||||
local playResolved = true
|
||||
local playStartTime = 0
|
||||
|
||||
local cdnSuccess = 0
|
||||
local cdnFailure = 0
|
||||
|
||||
settings()["Game Options"].CollisionSoundEnabled = true
|
||||
pcall(function() settings().Rendering.EnableFRM = true end)
|
||||
pcall(function() settings().Physics.Is30FpsThrottleEnabled = false end)
|
||||
pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError end)
|
||||
pcall(function() settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.DefaultAuto end)
|
||||
|
||||
local threadSleepTime = ...
|
||||
|
||||
if threadSleepTime==nil then
|
||||
threadSleepTime = 15
|
||||
end
|
||||
|
||||
local test = true
|
||||
|
||||
local closeConnection = game.Close:connect(function()
|
||||
if 0 then
|
||||
if not connectResolved then
|
||||
local duration = tick() - startTime;
|
||||
elseif (not loadResolved) or (not joinResolved) then
|
||||
local duration = tick() - startTime;
|
||||
if not loadResolved then
|
||||
loadResolved = true
|
||||
end
|
||||
if not joinResolved then
|
||||
joinResolved = true
|
||||
end
|
||||
elseif not playResolved then
|
||||
playResolved = true
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
game:GetService("ChangeHistoryService"):SetEnabled(false)
|
||||
game:GetService("ContentProvider"):SetThreadPool(16)
|
||||
pcall(function() game:GetService("InsertService"):SetBaseSetsUrl("http://www.morblox.us/Game/Tools/InsertAsset.ashx?nsets=10&type=base") end)
|
||||
pcall(function() game:GetService("InsertService"):SetUserSetsUrl("http://www.morblox.us/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d") end)
|
||||
pcall(function() game:GetService("InsertService"):SetCollectionUrl("http://www.morblox.us/Game/Tools/InsertAsset.ashx?sid=%d") end)
|
||||
pcall(function() game:GetService("InsertService"):SetAssetUrl("http://www.morblox.us/asset/?id=%d") end)
|
||||
pcall(function() game:GetService("InsertService"):SetAssetVersionUrl("http://www.morblox.us/asset/?id=%d") end)
|
||||
|
||||
pcall(function() game:GetService("SocialService"):SetFriendUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetBestFriendUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetGroupUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetGroupRankUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetGroupRoleUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d") end)
|
||||
pcall(function() game:GetService("GamePassService"):SetPlayerHasPassUrl("http://www.morblox.us/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d") end)
|
||||
pcall(function() game:GetService("MarketplaceService"):SetProductInfoUrl("https://api.morblox.us/marketplace/productinfo?assetId=%d") end)
|
||||
pcall(function() game:GetService("MarketplaceService"):SetPlayerOwnsAssetUrl("https://api.morblox.us/ownership/hasasset?userId=%d&assetId=%d") end)
|
||||
pcall(function() game:SetCreatorID(0, Enum.CreatorType.User) end)
|
||||
|
||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
||||
|
||||
local waitingForCharacter = false
|
||||
|
||||
pcall( function()
|
||||
if settings().Network.MtuOverride == 0 then
|
||||
settings().Network.MtuOverride = 1400
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
client = game:GetService("NetworkClient")
|
||||
visit = game:GetService("Visit")
|
||||
|
||||
function setMessage(message)
|
||||
-- todo: animated "..."
|
||||
if not false then
|
||||
game:SetMessage(message)
|
||||
else
|
||||
-- hack, good enought for now
|
||||
game:SetMessage("Teleporting ...")
|
||||
end
|
||||
end
|
||||
|
||||
-- Check if client is not logged in
|
||||
--if "<?php echo $authorised; ?>" == "0" then
|
||||
-- setMessage("You are not logged in. (ID: 400)", "Kick", "Kick")
|
||||
-- error("Not logged in")
|
||||
--end
|
||||
|
||||
function showErrorWindow(message, errorType, errorCategory)
|
||||
game:SetMessage(message)
|
||||
end
|
||||
|
||||
-- called when the client connection closes
|
||||
function onDisconnection(peer, lostConnection)
|
||||
if lostConnection then
|
||||
showErrorWindow("You have lost connection (ID: 200)", "LostConnection", "LostConnection")
|
||||
else
|
||||
showErrorWindow("This game has been shut down (ID: 210)", "Kick", "Kick")
|
||||
end
|
||||
end
|
||||
|
||||
function requestCharacter(replicator)
|
||||
|
||||
-- prepare code for when the Character appears
|
||||
local connection
|
||||
connection = player.Changed:connect(function (property)
|
||||
if property=="Character" then
|
||||
game:ClearMessage()
|
||||
waitingForCharacter = false
|
||||
|
||||
connection:disconnect()
|
||||
|
||||
if 0 then
|
||||
if not joinResolved then
|
||||
local duration = tick() - startTime;
|
||||
joinResolved = true
|
||||
|
||||
playStartTime = tick()
|
||||
playResolved = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
setMessage("Requesting server...")
|
||||
|
||||
local success, err = pcall(function()
|
||||
replicator:RequestCharacter()
|
||||
setMessage("Waiting for server...")
|
||||
waitingForCharacter = true
|
||||
end)
|
||||
end
|
||||
|
||||
function onConnectionAccepted(url, replicator)
|
||||
connectResolved = true
|
||||
|
||||
local waitingForMarker = true
|
||||
|
||||
local success, err = pcall(function()
|
||||
if not test then
|
||||
visit:SetPing("", 300)
|
||||
end
|
||||
|
||||
if not false then
|
||||
game:SetMessageBrickCount()
|
||||
else
|
||||
setMessage("Teleporting ...")
|
||||
end
|
||||
|
||||
replicator.Disconnection:connect(onDisconnection)
|
||||
|
||||
local marker = replicator:SendMarker()
|
||||
|
||||
marker.Received:connect(function()
|
||||
waitingForMarker = false
|
||||
requestCharacter(replicator)
|
||||
end)
|
||||
end)
|
||||
|
||||
if not success then
|
||||
return
|
||||
end
|
||||
|
||||
while waitingForMarker do
|
||||
workspace:ZoomToExtents()
|
||||
wait(0.5)
|
||||
end
|
||||
end
|
||||
|
||||
-- called when the client connection fails
|
||||
function onConnectionFailed(_, error)
|
||||
showErrorWindow("Failed to connect. (ID=" .. error .. ")", "ID" .. error, "Other")
|
||||
end
|
||||
|
||||
-- called when the client connection is rejected
|
||||
function onConnectionRejected()
|
||||
connectionFailed:disconnect()
|
||||
showErrorWindow("Your connection has been rejected. (ID: 300)", "WrongVersion", "WrongVersion")
|
||||
end
|
||||
|
||||
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
|
||||
local success, err = pcall(function()
|
||||
|
||||
game:SetRemoteBuildMode(true)
|
||||
|
||||
setMessage("Joining <?php echo $ip; ?>:<?php echo $port; ?>")
|
||||
client.ConnectionAccepted:connect(onConnectionAccepted)
|
||||
client.ConnectionRejected:connect(onConnectionRejected)
|
||||
connectionFailed = client.ConnectionFailed:connect(onConnectionFailed)
|
||||
client.Ticket = ""
|
||||
|
||||
playerConnectSucces, player = pcall(function() return client:PlayerConnect(<?php echo $id; ?>, "<?php echo $ip; ?>", <?php echo $port; ?>, 0, threadSleepTime) end)
|
||||
|
||||
if "<?php echo $authorised; ?>" == "0" then
|
||||
-- guest
|
||||
player:SetSuperSafeChat(true)
|
||||
pcall(function() player:SetUnder13(true) end)
|
||||
pcall(function() player:SetMembershipType(Enum.MembershipType.None) end)
|
||||
pcall(function() player:SetAccountAge(0) end)
|
||||
else
|
||||
-- user
|
||||
player:SetSuperSafeChat(false)
|
||||
pcall(function() player:SetUnder13(false) end)
|
||||
pcall(function() player:SetMembershipType(Enum.MembershipType.None) end)
|
||||
pcall(function() player:SetAccountAge(365) end)
|
||||
end
|
||||
|
||||
player.Idled:connect(onPlayerIdled)
|
||||
|
||||
-- Overriden
|
||||
onPlayerAdded(player)
|
||||
|
||||
player.CharacterAppearance = "<?php echo $app; ?>"
|
||||
if not test then visit:SetUploadUrl("")end
|
||||
player.Name = "<?php echo $username; ?>"
|
||||
end)
|
||||
|
||||
pcall(function() game:SetScreenshotInfo("") end)
|
||||
<?php
|
||||
$data = ob_get_clean();
|
||||
$signature;
|
||||
$key = file_get_contents(asset('GameRBLX/PrivKey.pem'));
|
||||
openssl_sign($data, $signature, $key, OPENSSL_ALGO_SHA1);
|
||||
echo "" . sprintf("%%%s%%%s", base64_encode($signature), $data);
|
||||
?>
|
||||
|
|
@ -1,236 +0,0 @@
|
|||
<?php
|
||||
// OLD JOIN SCRIPT DO NOT USE //
|
||||
header("content-type:text/plain");
|
||||
|
||||
$username = addslashes($_GET["username"]);
|
||||
$ip = addslashes($_GET["ip"]);
|
||||
$port = addslashes($_GET["port"]);
|
||||
$id = addslashes($_GET["id"]);
|
||||
$app = addslashes($_GET["app"]);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
--This is a joinscript that works in 2013 and back, etc.
|
||||
|
||||
-- functions --------------------------
|
||||
function onPlayerAdded(player)
|
||||
-- override
|
||||
end
|
||||
|
||||
pcall(function() game:SetPlaceID(-1, false) end)
|
||||
|
||||
local startTime = tick()
|
||||
local connectResolved = false
|
||||
local loadResolved = false
|
||||
local joinResolved = false
|
||||
local playResolved = true
|
||||
local playStartTime = 0
|
||||
|
||||
local cdnSuccess = 0
|
||||
local cdnFailure = 0
|
||||
|
||||
settings()["Game Options"].CollisionSoundEnabled = true
|
||||
pcall(function() settings().Rendering.EnableFRM = true end)
|
||||
pcall(function() settings().Physics.Is30FpsThrottleEnabled = false end)
|
||||
pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError end)
|
||||
pcall(function() settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.DefaultAuto end)
|
||||
|
||||
local threadSleepTime = ...
|
||||
|
||||
if threadSleepTime==nil then
|
||||
threadSleepTime = 15
|
||||
end
|
||||
|
||||
local test = true
|
||||
|
||||
local closeConnection = game.Close:connect(function()
|
||||
if 0 then
|
||||
if not connectResolved then
|
||||
local duration = tick() - startTime;
|
||||
elseif (not loadResolved) or (not joinResolved) then
|
||||
local duration = tick() - startTime;
|
||||
if not loadResolved then
|
||||
loadResolved = true
|
||||
end
|
||||
if not joinResolved then
|
||||
joinResolved = true
|
||||
end
|
||||
elseif not playResolved then
|
||||
playResolved = true
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
game:GetService("ChangeHistoryService"):SetEnabled(false)
|
||||
game:GetService("ContentProvider"):SetThreadPool(16)
|
||||
game:GetService("InsertService"):SetBaseSetsUrl("http://www.morblox.us/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
||||
game:GetService("InsertService"):SetUserSetsUrl("http://www.morblox.us/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
||||
game:GetService("InsertService"):SetCollectionUrl("http://www.morblox.us/Game/Tools/InsertAsset.ashx?sid=%d")
|
||||
game:GetService("InsertService"):SetAssetUrl("http://www.morblox.us/asset/?id=%d")
|
||||
game:GetService("InsertService"):SetAssetVersionUrl("http://www.morblox.us/Asset/?assetversionid=%d")
|
||||
|
||||
pcall(function() game:GetService("SocialService"):SetFriendUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetBestFriendUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetGroupUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetGroupRankUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d") end)
|
||||
pcall(function() game:GetService("SocialService"):SetGroupRoleUrl("http://www.morblox.us/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d") end)
|
||||
pcall(function() game:GetService("GamePassService"):SetPlayerHasPassUrl("http://www.morblox.us/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d") end)
|
||||
pcall(function() game:GetService("MarketplaceService"):SetProductInfoUrl("https://api.morblox.us/marketplace/productinfo?assetId=%d") end)
|
||||
pcall(function() game:GetService("MarketplaceService"):SetPlayerOwnsAssetUrl("https://api.morblox.us/ownership/hasasset?userId=%d&assetId=%d") end)
|
||||
pcall(function() game:SetCreatorID(0, Enum.CreatorType.User) end)
|
||||
|
||||
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end)
|
||||
|
||||
local waitingForCharacter = false
|
||||
|
||||
pcall( function()
|
||||
if settings().Network.MtuOverride == 0 then
|
||||
settings().Network.MtuOverride = 1400
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
client = game:GetService("NetworkClient")
|
||||
visit = game:GetService("Visit")
|
||||
|
||||
function setMessage(message)
|
||||
-- todo: animated "..."
|
||||
if not false then
|
||||
game:SetMessage(message)
|
||||
else
|
||||
-- hack, good enought for now
|
||||
game:SetMessage("Teleporting ...")
|
||||
end
|
||||
end
|
||||
|
||||
setMessage("Your ARCHBLOX launcher is out of date. Please update it. (ID: 410)", "Kick", "Kick")
|
||||
error("Out of Date Launcher")
|
||||
|
||||
function showErrorWindow(message, errorType, errorCategory)
|
||||
game:SetMessage(message)
|
||||
end
|
||||
|
||||
-- called when the client connection closes
|
||||
function onDisconnection(peer, lostConnection)
|
||||
if lostConnection then
|
||||
showErrorWindow("You have lost connection (ID: 200)", "LostConnection", "LostConnection")
|
||||
else
|
||||
showErrorWindow("This game has been shut down (ID: 210)", "Kick", "Kick")
|
||||
end
|
||||
end
|
||||
|
||||
function requestCharacter(replicator)
|
||||
|
||||
-- prepare code for when the Character appears
|
||||
local connection
|
||||
connection = player.Changed:connect(function (property)
|
||||
if property=="Character" then
|
||||
game:ClearMessage()
|
||||
waitingForCharacter = false
|
||||
|
||||
connection:disconnect()
|
||||
|
||||
if 0 then
|
||||
if not joinResolved then
|
||||
local duration = tick() - startTime;
|
||||
joinResolved = true
|
||||
|
||||
playStartTime = tick()
|
||||
playResolved = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
setMessage("Requesting server...")
|
||||
|
||||
local success, err = pcall(function()
|
||||
replicator:RequestCharacter()
|
||||
setMessage("Waiting for server...")
|
||||
waitingForCharacter = true
|
||||
end)
|
||||
end
|
||||
|
||||
function onConnectionAccepted(url, replicator)
|
||||
connectResolved = true
|
||||
|
||||
local waitingForMarker = true
|
||||
|
||||
local success, err = pcall(function()
|
||||
if not test then
|
||||
visit:SetPing("", 300)
|
||||
end
|
||||
|
||||
if not false then
|
||||
game:SetMessageBrickCount()
|
||||
else
|
||||
setMessage("Teleporting ...")
|
||||
end
|
||||
|
||||
replicator.Disconnection:connect(onDisconnection)
|
||||
|
||||
local marker = replicator:SendMarker()
|
||||
|
||||
marker.Received:connect(function()
|
||||
waitingForMarker = false
|
||||
requestCharacter(replicator)
|
||||
end)
|
||||
end)
|
||||
|
||||
if not success then
|
||||
return
|
||||
end
|
||||
|
||||
while waitingForMarker do
|
||||
workspace:ZoomToExtents()
|
||||
wait(0.5)
|
||||
end
|
||||
end
|
||||
|
||||
-- called when the client connection fails
|
||||
function onConnectionFailed(_, error)
|
||||
showErrorWindow("Failed to connect. (ID=" .. error .. ")", "ID" .. error, "Other")
|
||||
end
|
||||
|
||||
-- called when the client connection is rejected
|
||||
function onConnectionRejected()
|
||||
connectionFailed:disconnect()
|
||||
showErrorWindow("Your connection has been rejected. (ID: 300)", "WrongVersion", "WrongVersion")
|
||||
end
|
||||
|
||||
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
|
||||
local success, err = pcall(function()
|
||||
|
||||
game:SetRemoteBuildMode(true)
|
||||
|
||||
setMessage("Joining <?php echo $ip; ?>:<?php echo $port; ?>")
|
||||
client.ConnectionAccepted:connect(onConnectionAccepted)
|
||||
client.ConnectionRejected:connect(onConnectionRejected)
|
||||
connectionFailed = client.ConnectionFailed:connect(onConnectionFailed)
|
||||
client.Ticket = ""
|
||||
|
||||
playerConnectSucces, player = pcall(function() return client:PlayerConnect(<?php echo $id; ?>, "<?php echo $ip; ?>", <?php echo $port; ?>, 0, threadSleepTime) end)
|
||||
|
||||
player:SetSuperSafeChat(false)
|
||||
pcall(function() player:SetUnder13(false) end)
|
||||
pcall(function() player:SetMembershipType(Enum.MembershipType.None) end)
|
||||
pcall(function() player:SetAccountAge(365) end)
|
||||
player.Idled:connect(onPlayerIdled)
|
||||
|
||||
-- Overriden
|
||||
onPlayerAdded(player)
|
||||
|
||||
player.CharacterAppearance = "<?php echo $app; ?>"
|
||||
if not test then visit:SetUploadUrl("")end
|
||||
player.Name = "<?php echo $username; ?>"
|
||||
end)
|
||||
|
||||
pcall(function() game:SetScreenshotInfo("") end)
|
||||
<?php
|
||||
$data = ob_get_clean();
|
||||
$signature;
|
||||
$key = file_get_contents('../GameRBLX/PrivKey.pem');
|
||||
openssl_sign($data, $signature, $key, OPENSSL_ALGO_SHA1);
|
||||
echo "" . sprintf("%%%s%%%s", base64_encode($signature), $data);
|
||||
?>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
header("content-type:text/plain");
|
||||
|
||||
$username = addslashes($_GET["username"]);
|
||||
$ip = addslashes($_GET["ip"]);
|
||||
$port = addslashes($_GET["port"]);
|
||||
$id = addslashes($_GET["id"]);
|
||||
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
{"ClientPort":0,"MachineAddress":"<?php echo $ip; ?>","ServerPort":<?php echo $port; ?>,"PingUrl":"","PingInterval":120,"UserName":"<?php echo $username; ?>","SeleniumTestMode":false,"UserId":<?php echo $id; ?>,"SuperSafeChat":false,"CharacterAppearance":"http://morblox.us/Asset/CharacterFetch.ashx","ClientTicket":"","GameId":"00000000-0000-0000-0000-000000000000","PlaceId":1818,"MeasurementUrl":"","WaitingForCharacterGuid":"4d8dfc8d-cd68-4ed7-8adc-efebaba40f58","BaseUrl":"http://morblox.us/","ChatStyle":"ClassicAndBubble","VendorId":0,"ScreenShotInfo":"","VideoInfo":"<?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.morblox.us]]></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>","CreatorId":0,"CreatorTypeEnum":"User","MembershipType":"None","AccountAge":300000000,"CookieStoreFirstTimePlayKey":"rbx_evt_ftp","CookieStoreFiveMinutePlayKey":"rbx_evt_fmp","CookieStoreEnabled":true,"IsRobloxPlace":true,"GenerateTeleportJoin":false,"IsUnknownOrUnder13":false,"SessionId":"","DataCenterId":0,"UniverseId":0,"BrowserTrackerId":0,"UsePortraitMode":false,"FollowUserId":0,"characterAppearanceId":1}
|
||||
|
||||
<?php
|
||||
$data = ob_get_clean();
|
||||
$signature;
|
||||
$key = file_get_contents("../GameRBLX/PrivKey.pem");
|
||||
openssl_sign($data, $signature, $key, OPENSSL_ALGO_SHA1);
|
||||
echo "--rbxsig" . sprintf("%%%s%%%s", base64_encode($signature), $data);
|
||||
?>
|
||||
Loading…
Reference in New Issue