mob CC proc Choose() if(fexists("Save Files/[client.ckey]")) switch(alert("What do you wish to do?","Loading...","New Character","Load Character","Quit")) if("Quit") del src if("Load Character") client.Load() else Create() else switch(alert("What do you wish to do?","Loading...","New Character","Quit")) if("Quit") del src else Create() Create() var/mob/NC var/CCName CCName = input("What is your name?","Creation") as null|text if(!CCName) alert("Everyone has a name!","Error") Create() if(lentext(CCName) < 2) alert("Your name is too short!","Error") Create() if(lentext(CCName) > 20) alert("Your name is too long!","Error") Create() if(Check_For_Tags(CCName,HTML_TAGS) == TRUE) alert("HTML is not allowed!","Error") Create() else CCName = html_encode(CCName) Race = input("What are you?","Creation") in list("Argonian","Drow Elf","Dwarf","Elf","Gnome","Half-Elf","Half-Orc","Half-Ogre","High Elf","Human","Khajit","Ogre","Orc","Cancel") switch(Race) if("Human") Class = input("What is your class?","Creation") in list("Archer","Assasin","Barbarian","Bard","Cleric","Dark Knight","Dragoon","Druid","Fighter","Monk","Necromancer","Ninja","Paladin","Ranger","Rogue","Samurai","Shadow Dancer","Sorcerer","Summoner","Thief","Time Mage","Wizard","Cancel") if("Cancel") alert("Changed your mind?","Abortion") Choose()
|