ID:274035
 
I know this question is strange, but I really need to learn more about this, I've been looking around, and I found this:

mob/verb/test()
var/http[] = world.Export("http://www.byond.com")

if(!http)
usr << "Failed to connect."
return

usr << "HTTP Header:"
for(var/V in http)
usr << "[V] = [http[V]]"

usr << "\n"

var/F = http["CONTET"]
if(F)
usr << html_encode(file2text(F))


It shows a lot of lines when I use it, is there a way to code something like this which displays the HUB Version, and some of the lines? I don't know much about html, and I've never done anything at all related to this :/

I've also used this (after being helped twice):

mob
proc
Medals()
if(Rounds<100)
var/Medal1 = world.GetMedal("First Level!", key, "EternalMemories.NarutoEternalMemories","**** (can't tell xD)")
if(Medal1)
Rounds=100


It's just supposed to check a HUB's Medal, it works when I play on my server, but on others server it never works, I don't know why... I've deleted my saves a lot of times to make sure it worked, and it worked well. any idea?

Thanks for the help (:
Here's a <code>proc</code> I made awhile ago for checking my hub version.

version_check()

var/list/http = world.Export("http://byond.com/games/key.game?format=text")

if(!http)

world << "Unable to connect to the hub."; return

var/c = file2text(http["CONTENT"])

var/savefile/s = new

s.ImportText("/", c)

s.cd = "general"

world << "the hub version is [s["version"]]"