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 08-24-2007, 01:43 AM   #1 (permalink)
Lurker
 
Join Date: Aug 2007
Posts: 3
Default Blacksmithy Macro Syntax & If (SysMessage) ...

Hi,

I'm having issues getting my blacksmithing macro to work, and I think it's just a simple matter of syntax.

Here's my macro, which is intended to (a) make gorgets continually until there's a skill gain; (b) pause for five minutes when there's a skill gain; and (c) loop.

Here's the code:

Code:
Assistant.Macros.DoubleClickTypeAction|4027|True
Assistant.Macros.WaitForGumpAction|2002155655|False|300
Assistant.Macros.GumpResponseAction|16|0|0
Assistant.Macros.WaitForGumpAction|2002155655|False|300
Assistant.Macros.GumpResponseAction|0|0|0
Assistant.Macros.IfAction|4|0|has increased by
Assistant.Macros.PauseAction|00:05:00
Assistant.Macros.EndIfAction
As programmed through the interface, the macro looks like this:

Code:
Double Click (tongs (0FBB))
Wait for Gump (any)
Gump Reponse (Button 16)
Wait for Gump (any)
Close Gump
If (Sysmessage "has increased by 0.1")
Pause 300.00sec
End If
Loop
Ideas? I'm pretty sure its the "has increased by" message that's tweaking the macro. I've tried a bunch of variations, but probably not the correct one.

As it is, the macro never pauses, even after I see the "Your skill in Blacksmithing has increased by 0.1 ..." or whatever the message is. This is a RunUO shard.

Thanks -- love the program!

Last edited by orkspace; 08-24-2007 at 01:49 AM. Reason: clarified the question
orkspace is offline   Reply With Quote
Old 08-24-2007, 02:40 AM   #2 (permalink)
Forum Expert
 
Join Date: Jun 2006
Location: Texas
Age: 24
Posts: 1,160
Default

I'm almost entirely sure you need to put the beginning of the text in the if statement for it to work... I'd try "If Sysmsg 'your skill in' and see if it works.
__________________
"How do you kill that which has no life?"
dxmfixation is offline   Reply With Quote
Old 08-24-2007, 02:48 AM   #3 (permalink)
Lurker
 
Join Date: Aug 2007
Posts: 3
Default

No such luck -- the if clause isn't triggered by the string "Your skill in Blacksmithy has increased by 0.1%."

The exact language of a sample message is: "Your skill in Blacksmithy has increased by 0.1% It is now 86.3%."

Does the Sysmessage need to see the entire string? Is there a way to insert a wildcard?

Thanks for the advice.
orkspace is offline   Reply With Quote
Old 08-24-2007, 02:51 AM   #4 (permalink)
Forum Expert
 
Join Date: Jun 2006
Location: Texas
Age: 24
Posts: 1,160
Default

No, as a general rule you only need somewhere near the first 3 or 4 words for it to work. For instance I use "You create" for the system msg to let my macro know I broke my tool.

Let me try a few things and get back to you.
__________________
"How do you kill that which has no life?"
dxmfixation is offline   Reply With Quote
Old 08-24-2007, 02:56 AM   #5 (permalink)
Forum Expert
 
Join Date: Jun 2006
Location: Texas
Age: 24
Posts: 1,160
Default

Got it... you need to go to the skill tab and select the option "display skill and stat changes" to get a sys msg that Razor can see... the syntax is as above "your skill in".
__________________
"How do you kill that which has no life?"
dxmfixation is offline   Reply With Quote
Old 08-24-2007, 03:11 AM   #6 (permalink)
Lurker
 
Join Date: Aug 2007
Posts: 3
Default

Perfect, that nailed it. Much obliged!
orkspace is offline   Reply With Quote
Old 08-24-2007, 03:13 AM   #7 (permalink)
Forum Expert
 
Join Date: Jun 2006
Location: Texas
Age: 24
Posts: 1,160
Default

Anytime, I answer all questions for reputation hits I'm such a forum junkie...
__________________
"How do you kill that which has no life?"

Last edited by dxmfixation; 08-24-2007 at 03:19 AM.
dxmfixation 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