Page 1 of 1
Need help with a stealing macro
Posted: Thu Mar 25, 2010 7:26 am
by Oswald
I find the Razor macro UI pretty intuitive as long as you stay within the limits of what you can do with point and click, but I want to put in some kind of counter so that I can periodically feed my tamed animal.
Anyone know how I can do this?
Re: Need help with a stealing macro
Posted: Thu Mar 25, 2010 7:47 am
by Bag
record dragging pouch, dropping on tamed animal.
steal
pause 1s
if sysmessage "successful"
drag pouch
drop on llama
pause 9s
else
pause 9s
edit: just realized you meant actually feed it apples. below post is right.
Re: Need help with a stealing macro
Posted: Thu Mar 25, 2010 7:58 am
by Hicha
Oswald wrote:I find the Razor macro UI pretty intuitive as long as you stay within the limits of what you can do with point and click, but I want to put in some kind of counter so that I can periodically feed my tamed animal.
Anyone know how I can do this?
Put your stealing macro inside a For/next loop with a bunch of iterations, then after the loop record your feeding macro.
Code: Select all
For (1 to 20)
Use stealing
Wait for target
Absolute target (bag on packhorse)
Pause 1 sec
If weight > 36 (set to your weight before stealin the pack)
Lift pouch
Drop to Packhorse
End If
Pause 9 secs
End For
Lift 1 apple
Drop to packhorse
[x] Loop
Re: Need help with a stealing macro
Posted: Thu Mar 25, 2010 11:45 am
by Oswald
Is this possible from within the razor UI or do I need to edit the macro file itself?
If macro file, is that syntactically correct or just pseudo code?
Thanks a bunch, both of you.
Re: Need help with a stealing macro
Posted: Thu Mar 25, 2010 1:11 pm
by Hicha
Oswald wrote:Is this possible from within the razor UI or do I need to edit the macro file itself?
If macro file, is that syntactically correct or just pseudo code?
Thanks a bunch, both of you.
Entirely possible from within Razor, and its more pseudo code but it should be pretty accurate as to what exactly you want the macro to be doing.
You can go either route; having the macro look for the "success" sysmessage or by weight; I prefer to go by weight as other system messages have interrupted my macro in the past.