• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [QuestBehaviour] SetHearthstone&UseHearthstone

    Discussion in 'Archives' started by laria, Feb 27, 2011.

    1. laria

      laria Well-Known Member

      Joined:
      Jan 15, 2010
      Messages:
      5,386
      Likes Received:
      36
      Trophy Points:
      48
      Quite a few people wanted to use Hearthstones for their QuestingProfiles, including me.
      Shortcutting with hearthstones is saves time.

      Getting the BindPoint in WoW is possibel via Lua, but the return value is localedependent.
      Not any more!
      Thanks to Highvoltz, who messed with IDA and Nesox&Hawker who added it to 2.0.0.4129 .

      Code:
       
      ADD - LocalPlayer.HearthstoneAreaId - Returns the Area ID for where your hearthstone is currently bound.
      
      Azaril took the time and wrap it into a QuestBehaviour, which you can get here.

      Code:
        // <CustomBehavior File="SetHearthstone" MobId="25841" X="3523.637" Y="5015.019" Z="-0.9931576" HearthLocation="123" WithinDistance="1000"/>  
          //
          // WithinDistance - Optional parameter to indicate only to get hearthstone if within range. If not present, then the bot will move from any distance
          //                  to the hearthstone provider.
      Code:
          // <CustomBehavior File="UseHearthstone" HearthLocation="123" X="3523.637" Y="5015.019" Z="-0.9931576" OutsideDistance="1000"/>  
          //
          // OutsideDistance - Optional parameter to indicate only to use hearthstone if outside range. If not present, then the bot will hearth from any distance.
          //
      to get the "HearthLocation", the return value of the new HB-API function, you need to run the following piece of code in HB.Console:

      Code:
      var bindId =  ObjectManager.Me.HearthstoneAreaId;
      Logging.Write("{0}",bindId);
      If you like it, don't forget Azaril who coded this ;)

      Have fun with it.

      Here are some AreaIDs and the associated NPC with coordinates for you to test.
      I apologize for the german fragments in there, but npc-names dont matter anyway,and the area names were not available from wowhead at the time of writing.

      Code:
      Kalimdor Horde:
      Winterspring:
      Everlook:   Area ID: 2255 NPC: <Vendor Name="Gastwirt Vizzie" Entry="11118" Type="Food" X="6695.151" Y="-4673.041" Z="721.569" />
       
      Aszhara:
      Bligewater Harbor: Area ID: 4831 NPC: <Vendor Name="Mixi" Entry="43771" Type="Food" X="3527.24" Y="-6518.979" Z="43.50256" />
      Northern Barrens:
      Crossroads:   Area ID: 380  NPC: <Vendor Name="Gastwirt Boorand Steppenwind" Entry="3934" Type="Food" X="-407.1227" Y="-2645.225" Z="96.22308" />
      Ratchet:   Area ID: 392  NPC: <Vendor Name="Gastwirt Wiley" Entry="6791" Type="Food" X="-1050.036" Y="-3664.799" Z="23.88557" />
       
      Duswallow marsh:
      Brackenwall Village  Area ID: 496  NPC: <Vendor Name="'Klein' Logok" Entry="24208" Type="Food" X="-3165.606" Y="-2911.76" Z="35.05631" />
      Mudsprocket  Area ID: 4010 NPC: <Vendor Name="Axel" Entry="23995" Type="Food" X="-4630.091" Y="-3176.113" Z="41.22022" />
      Feralas:
      Camp Mojache:  Area ID: 5726 NPC: <Vendor Name="Gastwirtin Greul" Entry="7737" Type="Food" X="-4460.097" Y="242.7223" Z="39.10735" />
      Stonebreaker Hold: Area ID: 5003 NPC: <Vendor Name="Chonk" Entry="44376" Type="Food" X="-4564.63" Y="1835.27" Z="87.06826" />
      Camp Ataya:   Area ID: 5002 NPC: <Vendor Name="Adene Baumtotem" Entry="40467" Type="Food" X="-3097.09" Y="2563.181" Z="50.17955" />
       
      Durotar
      Orgrimmar: 
      Valley of Strength: Area ID: 5170 NPC: <Vendor Name="Gastwirtin Gryshka" Entry="6929" Type="Food" X="1573.266" Y="-4439.158" Z="16.05651" />
      Goblin Slums:  Area ID: 5332 NPC: <Vendor Name="Tinza Silberkrug" Entry="45563" Type="Food" X="1545.31" Y="-4195.52" Z="52.64815" />
      Valley of Spirit: Area ID: 5169 NPC: <Vendor Name="Sijambi" Entry="45086" Type="Food" X="1734.55" Y="-4077.61" Z="50.53273" />
      Valley of Wisdom: Area ID: 1637 NPC: <Vendor Name="Miwana" Entry="44785" Type="Food" X="1922.61" Y="-4182.53" Z="37.8838" />
      Valley of Honor: Area ID: 5168 NPC: <Vendor Name="Gastwirtin Nufa" Entry="46642" Type="Food" X="1916.46" Y="-4732.79" Z="38.93628" />
      Razorhill:   Area ID: 362  NPC: <Vendor Name="Gastwirt Grosk" Entry="6928" Type="Food" X="340.3629" Y="-4686.287" Z="16.48904" />
      Valley of Trials: Area ID 363   NPC: NONE(Startingzone)
      DarkspearCoast:  Area ID: 5691 NPC: NONE (Startingzone)
       
      Mulgore:
      Camp Narache:  Area ID: 221 NPC: NONE(Startingzone)
      Thunderbluff:   Area ID: 5345 NPC:  <Vendor Name="Gastwirtin Pala" Entry="6746" Type="Food" X="-1300.277" Y="38.48579" Z="129.2086" />
      Bloodhoof Village: Area ID: 222  NPC <Vendor Name="Gastwirt Kauth" Entry="6747" Type="Food" X="-2365.366" Y="-347.3099" Z="-8.957047" />
       
      Eastern Kingdoms Horde:
      Tirisfal Glades:
      Graves of Deathsend:AreaID: 5692 NPC: NONE(Startingzone)
      Eversong Woods:
      Sunstrider Isle: Area ID: 3431 NPC: NONE(Startingzone)
      Silvermoon:
      Silvermoon Inn:  Area ID: 3487 NPC: <Vendor Name="Gastwirtin Velandra" Entry="16618" Type="Food" X="9684.1" Y="-7363.599" Z="11.93308" />
      Wanderers Rest:  Area ID: 3487 NPC: <Vendor Name="Gastwirtin Jovia" Entry="17630" Type="Food" X="9565.677" Y="-7222.801" Z="16.21297" />
      Falquon wing square:
           Area ID: 5728 NPC: <Vendor Name="Gastwirtin Delaniel" Entry="15433" Type="Food" X="9476.913" Y="-6859.21" Z="17.34377" />
       
      Fairbreeze Village:
           Area ID: 3462 NPC: <Vendor Name="Marniel Bernlicht" Entry="15397" Type="Food" X="8700.384" Y="-6638.356" Z="72.74724" />
       

      Attached Files:

      Last edited: Feb 27, 2011
    2. hi1674

      hi1674 New Member

      Joined:
      Jan 15, 2010
      Messages:
      1,637
      Likes Received:
      5
      Trophy Points:
      0
      1 step closer to 1click questing profiles.
       
    3. Hi on Helium

      Hi on Helium New Member

      Joined:
      Jan 22, 2010
      Messages:
      252
      Likes Received:
      3
      Trophy Points:
      0
      me likes =)
      -HoHv2
       
    4. sneakyspency

      sneakyspency New Member

      Joined:
      Jun 17, 2011
      Messages:
      146
      Likes Received:
      2
      Trophy Points:
      0
      Doesn't show up in the plugin list.
       
    5. Mupp

      Mupp New Member

      Joined:
      May 3, 2010
      Messages:
      613
      Likes Received:
      5
      Trophy Points:
      0
      This is not a plugin mate, its a QuestBehaviour and im sure its already included right now with all releases in some way or the other.
       
    6. laria

      laria Well-Known Member

      Joined:
      Jan 15, 2010
      Messages:
      5,386
      Likes Received:
      36
      Trophy Points:
      48
      No it is not shipped because we need the permission from Azaril and license it properly.
       
    7. laria

      laria Well-Known Member

      Joined:
      Jan 15, 2010
      Messages:
      5,386
      Likes Received:
      36
      Trophy Points:
      48
      This Behaviour will use the hearthstone when the profile asks it to and sets it when asked to, this is a support behaviour for a questing profile.
      It doesnt do anything automatically.
      I hope this answers your question, since we are not sure what you want to do exactly.
       

    Share This Page