ID:261984
 
Look at this:

client/proc/Save()
var/savefile/F = new("SAVE.sav")
F["x"] << src.mob.x
F["y"] << src.mob.y
F["z"] << src.mob.z
F["src"] << src.mob

client/proc/Load()
var/savefile/F = new("SAVE.sav")
var/last_x
var/last_y
var/last_z
F["x"] >> last_x
F["y"] >> last_y
F["z"] >> last_z
F["src"] >> src.mob
Move(locate(last_x,last_y,last_z))


And now, look at this(it's a test for the saving system):

mob/NPC
icon = 'npc.dmi'
Click()//call the click() proc
usr.verbs += new/mob/proc/Test

mob/proc/Test()
src <<"Test!"


Now, when I log out, the verb is gone. How would I fix this?

Kappa the Imp
Verbs don't save. You need to keep a record of what verbs you need to give the player, and then give them back when they log in again.
In response to Crispy
Crispy wrote:
Verbs don't save. You need to keep a record of what verbs you need to give the player, and then give them back when they log in again.


How would I do that?

Kappa the Imp
In response to Kappa the Imp
It really depends. How do you *think* you should keep a record of it? For example, if the verbs are to do with certain skills, on login check to see if they have those skills and add the appropriate verbs. It's really not that hard.