What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Profile: Use portal

Croga

Well-Known Member
Joined
Jun 7, 2010
Messages
1,636
Reaction score
27
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
 
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:
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 :)
 
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 :)

Yeah it's in HB by default :)
 
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?
 
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?

PHP:
<If Condition="Me.ZoneId == 1519">
<!-- do whatever you want here -->
</If>

That's for Stormwind.
 
Back
Top