Autorepair from NPC

Forum Forums Discussion Autorepair from NPC

This topic contains 5 replies, has 5 voices, and was last updated by Miqobot Miqobot 6 years, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7292

    he_le
    Participant
    0

    Does anyone have a working idea/scenario on how to repair using the NPC? Bot often gets stuck or does not press the buttons at the correct time if I try to script it as raw key commands. I don’t have the scenario right now but basically consists of:

    move to waypoint in front of repair npc
    interact with npc
    press -> (move the cursor to the repair button)
    accept
    press <- (move cursor from cancel to confirm)
    accept

    However it rarely actually works. Is it possible to get this implemented as a feature next update? Very helpful on pure gathering accounts that cannot use the repair() function

    #7368

    omegablue8392
    Participant
    1+

    once you press target the mender npc and miqo presses the ‘interact’ key the next line can just say
    repair()
    and miqo will auto repair all equipped gear.

    i have this scenario for just mass crafting raw mats into refined mats (logs into lumber, etc)

    key(v, 1.0) //target npc
    key(num0, 1.0) //interact
    repair()
    startCrafting(50)
    repeatChapterFor(12:00:00)

    “V” key is my target nearest npc button
    “Num0” is my interact button
    it auto repairs equipped items
    then in crafts 50 times
    it repeats this entire process for 12 hours as long as i have mats

    #7458
    Relief
    Relief
    Participant
    0

    Didn’t work for me. It will open the repair NPC, then close without repairing, then open up the self repair and go on to crafting.

    So I made this one. By using a waypoint in front of a repair NPC, I can add this to any mining/botany/fishing script and repair every few hours and continue gathering without broken gear. I usually only use the first segment to repair equip gear, it bugs out if you don’t have something needing repair in every category.

    waypoint(34) //waypoint in front of repair NPC
    key(f12, 1.0)  //target npc
    key(num0, 1.0) //interact
    key(num8, 1.0) //move up
    key(num8, 1.0) //move up
    key(num8, 1.0) //move up
    key(num0, 3.0) //confirm //repair equipped gear
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(num2, 1.0) //move down //repair Main Hand/Off Hand
    key(num0, 3.0) //confirm
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(num2, 1.0) //move down // repair Head/Body/Hands
    key(num0, 3.0) //confirm
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(num2, 1.0) //move down // repair Waist/Legs/Feet
    key(num0, 3.0) //confirm
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(num2, 1.0) //move down //repair Neck/Ears
    key(num0, 3.0) //confirm
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(num2, 1.0) //move down //repair Wrists/Ring
    key(num0, 3.0) //confirm
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(num2, 1.0) //move down //repair Inventory
    key(num0, 3.0) //confirm
    key(num6, 1.0) //move right
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    key(num4, 1.0) //move left
    key(num0, 3.0) //confirm
    
    key(esc)
    
    #7464
    kontu
    kontu
    Participant
    0

    key(f11, 1.0) //target npc
    key(num0, 1.0) //interact
    repair()

    Works wonderfully for me for repairing equipped items using the NPC.

    #7515

    he_le
    Participant
    0

    The repair() function does not work for me when using the npc(with repair window open). It simply closes the window, tries and fails to self repair and continues. Can the developers shed some insight into why?

    #7778
    Miqobot
    Miqobot
    Keymaster
    0

    We would require more information to analyze the behavior of repair() function.
    Technically there is no difference between NPC-Repair and Self-Repair windows. Therefore it should work as long as you perform the correct key sequence while interacting with NPC.

    There is a slight difference between a housing Mender NPC and an open-world Mender NPC found in settlements and city-states. They offer a different set of options and therefore require a different key sequence to reach the Repair window. We plan a special scenario function which will handle all cases, but it will be a simple wrapper of repair() function with the extra interaction logic.

    Would you please give an example location of NPC you are trying to repair at?

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

You must be logged in to reply to this topic.