A
A
0, Culture=neutral,
PublicKeyToken=null
// C:\Users\new\Desktop\New folder\LuminosityApis\bin\x64\Debug\CloudyApis.dll
// Decompiled with ICSharpCode.Decompiler 8.1.1.7464
#endregion
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Windows.Forms;
using System.Windows.Media.Imaging;
using DiscordRPC;
using DiscordRPC.Message;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace LuminosityAPI
{
public static class LuminosityFunctions
{
public static class CoreAPI
{
public static class CoreSystem
{
public static class AutomaticallySetupFileSCore
{
public static class AutomaticallyClientInfo
{
public static class AutoIssueFalse
{
public static class FixException
{
public static class LuminosityFUNC
{
public static class External
{
public struct ClientInfo
{
public string version;
public string name;
public int id;
}
[DllImport("bin\\Cloudy.dll",
CallingConvention = CallingConvention.Cdecl)]
private static extern void Initialize();
[DllImport("bin\\Cloudy.dll",
CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
private static extern void
ExecuteAsync(byte[] scriptSource, string[] clientUsers, int numUsers);
[DllImport("bin\\Cloudy.dll",
CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr GetClients();
static External()
{
time12 = new
System.Windows.Forms.Timer();
Isua = false;
isRegistred = false;
i = "Axel"; // Changed name to Axel
AutoSetup();
}
webClient.DownloadFile(address, text3);
}
}
catch (Exception ex)
{
MessageBox.Show("Failed to
Download " + text2 + ": " + ex.Message, "LuminosityApi");
}
}
}
}
}
Directory.CreateDirectory(targetPath);
}
}
Directory.CreateDirectory(directoryName);
}
File.WriteAllText(Configs.executeP,
script);
}
catch (Exception) { }
}
Directory.CreateDirectory(baseDirectory);
}
webClient.DownloadFile(address, text2);
}
}
catch (Exception ex)
{
MessageBox.Show("An error
occurred while downloading required files. ERR: " + ex.Message);
}
}
}
}
static misc()
{
editorUri =
"https://getcloudy.xyz/Editor";
client = new HttpClient();
AutoSetup();
client.DefaultRequestHeaders.Add("Authorization", "v1USERFREE");
}
webClient.Headers[HttpRequestHeader.ContentType] = "application/json";
string text =
webClient.UploadString(address, "POST", data);
JObject json =
JObject.Parse(text);
if (json["data"] != null &&
json["data"].HasValues)
{
return json["data"][0]
["id"]?.ToString();
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error getting user
ID for " + username + ": " + ex.Message, "LuminosityApi");
}
return null;
}
string address =
"https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" +
userIdFromUsername + "&size=420x420&format=png";
try
{
using (WebClient webClient = new
WebClient())
{
string text =
webClient.DownloadString(address);
JObject json =
JObject.Parse(text);
if (json["data"] != null &&
json["data"].HasValues)
{
string uriString =
json["data"][0]["imageUrl"]?.ToString();
return new BitmapImage(new
Uri(uriString));
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error getting
avatar for " + username + ": " + ex.Message, "LuminosityApi");
}
return null;
}
[Obsolete]
public static async Task<string>
GetDiscordUsername(string appId)
{
TaskCompletionSource<string> tcs = new
TaskCompletionSource<string>();
clientas = new DiscordRpcClient(appId);
clientas.OnReady += (sender, e) =>
{
string result =
$"{e.User.Username}#{e.User.Discriminator}";
tcs.SetResult(result);
};
clientas.Initialize();
clientas.SetPresence(new RichPresence
{
Details = "Username Validation...",
State = "Please wait",
Timestamps = Timestamps.Now
});
return await tcs.Task;
}
string fileName =
processesByName[0].MainModule.FileName;
string name = new
DirectoryInfo(Path.GetDirectoryName(fileName)).Name;
if (name !=
Configs.SupportedRobloxVersion)
{
if (!Configs.isSec)
{
return true;
}
MessageBox.Show("LuminosityApi is
Outdated. Please Update The Newest Version!", "LuminosityApi");
return false;
}
return true;
}
try
{
string text =
File.ReadAllText(path);
JObject json = JObject.Parse(text);
if (json.ContainsKey("Username"))
{
return
json["Username"]?.ToString();
}
}
catch (Exception ex)
{
MessageBox.Show("Error getting
username " + ex.Message, "LuminosityApi");
}
return null;
}
webClient.DownloadFile(address, text3);
}
}
catch (Exception ex)
{
MessageBox.Show("Failed to
Download " + text2 + ": " + ex.Message, "LuminosityApi");
}
}
}
}
Match match2 =
regex2.Match(input);
if (match2.Success)
{
text =
match2.Groups[1].Value;
}
}
if (!
string.IsNullOrEmpty(text))
{
return text;
}
}
}
return null;
}
catch (Exception ex)
{
return "Error: " + ex.Message;
}
}