//this is inside the mob/Players/Login()
if("Load")
// if(fexists("/savefile/F"))
src.client.Load()
src.ingame = 1
..()
//Client - Delete
client
Del()//when the client is deleted
if(mob.ingame == 1)
src.Save()
world << output("<font color = yellow>SWG:</font><font color = white> [src]/[src.key] The [usr.rank] has logged out.","system")
mob.partydatum=null
//save the mob
del (mob)//delete the mob *NOTE* always make sure to delete the mob AFTER you saved it
players -=src
..()
del (mob)//delete the mob *NOTE* always make sure to delete the mob AFTER you saved it
players -=src
mob
//handle all special saving/loading in mob/Write() and mob/Read()
Write(var/savefile/F)
..()
F["x"] << x
F["y"] << y
F["z"] << z
//no need to save icon or contents, they're saved by default
var/saved_verbs
F["verbs"] >> saved_verbs
src.verbs.Cut() //or verbs=null
src.verbs += saved_verbs
Read(var/savefile/F)
loc = locate(F["x"], F["y"], F["z"])
F["verbs"] >> verbs
..()
Problem description:
So, i have been searching the forum for i dont know how long, and nothing have seemed to help me, i have tried alot of diffrent variants of suggestions, but its been without luck.
When i logout, the mob are not saved, therefore i cant load it.
I have included all the codes i think is nessesary, if you need more, just tell me.
If you got any suggestions, please tell me so.
Thanks in advance.
~Sleaze