 |
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: Tue Dec 18, 2007 6:55 pm
Changing Characters |
Is there any way to logout one character and login another one automatically via script, plugin, etc?
Thanks |
|
|
|
 |
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Tue Dec 18, 2007 8:38 pm |
Sure there is...
This assumes quit is your logout command for the MUD you play.
It also assumes you set up a unique session for each character (browse my posts, I have a nice session ID tutorial)
Lastly otherchar is the session ID of the other session, and curchar is the session ID of the current session.
| Code: |
#ALIAS swap {
quit
#WIN otherchar
:otherchar:#CON
#CLOSE curchar
}
|
|
|
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Dec 18, 2007 11:58 pm |
If they use the same layout setup, you might be able to just #LOAD new settings. The fact you have a different layout in play might affect things, though.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: Wed Dec 19, 2007 2:14 am |
| ralgith wrote: |
Sure there is...
This assumes quit is your logout command for the MUD you play.
It also assumes you set up a unique session for each character (browse my posts, I have a nice session ID tutorial)
Lastly otherchar is the session ID of the other session, and curchar is the session ID of the current session.
| Code: |
#ALIAS swap {
quit
#WIN otherchar
:otherchar:#CON
#CLOSE curchar
}
|
|
What if I have several characters all using the same .MUD file?
Also, zmud doesn't like ":otherchar:"
Thanks |
|
|
|
 |
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Wed Dec 19, 2007 5:47 pm |
Otherchar was only a placeholder. You've got to replace it with the session ID of the window.
However if you want to do it all using the same window/mud file... I wont get into it :)
It be horribly a pain IMO. I always create unique windows for all my characters, and either place any settings I want on all in the inherited settings file, OR export them to txt and import into each one. This also allows customization with the NAME of the character, for instance my bank balance (on a 3 char at a time multiplay mud) gets echoed to active screen with each character's name:
Kaelic Balanace: 2,000,000
Kiln Balance: 44,000,000
Your Balance Is: 200000000 coins.
Erian Balance: 200,000,000
This isn't possible with a shared settings file. |
|
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
 |
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: Wed Dec 19, 2007 6:35 pm |
| ralgith wrote: |
Otherchar was only a placeholder. You've got to replace it with the session ID of the window.
However if you want to do it all using the same window/mud file... I wont get into it :)
It be horribly a pain IMO. I always create unique windows for all my characters, and either place any settings I want on all in the inherited settings file, OR export them to txt and import into each one. This also allows customization with the NAME of the character, for instance my bank balance (on a 3 char at a time multiplay mud) gets echoed to active screen with each character's name:
Kaelic Balanace: 2,000,000
Kiln Balance: 44,000,000
Your Balance Is: 200000000 coins.
Erian Balance: 200,000,000
This isn't possible with a shared settings file. |
I have made 3 settings files, and followed your session tutorial.
However :otherchar:#con will not send and :otherchar:test will.
I find it odd that the primary window is labeled primarychar(primarychar) and the otherchar does not have the second name in quotes. Even tho both character sessions are labeled the same way. |
|
|
|
 |
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Thu Dec 20, 2007 11:35 am |
That is weird, I use #CON in that way every day. Try it from the command line. Also, you are using the most recent version (7.21) correct?
|
|
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
 |
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
Posted: Fri Dec 21, 2007 3:56 am |
Yes, 7.21, but even with a brand new install to a new directory i'm having tons of issues it seems. I can;t change the ; character either
|
|
|
|
 |
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Fri Dec 21, 2007 10:55 pm |
Very very strange... I'm wondering if you don't have some kind of parser issue going on. Heh. And all your windows should have a name in parens as well, as that is the session ID. Make double sure that the session ID saved correctly for those sessions.
|
|
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
 |
|
|
|