• Visit Rebornbuddy
  • Profile: Use portal

    Discussion in 'Archives' started by Croga, Aug 8, 2011.

    1. Croga

      Croga Well-Known Member

      Joined:
      Jun 7, 2010
      Messages:
      1,636
      Likes Received:
      27
      Trophy Points:
      48
      Hey guys,

      I'm going to try to make a profile that does a couple of different locations worth of daily quests. Is there some way to make the bot use a portal (like the ones in SW) to travel to a different area? If so, what XML code do I use for that?

      Thanks,
      Croga
       
    2. T@rget

      T@rget Active Member

      Joined:
      Jan 15, 2010
      Messages:
      165
      Likes Received:
      28
      Trophy Points:
      28
      You need custom behaviours for that.

      These examples will use the Mount Hyjal portal in Org
      To make it pause friendly, also use a condition. This one per example will only use the portal if it's in 15 yards range of it.
      HTML:
      	<If Condition="Me.Location.Distance(new WoWPoint(2042.752, -4395.662 97.93639)) &lt; 15" >
      		<CustomBehavior File="UseGameObject" ObjectId="207688" NumOfTimes="1" X="2042.752" Y="-4395.662" Z="97.93639" />
      	</If>
      
      This one will only use the portal if quest 25316 is completed, and we're on quest 25316
      HTML:
      	<If Condition="((IsQuestCompleted(25316)) &amp;&amp; (HasQuest(29440)))" >
      		<CustomBehavior File="UseGameObject" ObjectId="207688" NumOfTimes="1" X="2042.752" Y="-4395.662" Z="97.93639" />
      	</If>
      
      In both examples change in the UseGameObject line ObjectId to you portal ID (You can find that in the developer tools, or on WoWHead) and the coordinates to where it's at.
       
      Last edited: Aug 8, 2011
    3. Croga

      Croga Well-Known Member

      Joined:
      Jun 7, 2010
      Messages:
      1,636
      Likes Received:
      27
      Trophy Points:
      48
      Thanks T@rget! If I'm not mistaken, that CB is included in HB so quite open for use.

      Let's see if I can do something useful for this community and add something :)
       
    4. T@rget

      T@rget Active Member

      Joined:
      Jan 15, 2010
      Messages:
      165
      Likes Received:
      28
      Trophy Points:
      28
      Yeah it's in HB by default :)
       
    5. Croga

      Croga Well-Known Member

      Joined:
      Jun 7, 2010
      Messages:
      1,636
      Likes Received:
      27
      Trophy Points:
      48
      Is there some way of checking whether you're in a certain area?
      This profile will take the portals from SW to other areas but should only do that if it is actually in SW. Is there some profile function that will check that?
       
    6. Megser

      Megser Well-Known Member

      Joined:
      Apr 17, 2010
      Messages:
      1,389
      Likes Received:
      73
      Trophy Points:
      48
      PHP:
      <If Condition="Me.ZoneId == 1519">
      <!-- do 
      whatever you want here -->
      </If>
      That's for Stormwind.
       
      Croga likes this.
    7. Croga

      Croga Well-Known Member

      Joined:
      Jun 7, 2010
      Messages:
      1,636
      Likes Received:
      27
      Trophy Points:
      48
      Thanks!
       

    Share This Page