mob/Logout()
world << "[src] has left this world."
del(src)
what do I put to make it show char name instead of key?
ID:148119
![]() Jul 4 2003, 7:21 am
|
|
Try this in your login..
mob/Login Then go back to my first post about the Logout(). -Camaro- |
Then Camaro's first post shows you how to do it and it will work perfectly. It will show the name var of the mob logging out.
|
Yes Comaros should have worked, but you can try this. [src:name], this is if you set the var to only the mobs and it will be buggy later on in your process of game making
|
Crashed wrote:
Yes Comaros should have worked, but you can try this. [src:name], this is if you set the var to only the mobs and it will be buggy later on in your process of game making There is absolutely no excuse for using the : operator with src. It's bad enough to suggest using it for other situations, but the type of src is always known (unless you monkey around with it, anyway). If src.name isn't working, src:name would work no differently. And src:anything is completely inane--never ever ever do that. Lummox JR |
I just made a test and there is nothing wrong with using src to tell their current name when they logout. Are you sure your name is different than your key?
|
Super16 wrote:
I just made a test and there is nothing wrong with using src to tell their current name when they logout. Are you sure your name is different than your key? Well, src.name (or just name) is actually preferable because if you use src, it will put "The" in front of any lowercase name. Lummox JR |
-Camaro-