|
||
|
|||||||
| Razor: The Cutting Edge UO Assistant Razor is an Assistant program (similar to the popular UOAssist) for player run Ultima Online shards. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Sep 2004
Age: 32
Posts: 4
|
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- |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
|
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 |
|
|
|
|
|
#3 (permalink) |
|
Join Date: Sep 2004
Age: 32
Posts: 4
|
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. |
|
|
|
|
|
#4 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|