• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] RepairFly - Fly to repair/vendor while leveling!

    Discussion in 'Archives' started by craftiestelk, Dec 28, 2011.

    1. craftiestelk

      craftiestelk New Member

      Joined:
      Jun 3, 2011
      Messages:
      123
      Likes Received:
      1
      Trophy Points:
      0
      Made a plugin to handle flying to the vendor when QuestBot decides to do a repair/vendor run. It will fly to the vendor, repair and sell, then fly back and give QuestBot back control.
      Please report any errors/bugs here, and be advised that it might not work for all vendors (indoors, weird places, phasing, etc).

      v1.2 BETA:
      Updated with some methods to handle vendors/locations that are considered "indoors" (meaning Flightor can't navigate there natively). This isn't the quickest of code (calculating can take a few seconds or more), and there might be bugs, but it worked with the few tests I did. So use the BETA if you want to try it out and give feedback on bugs/errors, or use the non-beta for safe workings but no indoor-vendor-support.

      v1.1:
      Updated to handle Grind Bot too.
       

      Attached Files:

      Last edited: Dec 28, 2011
    2. Montis

      Montis New Member

      Joined:
      Dec 4, 2011
      Messages:
      81
      Likes Received:
      0
      Trophy Points:
      0
    3. tia79

      tia79 New Member

      Joined:
      Jan 15, 2010
      Messages:
      406
      Likes Received:
      1
      Trophy Points:
      0
      Hi.. Will it handle mail also? before it fly back?
       
    4. craftiestelk

      craftiestelk New Member

      Joined:
      Jun 3, 2011
      Messages:
      123
      Likes Received:
      1
      Trophy Points:
      0
      No, it only does vendoring and repairing. I never use the mailing feature while leveling, so didn't think about adding it. It might be included in FieldRepair, when I finish that. Or if it's easy to fix, I'll see about putting it in here too.
       
    5. AutomaticCoding

      AutomaticCoding Banned

      Joined:
      Dec 20, 2011
      Messages:
      1,091
      Likes Received:
      1
      Trophy Points:
      0
      I would just read the CS, but, I'm ingame on CS:S (Dead) and the browser doesn't allow downloads. May I ask what it does if you don't have a flying mount yet? (Like you enable it on a level 55 for when it hits 60)
       
    6. tia79

      tia79 New Member

      Joined:
      Jan 15, 2010
      Messages:
      406
      Likes Received:
      1
      Trophy Points:
      0
      I changed your code a little bit to add Grind Bot. :) It works like a charm. Thanks so much for this! :D

      PS: The only issue this plugin really has if the repair dude isnt located under open skies but inside a house. it will fail to decent before the house and walk to the repairdude.. Just a hint.
       
      Last edited: Dec 28, 2011
    7. craftiestelk

      craftiestelk New Member

      Joined:
      Jun 3, 2011
      Messages:
      123
      Likes Received:
      1
      Trophy Points:
      0
      Updated to support Grind Bot.
      I know about the indoor-issue, trying to find a smart and effective way to handle it. Not really sure how, as I've seen the problem arise several times with Flightor.
       
    8. craftiestelk

      craftiestelk New Member

      Joined:
      Jun 3, 2011
      Messages:
      123
      Likes Received:
      1
      Trophy Points:
      0
      Updated the first post with v1.2 BETA, with code for handling indoor locations. Try it out! :)
       
    9. Ilovemywife

      Ilovemywife Member

      Joined:
      Apr 6, 2011
      Messages:
      233
      Likes Received:
      5
      Trophy Points:
      18
      Wow!! Nice!!
       
    10. CptPron

      CptPron New Member

      Joined:
      Feb 11, 2010
      Messages:
      205
      Likes Received:
      0
      Trophy Points:
      0
      Awesome! Thanks! Been leveling a few toons and this would be great! I would love to see mailing support as well.
       
    11. craftiestelk

      craftiestelk New Member

      Joined:
      Jun 3, 2011
      Messages:
      123
      Likes Received:
      1
      Trophy Points:
      0
      Working on a plugin that implements mammoth, jeeves etc too, will be mailingsupport there.

      Sent from a mobile device, please disregard any and all stupid mistakes.
       
    12. cpy

      cpy New Member

      Joined:
      May 10, 2010
      Messages:
      106
      Likes Received:
      0
      Trophy Points:
      0
      [9:49:41 AM:262] Spell_C::CastSpell(30482, 0, 0x180000003D0F25E, 0) [35]
      [9:49:41 AM:660] Updating repair cost for current equipped items. New value: [28g78s22c]
      [9:49:41 AM:661] Changed POI to:Type: Repair, Name: Blacksmith Abasi
      [9:49:41 AM:729] [Singular-DEBUG] Successfully cast Molten Armor
      [9:49:41 AM:903] Cleared POI
      [9:49:42 AM:150] Spell_C::CastSpell(32240, 0, 0x0, 0) [36]
      [9:50:47 AM:398] Activity: Loading Tile/s
      [9:50:47 AM:534] Plugin RepairFly threw an exception in 'Pulse'! Exception:
      [9:50:47 AM:536] System.NullReferenceException: Object reference not set to an instance of an object.
      at RepairFly.RepairFly.Pulse() in d:\Programs\LittleBee\Plugins\RepairFly BETA.cs:line 53
      at Styx.Plugins.PluginWrapper.Pulse()
      [9:50:47 AM:537] Changed POI to:Type: Repair, Name: Blacksmith Abasi
      [9:50:49 AM:431] Cleared POI
      [9:51:54 AM:994] Stop called!
      [9:51:55 AM:045] Activity: Honorbuddy Stopped

      Got this i dont know what it means
       
    13. Riltar

      Riltar New Member

      Joined:
      Nov 5, 2011
      Messages:
      380
      Likes Received:
      0
      Trophy Points:
      0
      Help please! When my bot get level up, he goes to City by taxy, but after that he goes back to questing location by mount! It takes a lot of time!!
       
    14. Kickazz006

      Kickazz006 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      20,567
      Likes Received:
      302
      Trophy Points:
      83
      look for dhx or protopally 's stuff!
       
    15. rinleezwins

      rinleezwins Member

      Joined:
      Jan 19, 2012
      Messages:
      269
      Likes Received:
      0
      Trophy Points:
      16
      Wow, I can finally grind for days with going afk ;o
       
    16. Kopped

      Kopped New Member

      Joined:
      Feb 24, 2010
      Messages:
      178
      Likes Received:
      1
      Trophy Points:
      0
      when will it be out of beta?
       
    17. papaours

      papaours New Member

      Joined:
      Mar 4, 2011
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      0
      It wasn't working at all for me so I made my own version. It uses a completely different method to find a landing spot etc...
      I've been using it for a few days and only had problems with HB getting stuck while flying.
       

      Attached Files:

    18. mindtrapper

      mindtrapper Member

      Joined:
      Jan 15, 2010
      Messages:
      364
      Likes Received:
      1
      Trophy Points:
      18
      I am using the beta in the first post with grindbot and the toon flies to repair but then doesn't get back, it just sits by the vendor till afk/logout.

      Same thing with papaours' version. Any fix possible?

      This is an excerpt from the log since the plugin takes over. Maybe it will help.

      Code:
      [6:20:17 PM:451] Changed POI to:Type: Repair, Name: Blacksmith Abasi
      [6:20:17 PM:758] Cleared POI
      [6:20:17 PM:758] [RepairFly]: Vendor/repair run discovered, attempting to fly
      [6:20:17 PM:761] Activity: Loading Tile/s
      [6:20:17 PM:761] Loading Kalimdor_33_49
      [6:20:17 PM:927] Spell_C::CastSpell(32245, 0, 0x0, 0) [4486]
      [6:21:08 PM:052] [Flightor]: Unstuck attempt 3
      [6:21:29 PM:504] [Flightor]: Unstuck attempt 4
      [6:51:51 PM:981] Unloading tiles!
      [6:51:51 PM:982] Loading Kalimdor_32_32
      [6:51:52 PM:114] Loading Kalimdor_33_49
      [6:51:52 PM:209] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [6:53:18 PM:233] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 1 milliseconds) @ FindStartPoly
      [6:53:18 PM:233] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [6:56:51 PM:981] Unloading tiles!
      [6:56:51 PM:982] Loading Kalimdor_32_32
      [6:56:52 PM:109] Loading Kalimdor_33_49
      [6:56:52 PM:205] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:01:51 PM:981] Unloading tiles!
      [7:01:51 PM:982] Loading Kalimdor_32_32
      [7:01:52 PM:105] Loading Kalimdor_33_49
      [7:01:52 PM:197] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:03:10 PM:472] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 3 milliseconds) @ FindStartPoly
      [7:03:10 PM:472] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:06:03 PM:561] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 3 milliseconds) @ FindStartPoly
      [7:06:03 PM:561] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:06:51 PM:981] Unloading tiles!
      [7:06:51 PM:982] Loading Kalimdor_32_32
      [7:06:52 PM:105] Loading Kalimdor_33_49
      [7:06:52 PM:197] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:10:14 PM:282] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 2 milliseconds) @ FindStartPoly
      [7:10:14 PM:283] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:11:51 PM:982] Unloading tiles!
      [7:11:51 PM:983] Loading Kalimdor_32_32
      [7:11:52 PM:107] Loading Kalimdor_33_49
      [7:11:52 PM:197] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:16:51 PM:983] Unloading tiles!
      [7:16:51 PM:984] Loading Kalimdor_32_32
      [7:16:52 PM:109] Loading Kalimdor_33_49
      [7:16:52 PM:200] Could not generate path from {0, 0, 0} to {-9404.68, -906.438, 112.5407} (time used: 0 milliseconds) @ FindStartPoly
      [7:20:43 PM:268] Stopping the bot!
      [7:20:43 PM:269] Stop called!
      [7:20:43 PM:292] 
      [7:20:43 PM:292] >>> STOPPING ShamWOW v4.5.17 by Bobby53 
      [7:20:43 PM:293] Activity: Honorbuddy Stopped
      [7:20:44 PM:310] System.Threading.ThreadAbortException: Thread was being aborted.
         at BlueMagic.Native.Imports.ReadProcessMemory(IntPtr hProcess, UInt32 lpBaseAddress, Byte[] lpBuffer, Int32 dwSize, Int32& lpNumberOfBytesRead)
         at BlueMagic.Memory.ReadBytes(UInt32 address, Int32 count)
         at BlueMagic.Memory.#KTc[T](UInt32 address)
         at BlueMagic.Memory.Read[T](UInt32[] addresses)
         at Styx.WoWInternals.WoWObjects.WoWMovementInfo.#fve()
         at Styx.WoWInternals.WoWObjects.WoWMovementInfo.get_TransportGuid()
         at Styx.WoWInternals.WoWObjects.WoWUnit.get_TransportGuid()
         at Styx.WoWInternals.WoWObjects.WoWUnit.get_IsOnTransport()
         at Styx.WoWInternals.WoWObjects.WoWUnit.get_Location()
         at Styx.Logic.Pathing.MeshNavigator.MoveTo(WoWPoint location)
         at Styx.Logic.Pathing.Navigator.MoveTo(WoWPoint location)
         at RepairFly.RepairFly.flyTo(WoWPoint loc) in e:\Portable Apps\Honorbuddy\Plugins\RepairFly BETA.cs:line 95
         at RepairFly.RepairFly.Pulse() in e:\Portable Apps\Honorbuddy\Plugins\RepairFly BETA.cs:line 50
         at Styx.Plugins.PluginWrapper.Pulse()
         at Styx.Plugins.PluginManager.Pulse()
         at Styx.WoWPulsator.Pulse(PulseFlags flags)
         at Styx.Logic.BehaviorTree.TreeRoot.Tick()
         at Styx.Logic.BehaviorTree.TreeRoot.Run()
      [7:20:44 PM:310] System.Threading.ThreadAbortException: Thread was being aborted.
         at Styx.Logic.BehaviorTree.TreeRoot.Run()
      
      
       
      Last edited: Apr 6, 2012
    19. floories

      floories Member

      Joined:
      Jun 29, 2012
      Messages:
      73
      Likes Received:
      0
      Trophy Points:
      6
      Great plugin. Exactly what I needed.
       
    20. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      48
      Trophy Points:
      48
      @OP
      you should give credits to the original author of this plugin.
      I could see some interesting changes from you, but the core and some functions are taken from FieldRepair plugin
       

    Share This Page