mob/create_character
var/mob/character
name = "Project 4.0"
Login()
usr.loc=locate(/area/charactercreation)
usr << sound('opening.mid',1)
var/charactername = input("Hello, please name your character.","Character Name?",src.key)
switch(input("Choose a class.","Character Class?") in list("Warrior","Mage"))
if("Warrior")
character = new /mob/player/warrior //Looking up the path "/mob/player/warrior"
usr.loc=locate(/area/start)
if("Mage")
character = new /mob/player/mage //Looking up the path "/mob/player/mage"
usr.loc=locate(/area/start)
character.name = charactername
src.client.mob = character
..()
Problem description:
The usr.loc=locate(/area/start) isn't working properly. Everythings fine, I teleport to the same map, but instead of going to the start area, I go to 1,1,1. But the first one, which is the same but to charactercreation, works. Can anybody think of why this happens? Also, I never had this problem before 4.0 oddly, not saying it has anything to do with 4.0.