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
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Fri Jan 03, 2003 4:50 am   

Capturing all text between 2 phrases.
 
Hi! Let me start by saying that i know this has been covered elsewhere. I did a search of the forums on capture, which returned a massive pile of things as you can imagine, so i figured i would just ask.

I have a command called auc info, which will return the following:

The imp shows you a tablet upon which is written:
This item is up for auction from Raerd.
Item 'a silver thorn' is type weapon, alignment 0, made of silver,
has keywords 'silver thorn dagger', and can be equipped wielded as a weapon.
This item weighs 0 stones and 35 pebbles, and is valued at 6,000 gp.
This level 68 item has the attributes: poisoned none
A silver thorn is in excellent condition.
Weapon type is dagger, which does 91 points of type pierce damage, accuracy 14.
With your current knowledge of 'dagger', this weapon will cause 51 points of damage against 0 ar.
*This item may be repaired 6 more times.
Although this thorn, constructed from silver, is not very heavy, you
suspect that it would be deadly in combat. These daggers are the weapon of
choice for members of the Dark Brotherhood, since they are easy to conceal,
and ideal for surprising victims. There is a green liquid upon the point
which you suspect may be a poison of some kind.
The minimum bid on this item is [1,000] gp.
No bids on this item have been received.
The imp disappears with an ear-splitting BANG!

All i want to do is start the capture at:

The imp shows you a tablet upon which is written:

And end the capture at:

The imp disappears with an ear-splitting BANG!

Im not worried about capturing any of that info to variables or whatnot, i just want to put it in another window, as this mud can be spammy, and i just want to reduce my need to scroll.

Thanks for any help.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 03, 2003 5:18 am   
 
#TR {The imp shows you a tablet upon which is written} {:Auction:#CLR;#C+ Auction}
#TR {The imp disappears with an ear-splitting BANG!} {#C-}

If you don't want to clear the window for each auction, remove the #CLR command.

LightBulb
Senior Member
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Fri Jan 03, 2003 5:51 am   
 
Works flawlessly, thanks very much for your time.
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