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
ixy
Novice


Joined: 18 Mar 2007
Posts: 39

PostPosted: Fri Apr 06, 2007 11:48 pm   

Capturing text into a database
 
Say i want to capture the id of a item


[*]<3151hp 3313sp 3291st> c id aura
You begin to speak the words of the spell...

[*]<3151hp 3313sp 3291st>
You have completed your casting.
Item 'Aura of ChaoS' is type artifact, alignment 351, made of energy,
has keywords 'spectral aura glow donation', and can be equipped as an aura.
This item weighs 0 stones and 5 pebbles, and is valued at 84 gp.
This level 45 item has the attributes: identified nodrop no-sac no-auction no-donate donation no-mimic insulated nouncurse unbreakable nodecay
Aura of ChaoS is in excellent condition.
This item has a default lifespan of 365 days and will expire on Wed Sep 19 12:54:40 2007.
Affects spell-points by 75 for -1 minutes.
Affects stamina by 75 for -1 minutes.
Affects hp by 100 for -1 minutes.
Affects ar by 9 for -1 minutes.


[*]<3151hp 3320sp 3291st> c id ele
You begin to speak the words of the spell...

[*]<3151hp 3323sp 3291st> {+0hp +3sp +0st}

You have completed your casting.
Item 'a bracelet of the elements' is type jewelry, alignment 0, made of scales,
has keywords 'elements bracelet', and can be equipped on the wrist.
This item weighs 0 stones and 10 pebbles, and is valued at 57,000 gp.
This level 220 item has the attributes: identified no-auction insulated
A bracelet of the elements is in excellent condition.
Affects saving-breath by 3 for -1 minutes.
Can be used to cast the level 120 spell, 'improved invisibility'.
*This item may be repaired 9 more times.

or from auction channel...

auc id
A small imp appears before you in a puff of smoke.
The imp shows you a tablet upon which is written:
This item is up for auction from Waylander.
Item 'a draconian hammer' is type weapon, alignment 0, made of palladium,
has keywords 'hammer weapon', and can be equipped wielded as a weapon.
This item weighs 0 stones and 64 pebbles, and is valued at 36,000 gp.
This level 160 item has the attributes: insulated
A draconian hammer is in excellent condition.
Weapon type is maul, does 147 points of bash damage for 1 stamina, accuracy 11.
With your knowledge of 'maul', this weapon can cause 206 damage against 0 ar.
Special weapon attributes: vampiric
Affects accuracy by 3 for -1 minutes.
*This item may be repaired 7 more times.
This is a sturdy hammer made of palladium, the design suggests it was
made by a master draconian craftsman. If you listen closely you notice that
the hammer is humming, you wonder what this might be an indication of.
Looking closely you see the likeness of a vampire carved into the handle.
This is a most curious weapon.
The minimum bid on this item is [5,000] gp.
No bids on this item have been received.
The imp disappears with an ear-splitting BANG!

Is there a way to capture the text of the item and add it into a database, i toyed with making trigs to add individual strings, but i would need around 70 just for the various affects items can add...
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