mob
player
verb
Save()
var/savefile/P=new("players/[src.ckey].sav")
src.Write(P)
P["lastx"] << usr.x
P["lasty"] << usr.y
P["lastz"] << usr.z
P["direction"] << usr.dir
usr << output ("<font color=green>Your file has been saved!</font>", "OOC")
..()
mob
Nplayer
verb
Load()
if(fexists("players/[src.ckey].sav"))
var/savefile/P=new("players/[src.ckey].sav")
src.Read(P)
var/newX
var/newY
var/newZ
var/newD
P["lastx"] >> newX
P["lasty"] >> newY
P["lastz"] >> newZ
P["direction"] >> newD
src.Move(locate(newX,newY,newZ))
src.Move(locate(newD))
usr.verbs+=typesof (/mob/player/verb/)
..()
else
usr << output ("<font color=red>You do not have a saved character!</font>", "OOC")
return
Problem description: I don't know how to save the verbs for the player. When they load, they don't have their player verbs unless I give them to them via the usr.verbs+=typesof (/mob/player/verb/), that and I cannot get rid of the load verb.
Also, I can't get the player's direction to save and load, no matter when, when you load the player, they always face west.