I have encountered a bug in my game:
mob/create_character var/mob/character
Login()//login proc
usr.loc = locate(3,3,1)
..()
if(usr.key=="CloneGoku")
var/charactername = input ("Name","What Would You Like To Be Called?")
var/race = input("What Would You Like To Be??","CloneGoku")in list("Knight","King","Soldier")
switch(race)
if("Knight")
character = new /mob/Knight//
if("King")
character = new /mob/King
if("Soldier")
character = new /mob/Soldier
world<<"The Great CloneGoku Has Entered!!!!!!"
world<<sound('cheering.wav')
usr.loc = locate(3,3,1)
character.name = charactername
src.client.mob = character//the client mob
Now my error is that when i log in i get teleported to the nearest x location without a density of 1 and i do not get teleported to where i want to be teleported?
what is wrong with my code please help!!
ID:179838
![]() Oct 25 2001, 11:10 pm
|
|
instead of a new mob u put the icon thing to call the icon