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-25-2004, 05:18 AM   #1 (permalink)
 
Join Date: Aug 2004
Age: 24
Posts: 1
Default Fishing macro questions

I'm working on a fishing macro. I have a problem, and a question. I'm wondering if there's a way to include hiding in an If statement, so that if I'm not hiding, it will use the hiding skill until I am, then continue fishing. I'm using this with a boat.
Also, I'm having problems with the If sysmessage command. I'm using it when an area runs dry, on the "The fish don't seem to be biting here." message, then moving the boat, but it doesn't seem to be working. Any suggestions?

Current script:
Double Click (fishing pole)
Wait for Target
Pause 8.00 Sec //Wait until skill used again
Target RelLoc (x,y) //Relative location used to switch target when boat moves
if (JournalContains "The fish don't seem to be biting here.")
Say: forward
Pause 4.00sec
Say: stop
End If
brayburn is offline   Reply With Quote
Old 08-25-2004, 02:36 PM   #2 (permalink)
 
Join Date: Aug 2004
Location: Fort Worth Texas, USA
Age: 40
Posts: 114
Default

Try this script:

Double Click (fishing pole)
Wait for Target
Target RelLoc (x,y) //Relative location used to switch target when boat moves
Pause 8.00 Sec //Wait until skill used again
if (JournalContains " fish don't seem.")
Say: forward one..........\
Pause .650sec...............|
Say: forward one.......... |
Pause .650sec...............|
Say: forward one.......... |
Pause .650sec...............|
Say: forward one.......... |
Pause .650sec............... > Or you can use a program called 8x8
Say: forward one.......... |
Pause .650sec...............|
Say: forward one.......... |
Pause .650sec...............|
Say: forward one.......... |
Pause .650sec...............|
Say: forward one.......... |
Pause .650sec…………….. /
End If
UseSkill Hiding
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
KoJawn is offline   Reply With Quote
Old 09-05-2004, 04:30 PM   #3 (permalink)
 
Join Date: Aug 2003
Posts: 8
Default

Quote:
if (JournalContains "The fish don't seem to be biting here.")
Say: forward
Pause 4.00sec
Say: stop
End If
can someone explain in a bit more detail how to do this part?
Toolbandfan is offline   Reply With Quote
Old 09-05-2004, 04:39 PM   #4 (permalink)
 
Join Date: Mar 2004
Location: Skei's Haven, Krynn
Age: 34
Posts: 38
Default

Quote:
Originally Posted by KoJawn
UseSkill Hiding
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
If (JournalContains “can’t seem to hide”
UseSkill Hiding
Else
End If
what about nested Ifs instead?

Code:
   If (JournalContains “can’t seem to hide”
    UseSkill Hiding
    Else
    Useskill Hiding
      If (JournalContains “can’t seem to hide”
      UseSkill Hiding
      Else
      Useskill Hiding
        If (JournalContains “can’t seem to hide”
        UseSkill Hiding
        Else
        Useskill Hiding
           If (JournalContains “can’t seem to hide”
           UseSkill Hiding
           Else
           Useskill Hiding
             If (JournalContains “can’t seem to hide”
             UseSkill Hiding
             Else
             Useskill Hiding
           EndIf
        EndIf
      EndIf
    EndIf
  EndIf
blue_drac is offline   Reply With Quote
Old 09-05-2004, 04:42 PM   #5 (permalink)
 
Join Date: Mar 2004
Location: Skei's Haven, Krynn
Age: 34
Posts: 38
Default

Quote:
Originally Posted by Toolbandfan
can someone explain in a bit more detail how to do this part?
  1. Right click on macro section of window
  2. Select insert "if"
  3. Drop down box, select "Sysmessage"
  4. Manually type what you're looking for....


    Note: The whole phrase doesn't usually work. Try extracting a unique portion from the middle of the phrase
blue_drac is offline   Reply With Quote
Old 09-05-2004, 09:23 PM   #6 (permalink)
 
Join Date: Aug 2003
Posts: 8
Default

Quote:
Originally Posted by blue_drac
  1. Right click on macro section of window
  2. Select insert "if"
  3. Drop down box, select "Sysmessage"
  4. Manually type what you're looking for....


    Note: The whole phrase doesn't usually work. Try extracting a unique portion from the middle of the phrase
what about the rest of it though? There is nothing I see to add the "say: forward" part.
Toolbandfan is offline   Reply With Quote
Old 09-06-2004, 08:57 AM   #7 (permalink)
 
Join Date: Aug 2004
Age: 34
Posts: 12
Default

Quote:
Originally Posted by blue_drac
what about nested Ifs instead?

Code:
   If (JournalContains “can’t seem to hide”
    UseSkill Hiding
    Else
    Useskill Hiding
      If (JournalContains “can’t seem to hide”
      UseSkill Hiding
      Else
      Useskill Hiding
        If (JournalContains “can’t seem to hide”
        UseSkill Hiding
        Else
        Useskill Hiding
           If (JournalContains “can’t seem to hide”
           UseSkill Hiding
           Else
           Useskill Hiding
             If (JournalContains “can’t seem to hide”
             UseSkill Hiding
             Else
             Useskill Hiding
           EndIf
        EndIf
      EndIf
    EndIf
  EndIf
You nested ifs will mess up... If you fail the 1st hiding (The one before the script starts) you will execute Hide and skip all else branches afterwards. This setup will only execute 1 hiding at all... and this one Hiding will be executed no matter if you succeed or fail.

I contrast the sequential ifs will do exactly what you want. Since ifYournal... Only checks back to the point where it last checked. So if the 1st IF finds a failed Hide attempt then the 2nd IF will only find a failed HIDE SINCE the last check. If you succeeded then there wont be an entry and Razor will skip all your futher hiding ifs...

Hope this makes sense...

[Edited for better explanaition why this setup fails]
Purethief is offline   Reply With Quote
Old 09-08-2004, 04:07 PM   #8 (permalink)
 
Join Date: Mar 2004
Location: Skei's Haven, Krynn
Age: 34
Posts: 38
Default

Quote:
Originally Posted by Toolbandfan
what about the rest of it though? There is nothing I see to add the "say: forward" part.
This is where it gets tricky....

Type "forward one" in the main UO screen and hit Enter.

Your avatar will speak "forward one", the tiller will hear it, and move the boat forward at a fast speed one tick. That's a total of two tiles.

Unfortunately, "ahead slow one" is not a command your tiller recognizes, if you only want to move ahead one tile. I generally use the "back one" or "right/left one" commands for moving single tiles
blue_drac 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