mob
Write(var/savefile/F)
..()
F["last_x"]<<last_x
F["last_y"]<<last_y
F["last_z"]<<last_z
Read(var/savefile/F)
..()
F["last_x"]>>last_x
F["last_y"]>>last_y
F["last_z"]>>last_z
loc=locate(last_x,last_y,last_z)
proc
LoadCharacter()
var/SAVE_FOLDER = "Save/[src.ckey].sav"
worldlog+="[src]/[src.key]([src.client.address]) enters game.<br>"
if(fexists(SAVE_FOLDER))
var/savefile/F = new("Save/[src.ckey].sav")
//Dont think that is needed as the savefile was opened.
/*
F["last_x"] >> src.last_x
F["last_y"] >> src.last_y
F["last_z"] >> src.last_z
I prefer using Write() and Load() for saving and loading
player's old locations my dude.
*/
//Hmm this is the error line
F["mob"] >> src
F["verbs"] >> src.verbs//not sure if this would work
// src.loc=locate(src.last_x,src.last_y,src.last_z)
Name()
world<<"[src] has logged in."
SaveChar()
src.last_x=src.x
src.last_y=src.y
src.last_z=src.z
var/savefile/F = new("Save/[src.ckey].sav") // This creates a new file called your key.sav in the file Save
/*
F["last_x"] << src.last_x// This stuff saves the players location
F["last_y"] << src.last_y
F["last_z"] << src.last_z
I prefer using Write() and Load() for saving and loading
player's old locations my dude.
*/
F["mob"] << src
for(var/K in src.verbs)
F["verbs"] << K
//Dont think that is needed
I haven't tested it yet, you should do it remember to back-up the opne you got before copy/paste this one(that's what most of people does here, no offense).
lol. I just saw that episode a few days ago. What's with everyone quoting that?