ID:149381
 
NEED MAJOR HELP! Login code works, but people are INVISIBLE!
mob/Login()//calls the Login Proc
..()
if(people<maxpeople)//if the amount of people in the world is less then 50
if(people==0)//if your the first person
usr<<"You are the host!"//Tell's the usr that they are the host
usr.loc=locate(1,1,1)//Moves them to the location 1,1,1
people+=1//adds one person to the var "people"
usr.verbs.Add(/mob/Host/verb/Host_Boot)//adds the host verb Host Boot
usr.verbs.Add(/mob/Host/verb/Host_Change_People_allowed)// adds the host verb Host Change people allowed
usr.verbs.Add(/mob/Host/verb/Host_Summon)//add the summon verb
usr.verbs.Add(/mob/Host/verb/Host_Summon_All)//add the summon all command
usr.verbs.Add(/mob/Host/verb/Host_Condemn)//add the Condemn command
HOST=usr.key//the host is the uset
usr.verbs.Add(/mob/Host/verb/Host_Mute)//add the summon Mute command
world.name="Infantry Wars: Hosted by [HOST], 1 person online"//sets up the worlds name to Host people control: the worlds host, 1 person online
world << "Entering: [usr]"
else//if they arn't the first person
usr<<"Welcome to [world.name]!"//welcome them to your game
usr.loc=locate(1,1,1)//locate them to 1,1,1
people+=1//adds one to the "people" var
world.name="Infantry Wars: Hosted by [HOST], [people] people online"//since there is more than person you hve to tell how many people now
world << "Entering: [usr]"
else
usr<<"There are too many people come back later!"//tell's the usr that there are too many people and for them to come back later
world << "Noob: [usr]."
del(usr)//deletes the user
Makes sense if they are invisible if you aren't assigning the mob an icon ;)

--Nate
But, see, my icon shows, but no one else's shows. Not on their screen, not on mine.
In response to Drafonis
When overloading a Login or Logout proc, put the ..() at the bottom of the overloading process.

In fact, the best bet is to position your code in such a way that the ..() is ALWAYS at the END of the overloaded proc.