Artisan Archive
Thread: crafting macro (for practice or actual crafting) no need to know the item's schematic id
crafting macro
(for practicing and actual crafting) - no need to know the item's schematic id
because most macros i see are either not working because of mispelt commands, case-insensitivity or are not user friendly (e.g. have a long-winded way of looping, requiring you to count schematics in you datapad, etc.), i've decided to post my macros/toolbar setup.
this post may seem long, but i wanted to be clear on how these macros work.
the actual actions required from the userwhen the macro is running are:
- start macro
- select schematic
- click next
- select materials
- repeat from 2
- stop the macro loop when you want to stop practicing/crafting
the macro texts are at the bottom.
setup:
1. the main macros (craftPracticeLoop and craftLoop) assumes that there are crafting kits in the top slots 9 and 10 in the active toolbar.
if you are particular about where your crafting kits are in the toolbar, you can edit the lines "/ui action toolbarSlot08" and "/ui action toolbarSlot09" to where you have the 2 crafting kits.
2. there are 3 macros: craftPracticeLoop, craftLoop, and stop - used to stop all looping macros.
i use two crafting kits (usually of the same kind) in the macro so that you can start crafting with the second kit while the first is still producing the prototype.
3. drag the macros into the toolbar for easy access.
i have my macros in the same toolbar as my crafting kit so that i don't have to use the macro command to switch toolbars. its also good practice to keep same-type commands/macros in the one toolbar.to use:
4. ensure that you are not near a crafting station so that its experimentation windows don't interfere with the macro.
5. click on "craftPracticeLoop" macro. (or "craftLoop" for when you need to craftseveralitems - e.g. traps, fireworks).
practicing doesn't give you the item and you lose the materials but gives it gives you more xp.6. select the schematic.
7. click next.
8. select the materials but DO NOT click assemble.
the macro will auto-advancethe craftingprocedurefor you. you won't see the crafting window change, so don't be alarmed.9. wait for the macro to auto-advance the procedure.
if you find that you don't have enough time to select the schematic and the materials, increase the "/pause 15" to "/pause XX" - where XX is the number of seconds you want the macro to pause before executing the next line.
the macro will close the crafting window and open the next one automatically.10. repeat from step 5
the macro will keep looping until you tell it to stop with the "stop" macro.
11. to check that the practicing macro worked, check your engineering xp. for the crafting macro, the item should appear in you inventory.
macroscraftPracticeLoop
/ui action toolbarSlot08craftLoop
/pause 15
/nextCraftingStage
/nextCraftingStage
/nextCraftingStage
/createprototype practice noitem
/createprototype practice noitem
/pause 5
/ui action toolbarSlot09
/pause 15
/nextCraftingStage
/nextCraftingStage
/nextCraftingStage
/createprototype practice noitem
/createprototype practice noitem
/pause 5
/macro craftPracticeLoop
/ui action toolbarSlot08stop
/pause 15
/nextCraftingStage
/nextCraftingStage
/nextCraftingStage
/createprototype
/createprototype
/pause 5
/ui action toolbarSlot09
/pause 15
/nextCraftingStage
/nextCraftingStage
/nextCraftingStage
/createprototype
/createprototype
/pause 5
/macro craftLoop
/dump
/dump
/dump
Message Edited by Krplakkor on 08-06-2005 05:39 PM
ooops...but, is that true?
i copied that text straight from macros.txt in my profiles folder.
and "noitem" (no space inbetween) certainly works for me - ground engineering III with weapon crafting kits with it (and i'm currently half-way through IV).
however, if "no item" works...beautiful!
(can i edit my own posts? i don't get that option - even when i'm logged on.)
is this macro missing semi-colons? yeah?
i wrote it really fast and it didn't work and the server shut down so i'll have to mess with it after work, but i was curious about its lack of semi-colons.
true...true...
but you should find that the game will add the semicolons for you.
(i'm a minimalist.)
/ui action toolbarPane05;
/ui action toolbarSlot08;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype practice noitem;
/createprototype practice noitem;
/pause 5;
/ui action toolbarPane05;
/ui action toolbarSlot09;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype practice noitem;
/createprototype practice notiem;
/pause 5;
/ui action toolbarPane05;
/ui action toolbarSlot10;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype practice noitem;
/createprototype practice noitem;
/pause 5;
/macro craftPracticeX3;
/ui action toolbarPane05;
/ui action toolbarSlot08;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype practice noitem;
/createprototype practice noitem;
/pause 5;
/ui action toolbarPane05;
/ui action toolbarSlot09;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype practice noitem;
/createprototype practice notiem;
/pause 5;
/ui action toolbarPane05;
/ui action toolbarSlot10;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype practice noitem;
/createprototype practice noitem;
/pause 5;
/ui action toolbarPane05;
/ui action toolbarSlot10;
/pause 15;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createprototype;
/createprototype;
/pause 5;
/macro craftPracticeX3Produce;