Rowblox-V2/src/lib/joinscript.js

56 lines
2.0 KiB
JavaScript

const script = {
ClientPort: 0,
MachineAddress: "",
ServerPort: 0,
PingUrl: "http://api.rowblx.xyz/ping",
PingInterval: 120,
UserName: "",
SeleniumTestMode: false,
UserId: 0,
SuperSafeChat: false,
CharacterAppearance: "",
ClientTicket: "",
GameId: "00000000-0000-0000-0000-000000000000",
PlaceId: 0,
MeasurementUrl: "",
WaitingForCharacterGuid: "00000000-0000-0000-0000-000000000000",
BaseUrl: "http://www.rowblx.xyz/",
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.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>',
CreatorId: 0,
CreatorTypeEnum: "User",
MembershipType: "",
AccountAge: 365,
CookieStoreFirstTimePlayKey: "rbx_evt_ftp",
CookieStoreFiveMinutePlayKey: "rbx_evt_fmp",
CookieStoreEnabled: true,
IsRobloxPlace: true,
GenerateTeleportJoin: false,
IsUnknownOrUnder13: false,
SessionId: "00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000|0|255.255.255.255|0|0000-00-00T00:00:00.0000000Z|0|null|null|null|null",
DataCenterId: 0,
UniverseId: 0,
BrowserTrackerId: 0,
UsePortraitMode: false,
FollowUserId: 0,
characterAppearanceId: 0
};
import sign from "./sign";
export default function (id, username, ip, port, membership) {
let joinscript = script;
joinscript.UserId = Number(id);
joinscript.UserName = username;
joinscript.MachineAddress = ip;
joinscript.ServerPort = Number(port);
joinscript.MembershipType = membership;
joinscript.CharacterAppearance = `http://assetgame.rowblx.xyz/Asset/CharacterFetch.ashx?userId=${id}&placeId=1818`;
return sign(JSON.stringify(joinscript));
}