Forum > Coding >

Download a Script in C#

clxyify

clxydev

Posts: 6

Threads: 2

Joined: Apr, 2022

Reputation: 0

Posted

This is mainly for developers that make custom executors.

NOTE: This is for people who don't have HttpGet or don't know how to use it.

WARNING: Horrible code and there is a better way.

 

WebClient WC = new WebClient();
public void NotRealHttpGet(string site)
{
    string downloadedscript = WC.DownloadString(site);
    //i dunno what api you using sooo...
    API.Execute(downloadedscript =+ "\n\nprint('downloaded script successfully!');//dont need this print but still
}

NotRealHttpGet("your raw link");
//ik this is super ez but its for the little kiddos who dont know much c#
  • 0

Posts: 1167

Threads: 72

Joined: Oct, 2019

Reputation: 89

Replied

private string Loadstringer(string Site)
{
     string Script = null;

     using (var Http = new WebClient())
            Script = $"loadstring(game:HttpGet({Site}))()";

     return Script;
}
private string HttpGet(string Site) 
{
    using (var Http = new WebClient())
          return Http.DownloadString(Site);
    
   return null;
}
  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

why, just why /chaaars

  • 0

clxyify

clxydev

Posts: 6

Threads: 2

Joined: Apr, 2022

Reputation: 0

Replied

No idea i just made this for no reason.

Also thanks ImmuneLion.

  • 0

Added

@Astronemi It's fake HttpGet. All it does is Download the Raw Data from a Link, and pastes it onto a string. Then it executes it.

  • 0

Added

Yep. its super simple..

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )