mob
proc
newchar()
if(fexists("players/[src.key]"))
switch(alert(usr, "Are you sure that you want to overwrite your old Character?", "Character Creation", "Yes","No"))
if("Yes")
sleep(0)
fdel("players/[usr.key].sav")
if("No")
return
alert("Welcome to NFD")
var/name = input("","What name would you like?") as text|null
if(!usr)
return
if(length(name) < 4)
alert("Denied!")
return
usr.name="[name]"
usr.icon='test base.dmi'
usr.loc=locate(44,186,1)
usr.cansave=1
usr.OOC=1
sleep(20)
usr.AutoSave()
turf/newchar
density = 1
layer = 999
Click()
usr.newchar()
when ever i turf the new char it deletes the tile i put it on on the login screen
</4>
ID:139071
Jul 15 2011, 7:15 pm
|
|
Jul 15 2011, 7:24 pm
|
|
You shouldn't be using usr in a proc at all. Also code goes between the DM tags, thanks.
|