Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Rowene
Beginner


Joined: 11 Jan 2002
Posts: 27
Location: United Kingdom

PostPosted: Mon Jun 10, 2002 11:04 am   

Importing an MSWord file into an existing db
 
Is it possible to import an MSword file of equipment stats into an exisitng equipment db?

The MSWord file is approximately 200 pages long ( so i don't realy want to re-id everything )

Each item is recorded just as it was output from the MUD (i just cut and pasted), the existing db triggers are based on the example given the Zmud helpfiles, and fire off the word Identify...

Examples of the file item listings are:

Object 'demon fire' is type armor , Weight is 5, value is 9000, level is 34.
Wear bits: take forearms right left
Extra bits: hum evil magic
It appears to be made of flame.
It is of average quality and in perfect condition.
Armor class is 9 pierce, 9 bash, 11 slash, and 1 vs. magic
bulk 5, armor bonus 0
Armor flags: shield
Affects damage by 2.
Affects ac by -5.

Object 'hand grasping orb' is type light , Weight is 3, value is 0, level is 39.
Wear bits: take held either right left
Extra bits: glow magic
It is of average quality and in perfect condition.
Affects damage by 1.
Affects mana by 50.



Thanks in advance.....
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Mon Jun 10, 2002 11:18 am   
 
I think the easiest method to do would be to open a new window, display the entire contents of the file in the window, and then have triggers capture the information into the database. I did that for tradewars 2002 CIM data.

You can convert the MS Word file into normal text easily in MS Word.
Reply with quote
Rowene
Beginner


Joined: 11 Jan 2002
Posts: 27
Location: United Kingdom

PostPosted: Mon Jun 10, 2002 2:23 pm   
 
Hmm bit slow today.

How would you actually do this? is this done by opening the .txt file in ZMud, and enabling all the triggers for the database?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jun 10, 2002 5:08 pm   
 
Create the triggers to capture the output from the identify just as if your MUD was sending the output, then have zMUD display the file using the #SH command. Example:
#FILE 1 log.txt
#LOOP %filesize(1) {#SH %read(1)}
#CLOSE 1

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net