ID:164757
 
ok i maded save file system like in DM but i wonder how to make that GM's verb's are saved too.
MY GM SYSTEM LOOK LIKE THAT
                if(src.key=="Duni")//Owner
src.verbs += typesof(/mob/Owner/verb)
src.Owner=1


AND SAVE FILE
mob/Write(savefile/F)
//store coordinates
F << x
F << y
F << z

//store variables
F["name"] << name
F["gender"] << gender
F["icon"] << icon
F["Rank"] << rank
F["Village"] << Village
F["Clan"] << Clan
F["Age"] << age
..()
mob/Read(savefile/F)
var {saved_x; saved_y; saved_z}
//load coordinates
F >> saved_x
F >> saved_y
F >> saved_z
//restore variables
F["name"] >> name
F["gender"] >> gender
F["icon"] >> icon
F["Rank"] >> rank
F["Village"] >> Village
F["Clan"] >> Clan
F["Age"] >> age
..()
//restore coordinates
Move(locate(saved_x,saved_y,saved_z))

Why would you need to save the verbs? Wouldn't you get the verbs anyway when you log in with your key?
mob/Write(savefile/F)
//store coordinates
// I don't know if this works for you, but it shouldn't as far as I know.
// You should to store it in a holder (F["last_x"], etc).
F << x
F << y
F << z

//store variables
// These variables will already be added by the Write procedure, unless they're tmp vars
F["name"] << name
F["gender"] << gender
F["icon"] << icon
F["Rank"] << rank
F["Village"] << Village
F["Clan"] << Clan
F["Age"] << age
..()
mob/Read(savefile/F)
var {saved_x; saved_y; saved_z}
//load coordinates
F >> saved_x
F >> saved_y
F >> saved_z
//restore variables
// Read will restore these by itself
F["name"] >> name
F["gender"] >> gender
F["icon"] >> icon
F["Rank"] >> rank
F["Village"] >> Village
F["Clan"] >> Clan
F["Age"] >> age
..()
//restore coordinates
Move(locate(saved_x,saved_y,saved_z))
// I wouldn't us Move() here.
// If somebody is occupying that location when they try to log in, it will not move them


I'm not sure if this will work, but verbs are stored in a variable located on a mobile called, who woulda guessed, "verbs".

So you could try saving src.verbs to, say, F["verbs"], then restoring them in the same manor.
But like the Ex said, you're already adding the verbs when they log in.

And I might also suggest you store the admins within a global list, so you don't have to clutter it up with variables like "owner".
Assuming that the first piece of code is a type of GM_Check() and is called at Login(), there is no need to save your verbs.
In response to ExMorover
OK. thx i maded it like Dice said, i puted it in Login so now mob gets verb when he Login, simple ;)