Alright, i got a huge issue with my game thats really starting to get me mad. it seems whenever someone logs out near my char or anyone elses in the game, and then comes back later, it will log them in but it will also log out and then re-login the person who was near them when they logged out, and that persons character will be at the same stats and everything as when that person logged out. can someone help me with this please?
ID:146025
Oct 5 2005, 1:59 pm
|
|
Oct 5 2005, 2:17 pm
|
|
Would have to see the code.
|
In response to Mecha Destroyer JD
|
|
its hard to say which code to show, this has been a problem for a long time but it died down until recently...so if you could give me an idea of what you think it might be, id be glad to post it.
|
In response to GcRayden
|
|
Post your mob/Login(), mob/Logout(), Read() and Write() ( If you overrode them ), and any other saving-related procs/verbs.
|
In response to Audeuro
|
|
character saving n stuff code file really thats all, but thinking about it...i do get an error when someone creates a new character. i dont think its a problem but its player.client.mob = new_mob on the first code near the bottom, always pops up saying null.client or something, tried changing it with src, usr, etc. didnt work. Hopefully you guys can help me fix this! |
In response to Audeuro
|
|
You forgot client/New() and client/Del(). >_>
|
In response to GcRayden
|
|
Oh, dear lord. Please use DM tags, and please don't post your whole DM file, just anything relevant. Something I can see right off the bat is that you didn't close your font and bold tags, and you used ==1 on a boolean var.
if(!var) is the same as if(var==0) if(var) is the same is if(var==1) I also noticed you have MAJOR usr abuse in mob/Login(). You have several verbs from one typepath that are being subtracted, instead of that, use src.verbs+=typesof(/mob/Party/verb) On one part, you had it to where it returned Login(). Instead, you should use ..(), and, you should put a ..() after all your checks and such are done. But then again, that doesn't make sense. You should make it to where it returns a proc for subjob and job selection. Agh, that's so long I really don't feel like going through and pointing out the rest of the mistakes. |
In response to Sinoflife
|
|
Sinoflife wrote:
Oh, dear lord. Please use DM tags, and please don't post your whole DM file, just anything relevant. i fixed it, put dm tags on it. sorry about that tho, this is my first post here, i try to figure out everything and i usually do so i dont have to post here, but this problem wont go away >.< |
In response to Sinoflife
|
|
Sinoflife wrote:
On one part, you had it to where it returned Login(). Instead, you should use ..(), and, you should put a ..() after all your checks and such are done. thats because ppl keep picking their subjob as their main job -_- ill just try all the fixes you already said and hope for the best, thanks. |