ID:1454340
 
(See the best response by Raimo.)
I was wondering if there was a Built-in proc that checks if a game exists. This proc could be used in such manor:

An owner/fan-boy from X game comes in X Game.
Writes on say either the link or the name of the game. The code
mob/verb
say(t as text)
set category = "Player Panel"
set name = "View Chat"
CheckAd(t)
view(usr)<<"[usr]:[t]"

I know we can check if a Key exists, etc. so I thought maybe we could.




I was also wondering if the built-in proc Shutdown was meant to shutdown the server itself. I normally use

mob/verb
shutdown()
set category = "Admin Panel"
set name = "Shutdown"
del world

Best response
1. I guess you could do it like this:
mob/verb/test()
var/http[] = world.Export("http://www.byond.com")

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


2. Yes, it does.
In response to Raimo
I was thinking of world.Export! I didn't think it could actually work that way.

Thanks