Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[Razor] Bales of Cotton to Bolts of Cloth Macro
#1

Here's a macro to help anyone doing tailoring and collecting the cotton themselves instead of buying cloth.

Description:
This macro will spin a bale of cotton on a loom and while that is going (this takes about 3 seconds), the macro will run 5 threads through a loom to give you a bolt of cloth.

Update:

I revised the macro a little bit since I find this works better. Open it up in Razor to check it out. Revised macro posted below.

I also added a weight check to the macro so when you hit 430 stones or more the macro just stops. If you want to recall and deposit your bolts of cloth in the bank use the macro in this post.

Main Macro:

Quote:!Loop
Assistant.Macros.IfAction|5|1|430
Assistant.Macros.HotKeyAction|1083|
Assistant.Macros.EndIfAction
Assistant.Macros.ElseAction
Assistant.Macros.ForAction|6
Assistant.Macros.DoubleClickTypeAction|3577|True
Assistant.Macros.IfAction|4|0|no item of type bale%s% of cotton (0df9) found!
Assistant.Macros.HotKeyAction|0|Play: Skill Training\Crafting\Threads to Cloth
Assistant.Macros.ElseAction
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.TargetTypeAction|False|4117
Assistant.Macros.SpeechAction|0|52|3|ENC|2|16|7|guards
Assistant.Macros.ForAction|5
Assistant.Macros.DoubleClickTypeAction|4000|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.TargetTypeAction|False|4194
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.EndForAction
Assistant.Macros.EndForAction

Notes on the main macro:
  1. For some reason the line where the macro says guards is adding a space in the middle of the word so make sure this isn't there when you copy it.

  2. You'll have 1 leftover thread for each bale of cotton and we take care of all those leftovers with these two lines:

    Quote:Assistant.Macros.IfAction|4|0|no item of type bale%s% of cotton (0df9) found!
    Assistant.Macros.HotKeyAction|0|Play: Threads to Cloth

    The line that says: "Assistant.Macros.HotKeyAction|0|Play: Threads to Cloth" points to this next macro that loops threads to bolts of cloth. I added this as a second macro since it's a little faster then going through the if statements of the main macro and going through the for loop.

Secondary Macro:

Quote:!Loop
Assistant.Macros.DoubleClickTypeAction|4000|True
Assistant.Macros.IfAction|4|0|no item of type spool%s% of thread (0fa0) found!
Assistant.Macros.HotKeyAction|1083|
Assistant.Macros.ElseAction
Assistant.Macros.TargetTypeAction|False|4194

Let me know if you have any trouble with these macros or suggestions.

Go to the Macros folder in the Razor folder (a common place for Razor is C:\Program Files\Razor), make 2 New Text Documents and change the extension to ".macro" instead of ".txt". Copy the macros above in the quotes into the new files and save and close the file. Restart Razor and your new macros should be there.


Messages In This Thread
[Razor] Bales of Cotton to Bolts of Cloth Macro - by Eighty Swords - 04-06-2009, 03:26 AM
[Razor] Bales of Cotton to Bolts of Cloth Macro - by imported_Odium - 04-06-2009, 08:20 AM
[Razor] Bales of Cotton to Bolts of Cloth Macro - by Eighty Swords - 04-06-2009, 02:08 PM
[Razor] Bales of Cotton to Bolts of Cloth Macro - by Eighty Swords - 04-19-2009, 06:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)