Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Razor: The Cutting Edge UO Assistant

Razor: The Cutting Edge UO Assistant Razor is an Assistant program (similar to the popular UOAssist) for player run Ultima Online shards.

Reply
 
Thread Tools Display Modes
Old 09-09-2004, 08:30 AM   #1 (permalink)
 
Join Date: Sep 2004
Age: 32
Posts: 4
Default Macro Questions

Is there anywhere I can find detailed documentation about the macro section of razor? Specifically, I am looking for some of the following features:

1) Wait for any number of text strings in the sysmessages.
2) Play a sound (*.WAV) within a razor macro.
3) Do/While Loop constructs

Any input would be appreciated.
Thanks
-RJ-
RaspenJho is offline   Reply With Quote
Old 09-09-2004, 10:07 AM   #2 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

1 is pretty easy, just right click and insert an if statement.

There is no support for 2, and I doubt there ever will be.

There is no support for 3, and I KNOW there NEVER will be.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 09-09-2004, 10:54 AM   #3 (permalink)
 
Join Date: Sep 2004
Age: 32
Posts: 4
Default

An IF statement is not exactly what I was asking about. The IF will evaluate the contents of the journal at this point in time, and allow code execution to continute either within the IF condition, or the ELSE condition, or, with the lack of an ELSE condition, continue with the line following the END IF.

A wait for statement would wait for given text to appear in the journal before returning, or return after a specified timeout value. I was hoping for something like this:

/* string WaitFor( string[] patterns, int timeout ) { ... } */

strMatch = WaitFor( {"You pull out an item", "don't seem to be biting", "fail to catch" }, 10500)

With strMatch containing the text that matched, or String.Empty in the case of a timeout.
RaspenJho is offline   Reply With Quote
Old 09-10-2004, 04:06 AM   #4 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

No.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 09-10-2004, 04:57 AM   #5 (permalink)
 
Join Date: Aug 2004
Age: 34
Posts: 12
Default

How about allowing regexp patterns for comparing those strings?


if syslog contains "You pull out an item|don't seem to be biting|fail to catch"
Purethief is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5