ID:159968
 
I know I can detect the host if the host is running the game on DS, but what is an effective way of determining who the host is when running DD? I'm trying to make the mob/Login() give the host special host verbs at login, but when they host on DD they aren't getting their verbs.
client
New()
..()
if(world.host == src.ckey||!src.address||src.address == world.address)
// Add host stuff


Their key will either match world.host, their address variable will be empty, or their address variable will match the world's.
In response to Nadrew
didnt try world.host. the other 2 didnt work when I tried them.
If you're using BYOND 4.0, then just do this:
mob/Login()
if(world.host)
src << "You are the host."
src.verbs += typesof("/mob/host/verb")


If you're using a code just like this, tell your host to login from DD, and not the pager.
In response to Howey
world.host is the key of the host. That code (which you should put in DM tags) would give host status to everyone.