Razor macro help

Name says it all
Locked
User avatar
trikky
Elder Scribe
Posts: 172
Joined: Thu Apr 06, 2006 2:28 pm
Location: Wakefield, uk
Contact:

Razor macro help

Post by trikky »

Ok......Maybe....maybenot...

I know this isn't the best place for this.....But I'm looking for someone that can help me bugfix this razor macro I made....

If I can't get help here then I'll have to post it in the razor forums and live with the chance of getting called a nuub...

Anyway...the macro....
Its built to find any wool and spin it and use the yarn on a loom.....

!Loop
Assistant.Macros.IfAction|50|1|1|wool
Assistant.Macros.DoubleClickTypeAction|3576|True
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.AbsoluteTargetAction|0|0|1074456981|850|2260|7|4121
Assistant.Macros.DoubleClickTypeAction|3576|True
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.AbsoluteTargetAction|0|0|1074456981|850|2260|7|4121
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|50|1|1|yarn
Assistant.Macros.DoubleClickTypeAction|3613|True
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.TargetTypeAction|False|4193
Assistant.Macros.DoubleClickTypeAction|3613|True
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.TargetTypeAction|False|4193
Assistant.Macros.EndIfAction
Assistant.Macros.PauseAction|00:00:01

My problem is that even though both individual parts work...I want it to auto stop when the yarn gets to 0 rather than just keep mindlessly zipping through the script as it does now

The downloadable file can be found at ....
http://www.sendspace.com/file/xr4co5

Any help would be great!
--
CaMg(CO3)2 - Its Dolomite baby.....Dolomite!
User avatar
+Colibri
Administrator
Posts: 4067
Joined: Sat Feb 25, 2006 4:08 pm
Location: static void Main

Post by +Colibri »

thinking of razor really breaks the gears in my head right now :)

I think you will need to experiment with those special actions.
1. Go to "hot keys", expand the "Macros" field, there you will see a command for "stop macro".
2. Assign a shortkey for it
3. begin recording a macro, and hit that keycombination you set for "stop"
4. go to your macros folder and check the one you just recorded - then copy-paste the line to where you want it in your real macro.

This works for all kinds of stuff, you can also run organizer agents or target certain objects... Good luck.
+Colibri, Administrator of UO Excelsior Shard

Don't know what the purpose of your life is? Well then make something up! ;)
(Old Colibrian proverb)
User avatar
Pip
Legendary Scribe
Posts: 235
Joined: Sun Feb 26, 2006 8:33 am
Location: North Florida USA
Contact:

Post by Pip »

that or you can just do what i do and use the insert special constructs inset "for loop" = to a certian number and at the end insert "end for"
User avatar
trikky
Elder Scribe
Posts: 172
Joined: Thu Apr 06, 2006 2:28 pm
Location: Wakefield, uk
Contact:

Post by trikky »

*Edited cos I'm an idiot and didn't read it properly*

No...I need to to look at the amount of wool and yarn...

If there is wool...then spin it...if there is yarn then put it on the loom....

When the woll is used up then stop that routine...when yarn is all gone then stop *all* routines

But i can't get it to do it....

And Col.....I tried adding in the keypress.....But it just keeps running through the macro....It may be waiting for me to press a key

You woudl have thought they woudl have put in a simple If command...
If ITEMCOUNT <= 0 STOP

Terrible oversight if you ask me...

Oh well....I have given up.....Razor macros are too limited....

I'm gonna go back to autopilot.....I have a very good macro on there that will do it all and place it on a key for me.
But the problem is that its another program to have running and I can't swap windows.....
Oh well.....It was worth a try....

Thanks for the help guys
--
CaMg(CO3)2 - Its Dolomite baby.....Dolomite!
User avatar
trikky
Elder Scribe
Posts: 172
Joined: Thu Apr 06, 2006 2:28 pm
Location: Wakefield, uk
Contact:

Post by trikky »

AHA!!!!

Did it....(Thanks Col!)

I was doing the instructions wrong....
I was wrapping the whole thing in an 'If' command

That was why it was going wrong.....
I had to put the If yarn <= 0 at the end in its own part....

Assistant.Macros.IfAction|50|0|0|yarn
Assistant.Macros.HotKeyAction|1083|
Assistant.Macros.EndIfAction

I have no idea why that was so stupidly hard to make.....

On a side note....I have 120 odd bolts of cloth....If anyone needs any PM Kalamain !!!!! hehehe!
--
CaMg(CO3)2 - Its Dolomite baby.....Dolomite!
Locked