I'm trying to make a script that send a series of commands to the mud, and captures its consecutive output to a notepad file. I've been looking at the scripting and LUA pages, but i'm overwhelmed. I've been able to send open a notepad file, sends the commands, but how do I redirect the generated output to the notepad file? I don't know how long the output will be from the several commands. This is what I have so far:
Note "Running script."
AppendToNotepad("HEADING")
Send ("command 1 Broud")
?CAPTURE OUTPUT for 1?
Send ("command 2 Broud")
?CAPTURE OUTPUT for 2?
....
Send ("command 19 Broud")
?CAPTURE OUTPUT for 19?
I'm doing a series of 19 commands to log several items to the notepad file. So... my next question is, how do i put i a for-do loop for the commands... :)
Note "Running script."
AppendToNotepad("HEADING")
Send ("command 1 Broud")
?CAPTURE OUTPUT for 1?
Send ("command 2 Broud")
?CAPTURE OUTPUT for 2?
....
Send ("command 19 Broud")
?CAPTURE OUTPUT for 19?
I'm doing a series of 19 commands to log several items to the notepad file. So... my next question is, how do i put i a for-do loop for the commands... :)