ID:261624
 
Ok, well i'm making at text based hacking game. I've got a great concept so far, but for the game to be FUN, you must steal stuff from other players. Otherwise, you won't hate other players and there wont be any competition.

Sooo, I wan't to make a command like this:

connect_usr(M as mob in world)

[code for connecting to that users host]

BUT! Instead of having a list pop up of users, how would it connect to a certain path.
EXAMPLE

connect_usr Tamaka-san.DelCom.sec

Instead of just typing connect Tamaka-san, you need to type in [M.name] and [M.host]. Sooo...

Tamaka-san[M.name]
DelCom.sec[M.host]

sooo, can anyone help me?
i cant really help on this but i can say there is already a text based hacking gme, so im sure that guy can help
In response to Maz
Actually, i've already finished the command but i'm not sure if it's going to be buggy or not buggy, considering it will most likely bring up all the mobs in the world.
anyways, here's the command that worked for me.

connect_usr(MSG as message,mob/M in world)
set name="connect_usr"
if(MSG=="[M][M.hostname] [M.port]")
if(M.proxy==0)
usr<<"You have connected to [M][M.hostname] [M.port]"
usr<<"[M.servermsg]"
else if(M.proxy>=1)
if(usr.proxybypass>=M.proxy)
usr<<"You have connected to [M][M.hostname] [M.port]"
usr<<"[M.servermsg]"
else
usr<<"This server is not allowing connections."
else
usr<<"Server not found."