ID:170866
 
Whenver i host the whole commands go to the world but when i compile the coding it says everything is good.
var/host = ""
var/players = 0
mob
ppp/Choosin
Login(){KillVerbs();spawn(){usr.CC();KillVerbs()}}
Logout(){return}
proc/KillVerbs()for(var/verbe in verbs)verbs-=verbe
Login()
..()
usr.heal = 0
usr.training = 0
usr.sparring = 0
usr.firing = 0
world << "<B><font color = green><font size=1>[src] has just Logged Inn!"

if(players == 0)
usr <<"Welcome [src] you are the host"
src.AddVerbs()
host = src
players +=1
Logout()
..()
world << "<B><font color = green><font size=1>[src] has just Logged Out!"
del(src)
Do the players switch to a new mob after the login, or do they remain of the type ppp/Choosin?

~X
In response to Xooxer
naw thats just the login so they can get started.its just when they login we all get the host verbs.
In response to Jiamind
So, you do switch mobs or you don't? You weren't very clear.

~X
In response to Xooxer
mob/New()
if(src.client.address == world.address)
src.verbs+=typesof(/mob/host/verb)


NOTE: I don't know if that works.
In response to Hell Ramen
nah that didn't work it just says a null.client address
In response to Jiamind
client/New()
for(var/client/C)
if(C.address == null||C.address == "12.0.0.1"||C.address == world.address)
client.verbs+=typesof(mob/host/verbs)
..()

Try that?
In response to Hell Ramen
nope i dunno i guess i give up
In response to Jiamind
Try..
mob
Player //your player mob here
Login()
..()
if(src.client.address == world.address)
src.verbs+=typesof(/mob/Host/verb)
//Other stuff here
return


That'll give them to you once you log in under the "Player" mob.
In response to Lenox
k thanks i got them to work now for those bugs ):(