ID:565758
 
Keywords: , login
(See the best response by DarkCampainger.)
Code:
..()


Problem description:
whenever i login and i finish creating my character everything resets again from the beginning meaning i go back to the start of my character creation.i was wondering if the ..() is responsible for this.i have put it on every login

It shouldn't, but you'll have to be more specific about how you're using it. How many Login() processes do you have, for what types, and why do you want to call the parent type's Login()?

It's more likely that you're changing client.mob to a new mob, causing Login() to be called on that mob.
i have 3 login()
mob
verb
done()
set hidden=1
set category="Skinverbs"
src.client.mob = new_mob
new_mob.name=char_name
new_mob.oocname=char_name
new_mob.defualticon=new_mob.icon
winshow(src,"loginwin",0)
winshow(src,"raceselectionwin",0)
winshow(src,"main",1)

this the button i have you press to take you to main but it dosent it takes you back to square one loginwin


mob
Login()
..()
winshow(src,"loginwin",1)
winshow(src,"main",0)
winshow(src,"raceselectionwin",0)
src.online=1

and they look similar to this
Best response
One solution would be to use a separate /mob type for players logging in so you can make sure only "new" players get that Login() code executed on them. Otherwise, your Login() will restart the character creation when you change the client.mob in done().

Here's an example:
world/mob = /mob/connection // When new players join the server, they'll login to a special type

mob
connection
Login()
winshow(src,"loginwin",1)
winshow(src,"main",0)
winshow(src,"raceselectionwin",0)
src.online=1

verb
done()
set hidden=1
set category="Skinverbs"
new_mob.name=char_name
new_mob.oocname=char_name
new_mob.defualticon=new_mob.icon
winshow(src.client,"loginwin",0)
winshow(src.client,"raceselectionwin",0)
winshow(src.client,"main",1)
src.client.mob = new_mob


And then you put your actual "player" mob under a different type. That way, when the client's mob is changed and Login() is called on that new mob, it doesn't rerun the character creation code.
BRILLIANT..it worked