Forum › Forums › Discussion › Autorepair from NPC
This topic contains 5 replies, has 5 voices, and was last updated by Miqobot 6 years, 4 months ago.
-
AuthorPosts
-
June 15, 2018 at 10:28 am #7292
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)
acceptHowever 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
June 26, 2018 at 11:23 am #7368once 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 matsJuly 6, 2018 at 1:25 am #7458Didn’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)
July 6, 2018 at 12:33 pm #7464July 12, 2018 at 6:46 am #7515August 8, 2018 at 1:04 am #7778We 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?
-
AuthorPosts
You must be logged in to reply to this topic.