Crafting problem in scenario with macro

Forum Forums Grids and Presets Crafting problem in scenario with macro

Tagged: , ,

This topic contains 4 replies, has 3 voices, and was last updated by Oppie Oppie 2 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35859
    Oppie
    Oppie
    Participant
    0

    Hello to all,

    I’d like to share a concern with a scenario I’m trying to set up to automate the harvesting and crafting of items for the white and purple crafter scrips.

    The harvesting part, everything is OK, I took bits of scenarios already present on this forum and everything works.

    The crafting part works… when it wants to, and that’s what I have a problem with. In order to help you find the problem, you have to know that at the beginning I had generated the scenario with Miqocrafter but considering the state of the crafting at the moment, there were errors so I did it all again by hand, but maybe there is still a piece of code somewhere that causes problems…

    In the “Crafting” part of the bot, in macro mode, I have the recipes I need to craft my item which are there, filled in and functional, in macro mode.

    Example for the integral lumber : ctrl+7,ctrl+2,1,ctrl+=,=,ctrl+=,ctrl+=,ctrl+=,ctrl+3,1

    If I let the scenario run by itself, when it comes to crafting the integral lumber, it will pass it to me as a macro:

    (13:13:09) I want to craft! Where is your Crafting Log?
    (13:13:12) Hitting Confirm button. :3
    (13:13:14) Crafting step 1 -> key ‘ctrl+5
    (13:13:17) Crafting step 2 -> key ‘ctrl+2’
    (13:13:18) Crafting step 3 -> key ‘ctrl+=’
    (13:13:22) Crafting step 4 -> key ‘1’
    (13:13:24) Yes, crafting SUCCESS! (1/20)

    If I cut the script, go to the crafting section, select my integral lumber macro, don’t change anything in my macro but just click on “overwrite”, if I restart the script, it will craft the integral lumber with the right macro; as if on the first run, in the flow, it will look for a macro somewhere else that is not the right one.

    The code used in the scenario to craft :

    teleportIf(Unterkunft, 2)
    grid(Shirogane)
    waypoint(1)
    teleportNPC()

    // Crafted Items
    //————————————————————–
    //

    // Integral Lumber [Crafted] – CRP – Level 88
    setCraftCollect(off)
    job(CRP)
    recipe(Integral Lumber)
    afkfor(00:00:03)
    craft(20)
    materiaExtract()

    // Chondrite Ingot [Crafted] – BSM – Level 88
    setCraftCollect(off)
    job(BSM)
    recipe(Chondrite Ingot)
    afkfor(00:00:03)
    craft(40)
    materiaExtract()

    Etc…

    Did I make a mistake somewhere or is there a problem?

    Thanks in advance for your help!

    • This topic was modified 2 years, 9 months ago by Oppie Oppie.
    #35861
    Lyfox
    Lyfox
    Participant
    0

    You forgot to select a macro before crafting.

    recipe(Integral Lumber)
    craftMacro(YOUR_MACRO_NAME)
    craft(20)
    #35862
    Oppie
    Oppie
    Participant
    0

    Oh yes! Very logical but I hadn’t thought of that!
    I just ran the test, it looks ok but I’ll keep you posted just in case.

    Thanks a lot for the help, I appreciate it 🙂

    #35896

    B91
    Participant
    0

    Unrelated but why not do the CRP one? It’s 2 lumber, 2 cloth

    #35897
    Oppie
    Oppie
    Participant
    0

    I don’t understand your question sorry :s

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.