Razor Macro Questions/Help

Moderator: Support Moderators

Post Reply
EVeee
UOSA Subscriber!
UOSA Subscriber!
Posts: 242
Joined: Tue Dec 16, 2008 2:40 am
Location: Delran. New Jersey

Razor Macro Questions/Help

Post by EVeee »

I'm trying to do some creative stuff & I have some ideas in my head but I don't know if they're possible. So I'm looking for help instead of the days-long trial and error effort.

For starters, is there any way to branch macros together? To have one macro self-terminate and launch anohter separate macro I mean, not If/EndIf....

Also, I'm having trouble nesting one If/End If within another. Why something like this doesn't work, I don't understand :(

If {Mana <=19}
UseSkill Meditation
Pause 4.00sec
If {SysMessage = "You enter a meditative trance."}
Pause 52.00sec
Else
Pause 8.50 sec
UseSkill Meditation
Pause 44.00sec
End If
Pause .80sec
End If

Thanks any help is appreciated.

User avatar
Safir
UOSA Subscriber!
UOSA Subscriber!
Posts: 1062
Joined: Fri Mar 06, 2009 6:07 pm
Location: Stockholm, Sweden
Contact:

Re: Razor Macro Questions/Help

Post by Safir »

EVeee wrote:Also, I'm having trouble nesting one If/End If within another. Why something like this doesn't work, I don't understand :(

If {Mana <=19}
UseSkill Meditation
Pause 4.00sec
If {SysMessage = "You enter a meditative trance."}
Pause 52.00sec
Else
Pause 8.50 sec
UseSkill Meditation
Pause 44.00sec
End If
Pause .80sec
End If

Thanks any help is appreciated.
Okie, first off lemme' say that I don't claim to know jack about Razor. But I believe that if you would get rid of the "Else" part and instead replace it with SysMessage "cannot enter a trance" (or w/e), that the macro should work. And perhaps even add SysMessage "too soon to use another skill" (or sumthin' like that).

I think that the "else" should be used like, if none of the "IF"s apply then do "this thing here below". But I'm not sure about this last part about the "else" though.
Image

Senses
Posts: 316
Joined: Sat Feb 07, 2009 6:34 pm

Re: Razor Macro Questions/Help

Post by Senses »

ya, I think your best bet is to rely on the fail sys message.

if mana < 19
meditate
pause 2 seconds
end if
if sys message = "You cant seem to focus"
pause 8 seconds
meditate
pause 50 seconds
end if
else
pause 50 seconds

though, I have to wonder, what happens if you fail a third time?


I would just use

if mana < 19
meditate
pause 10 seconds

then loop it

as for using a macro in a macro, i have never tried it, but i assume if you set a hotkey for a macro, then add the hotkey into the macro, it will hit that hotkey and switch to the next macro, so I really don't see why it would not work.
Image

EVeee
UOSA Subscriber!
UOSA Subscriber!
Posts: 242
Joined: Tue Dec 16, 2008 2:40 am
Location: Delran. New Jersey

Re: Razor Macro Questions/Help

Post by EVeee »

Senses wrote:as for using a macro in a macro, i have never tried it, but i assume if you set a hotkey for a macro, then add the hotkey into the macro, it will hit that hotkey and switch to the next macro, so I really don't see why it would not work.
I guess I'm going to try a few different things out with the Else and If and I'll post my results back here. Thanks for the help all.

As far as the macro hotkey within a macro though, that's not what I meant either.... yes, if you have something like -

[UseSkill Meditation
Pause 20.00sec
Exec: Play: Item Id]

where "Item Id" is a separate macro, it will launch into Item Id, but it will also go back to doing meditation when it's done with the Item Id macro. I'm looking for a way to completely break off from one macro and into another one. No more Meditation, just Item Id (for example).

User avatar
Safir
UOSA Subscriber!
UOSA Subscriber!
Posts: 1062
Joined: Fri Mar 06, 2009 6:07 pm
Location: Stockholm, Sweden
Contact:

Re: Razor Macro Questions/Help

Post by Safir »

EVeee wrote:I'm looking for a way to completely break off from one macro and into another one.
I'm also very interested in this, please post any results you get.

You can set a hot key for "Stop Current Macro", but that won't help here. I don't know how the hot keys for macros work, say I have a hot key for a Meditating macro, and I press the hot key and start the macro, will it stop when I press the hot key again? If so, this might be the solution. To enter a hot key for the macro you where switching from in your new macro the old one just switched to.
Image

EVeee
UOSA Subscriber!
UOSA Subscriber!
Posts: 242
Joined: Tue Dec 16, 2008 2:40 am
Location: Delran. New Jersey

Re: Razor Macro Questions/Help

Post by EVeee »

As an update, I've discovered that you can make one macro end and another one start discontinuing the first macro. I'm not even really sure about good uses for this yet but it's interesting. To me, anyway.

To use my previous example of:

[UseSkill Meditation
Pause 20.00sec
Exec: Play: Item Id]

If the "Item Id" macro loops, then it will not return to the meditation macro again. However, if it was something like:

!Loop
[UseSkill Meditation
Pause 20.00sec
If {SysMessage = "You enter a meditative trance."}
Exec: Play: Item Id
End If
Pause .80 sec]

Then it would only go to the Item Id macro under certain conditions. And you could have a condition in the Item Id macro as well:

!Loop
[UseSkill ItemId
Pause 20.00sec
If {SysMessage = "You are not certain."}
Exec: Play: Meditation
End If
Pause .80 sec]

And when that condition was met, it would loop the first macro over again. So I'd say you could branch together as may completely separate macros as you want.

As far as usefulness goes, well... I'm sure if this wasn't already known, then someone can think of something amazing but I haven't yet.

User avatar
Safir
UOSA Subscriber!
UOSA Subscriber!
Posts: 1062
Joined: Fri Mar 06, 2009 6:07 pm
Location: Stockholm, Sweden
Contact:

Re: Razor Macro Questions/Help

Post by Safir »

Nice info, ty! If nothing else, it'll make writing long and tedious macros easier by dividing them up and letting them run into eachother. ;)
Image

Post Reply

Return to “New Player Help”