ID:146459
 
Code:
    Write(savefile/F)
..()
if(world.maxx)
F["last_x"] << x
F["last_y"] << y
F["last_z"] << z
F["Mob"] << usr.client.mob




Read(savefile/F)
..()
if(world.maxx)
var/last_x
var/last_y
var/last_z
F["last_x"] >> last_x
F["last_y"] >> last_y
F["last_z"] >> last_z
F["Mob"] >> usr.client.mob
loc = locate(last_x, last_y, last_z)
world << "<b>[src] has logged in!</b>"


client/proc/SaveMob() //line 140
var/savefile/F = new("Players/[src.key].txt")
var/char_ckey = cKey(src.mob.name)
F["/[ckey]/[char_ckey]"] << src.mob



client/proc/LoadMob(char_ckey)
var/mob/NM
var/savefile/F = new("Players/[src.key].txt")
F["/[ckey]/[char_ckey]"] >> NM
if (!NM)
return 0
else
ppl ++
return 1


Problem description: Only problem I'm having is saving verbs.. When I learn/buy a spell from an NPC, save the game, and log off and back on, I don't have the spell in my "Commands" list anymore... My only real question is, 'what else would I might need to add to save verbs?'

I've tried coding this a couple different ways, but can't seem to get it to work.. Well that's all I guess..

Thanks in advance,

Luch

Look up the verbs list. You could save that, and then load it back.
In response to Jp
You could make the shop give u items that give the verb? make sure the items are invisible to see by filtering them out of your contents(if you have 1)