|
kiraile Newbie
Joined: 31 Jan 2003 Posts: 4 Location: Germany
|
Posted: Fri Dec 21, 2007 7:27 pm
importing .txt files |
hi
i am having a problem importing scripts from txt files. i just cant seem to find how to do it.
the package editor has a menu option but t does nothing unless i have a trgger/alias highlighted and then it just pastes the script into the trigger.
what i want to do is import the full script and not 1 trigger at a time.
any ideas? |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Fri Dec 21, 2007 7:40 pm |
For most things you can open the text file. select all, copy, then paste into the command line and hit enter.
It has been a while since I tried to import a text file the correct way but I think it goes like this.
Nevermind... There doesn't appear to be a correct way other than what I just mentioned. Maybe someone else will see what I missed.
Be sure to check your database variables after the import as you may still need to import them manually... |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Fri Dec 21, 2007 7:44 pm |
BTW make sure that word wrap is turned OFF in the text editor that you are copying from.
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
kiraile Newbie
Joined: 31 Jan 2003 Posts: 4 Location: Germany
|
Posted: Fri Dec 21, 2007 7:48 pm |
thats how i resorted to doig it.
not ideal but at least it works.
thanks |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Dec 21, 2007 8:52 pm |
CMUD doesn't export text files, so it also doesn't import them.
This doesn't really matter, though, since zMUD's exported text files were just command-line parseable text anyway. Pasting it onto the command line will work fine. You can also use the editor to use more advanced features like sending line-by-line. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Fri Dec 21, 2007 10:27 pm |
I haven't tested it but couldn't one use the #READ command to accomplish this?
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Dec 21, 2007 10:46 pm |
You could, yes, but that'd require putting the file in a directory where CMUD will find it, or using an absolute path. It'd probably be more convenient to use the GUI.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jan 07, 2008 10:08 pm |
The Actions/Execute Script menu command will also do this.
|
|
|
|
|
|