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?
|
In response to King killer 113711
|
|
doesnt work
|
In response to Deity Production 08
|
|
Ok, Sorry let me be more specific.
mob |
In response to Aang-Air bender
|
|
for some reason its not working.
|
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 >.> |
In response to Aang-Air bender
|
|
thats how i have it. and its not working.
|
In response to Deity Production 08
|
|
then you puted something that breaks that proc o.o or something so >.>
|
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.
|
In response to Garthor
|
|
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.
|
In response to Kaioken
|
|
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.