 |
Kamian Beginner
Joined: 25 Oct 2000 Posts: 11 Location: USA
|
Posted: Sun Nov 28, 2010 1:33 am
Auto log to offline |
Zmud 7.21
Is there a way to use a command from one window to log another window, but it start up offline? don't want it to connect, just open up the instance and then I can input some info to start up... |
|
|
 |
Kamian Beginner
Joined: 25 Oct 2000 Posts: 11 Location: USA
|
Posted: Sat Dec 04, 2010 7:22 am |
Ok.. 52 views, no ideas.. is the initial request too vague, or is this one stumping people?
I can use the #ses command to start a new session, but I want it to start up a roller, and then I'll focus character to that window and load up the variables for that file.. I.E.:
in the main window:
#ses roller1 (starts new session)
roller1:#read my orc vamp.txt (reads a txt file of variable to populate race, class, names, stats, etc)
#connect (connects and the script starts the rolling process)
the actual segment in the roller script is:
Code: |
#pr filename "Input the character filename"
str=9;int=9;wis=9;dex=9;con=9;cha=9;luck=9;namelist="";dumbnamenumber=1;namenumber=0;statpoints=0
#var a1 %concat("C:\zMUD\RealmsofDespair\Reroll 1.4\",@filename,".txt")
#read @a1
#math statpoints (@str+@int+@wis+@dex+@con+@cha+@luck)
#if (@statpoints > 95) {#say Error, Stat points > 95 points} {#say Connecting...;#connect}
|
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 06, 2010 12:39 am |
It was a little vague for one. Second remember that most folks (except Zugg and Chiara are volunteers). Also you are using zMUD 7.21 which is at EOL and code frozen.
Onto to your problem though. What exactly do you mean by LOG to another window. If you want the text to put the text to another window then the #CAPTURE is probably what you want.
If you want to log to a file then you want to use #LOG.
If all you want to do is open a new window to run some code, why do a new session at all, why not just create a new window using #WINDOW? |
|
_________________ Asati di tempari! |
|
|
 |
Kamian Beginner
Joined: 25 Oct 2000 Posts: 11 Location: USA
|
Posted: Mon Dec 06, 2010 4:11 pm |
Oh.. I understand that it is EOL, so I wasn't expecting "official" support. and that 99.999% of responses and assistance is all volunteer. I did not mean to imply impatience. I just know there are some very knowlegable individuals that forget more about zmud while they sleep than I'll ever know *lol*. I just wondered if I needed to add more information so that people would know where I was going and what I was wanting to do.
What I mean by log.. was start a new session for multi-play. from the main window, #ses roller. it opens up an additional session to play.. it appears that by default, zmud tries to connect to the mud that is associated with that character name. I would like it to open up a new session with the scripts for that character (in this case, a roller script), but not connect. I would then focus change to that window, and load a set of variables (name, class, stats, etc), THEN connect to the mud and start it. |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 06, 2010 6:07 pm |
To my knowledge, the #SESSION command automatically tries to connect, but if you send a #DISCONNECT immediately, it will stop the connection. The you can send #CONNECT to reconnect after you have set up your desired variables.
|
|
_________________ Asati di tempari! |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|