ID:164928
Mar 26 2007, 2:01 am
|
|
Where would I place coding so that when the player logs in he starts sleeping for 10 seconds and it does not repeat?
|
Mar 26 2007, 3:39 am
|
|
look up Login() in help or better yet the DM Guide. This is where you would put it, but it's a good idea to know about the built in proc you are modifying...
|
In response to Jik
|
|
Jik's got good advice, but I'd just like to add to what he's saying about knowing what the proc does and when it is used.
Login() is called every time a client is connected to a mob. So if you have anything in your game (or add down the road) something that sets the clients mob, then Login() will be called again if it's under the type or one of the ancestors of the newly connected mob. This can present some undesirable effects. In addition to researching Login() I would also advise you to look into client/New(). |
In response to Zagreus
|
|
mob/Login() By the way I understand it you want somting like this? |
In response to Jazzyfizzle
|
|
Sleep() is not capitalized, and I think he meant literally sleeping. Like either can't see and move or just end up in a bed or something of that sort.
|
In response to Pyro_dragons
|
|
Pyro_dragons wrote:
Sleep() is not capitalized, and I think he meant literally sleeping. Like either can't see and move or just end up in a bed or something of that sort. Yeah, your probably right. From my observation he has little to no experience with DM programming and probably doesn't even know about the sleep command. |