ID:263936
![]() Mar 13 2008, 3:57 pm
|
|
Problem description: the title pretty much explains it. Everytime someone relogs, they lose their attacks. Can anyone help?
|
client Well dont put src or usr.SaveMob() in the Logout() proc the client/Del() will when a player logs out their game gets saved >.> |
Verbs are not automatically saved. You have to do that yourself:
var/list/procs = list() We need to ensure that the verbs stored in the savefile still exist before we add them, or Read() will crash and we won't be able to finish loading, which will cause a corruption of the character. |
When saving, make a list of all your verbs. Then when loading, read that list and make it give the verbs back.
|
You don't really need to store a global list like that, don't you? If you're accessing the paths by looping threw the list anyway, why not test them? If that doesn't work for some reason, you could also store the paths as text and use text2path() which will return false if there's no such path.
|
It didn't occur to me to use text2path(). I assumed it wouldn't work because ispath() doesn't work with procs. That simplifies things:
mob |
Sorry its all spaces. My Tab key is kinda stupid.