E.G. If key 1 makes there name Jeff then key 2 cant make there name Jeff.
Here is what I got so far:
world
name = "Harry Potter - The Beginning | Version 5.2"
hub = "Chrislee123.HPTB"
hub_password = "hp"
status = "<font size=1><font face=verdana><font color=red>Main Server | Come and Join | Version 5.2"
view= 11
client
command_prompt = "HPTB / Chrislee123."
script = "<STYLE>BODY {background: black; color: white}</STYLE>"
command_text = "say "
mob/Login()
usr.loc = locate(15,15,2)
mob/Logout()
..()
world << "<b><font color = blue>[usr.name]([usr.key]) Logged out!</font></b>"
var/savefile/F=new("players/[src.key].sav")
Write(F)
del(src)
turf/Full
density = 1
layer = 999
icon = 'Images/login.jpg'
turf/Loginstuff/New
density = 1
layer = 999
Click()
usr.NewPlayer()
mob
proc
NewPlayer()
if(fexists("players/[src.key].sav"))
fdel("players/[src.key].sav")
var/name = input("Enter your desired name.","Enter your name.") as text|null
if(length(name) < 2)
alert("Your name must be longer than 2 letters!")
return
if(length(name) > 20)
alert("Your name can not be longer then 20 letters!")
return
usr.name="[html_encode(name)]"
world << "<b><font color = blue>[usr.name]([usr.key]) Logged in for the First Time!</font></b>"
alert("Head into the Great Hall and wear the sorting hat and also head to Diagon Alley to get hair.","HPTB")
usr.loc = locate(24,20,1)
usr.icon = 'base.dmi'
usr.icon_state = "base"
usr.client.view=7
if(usr.key == "Chrislee123" || usr.key == "")
usr.verbs += typesof(/mob/MGM/verb)
else
..()
turf/Loginstuff/Load
density = 1
layer = 999
Click()
usr.LoadPlayer()
mob
proc
LoadPlayer()
if(fexists("players/[src.key].sav"))
var/savefile/F=new("players/[src.key].sav")
Read(F)
src << "<b><font color = white>Savefile loaded, welcome back."
world << "<b><font color = blue>[usr.name]([usr.key]) logged in!"
src.client.view=7
if(src.key == "Chrislee123" || src.key == "")
src.verbs += typesof(/mob/MGM/verb)
else
..()
else
src<<"<b><font color = white>You have no savefile"
turf/Loginstuff/Delete
density = 1
layer=999
Click()
usr.DeleteChar()
mob
proc
DeleteChar()
if(fexists("players/[src.key].sav"))
var/sure=alert(src,"Are you sure you want to delete your character?","Confirmation","No","Yes")
if(sure=="Yes")
sleep(0)
fdel("players/[src.key].sav")
src << "Character Deleted"
else if(sure=="No")
return
else
return
else
src << "You do not have a character saved on this server."
mob/
Read(var/savefile/F)
var
X
Y
Z
xverbs
F["x"] >> X
F["y"] >> Y
F["z"] >> Z
F >> xverbs
..()
src.loc = locate(X,Y,Z)
verbs += xverbs
Write(var/savefile/F)
F["x"] << x
F["y"] << y
F["z"] << z
F << verbs
..()
No joke ive been at my computer all day yesterday waiting for a reply Ive been refreshing like every 15 mins and no help :( that makes me sad please someone help me im ready to help myself.