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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[QuestBehavior] UseTransport [MaxTime, CheckZone]

mh66

Community Developer
Joined
Jun 21, 2016
Messages
1,050
At times Zeppelin from OG to Northrend is bugged and char won't get to Northrend. As this is quite unsatisfying, I decided to solve this issue.

I have added an additional tag "MaxTime" and "CheckZone" to UseTransport, that will end behaviour if char is in CheckZone after MaxTime (in seconds). CheckZone is optional; if left out UseTransport will check if char is still in zone where transportation started.

Furthermore I added some additional stuff to AutoLoader, so in case this happens, char will take Zeppelin to Undercity and then Zeppelin to Howling Fjord.

Here's what I changed in AutoLoader:

PHP:
<If Condition="Me.MapId == 1" > <!-- Kalimdor -->
	<CustomBehavior File="RunCode" Code="Bots.Professionbuddy.PBLog.Log(System.Windows.Media.Colors.DeepSkyBlue, &quot;[Azyul Navigator]: &quot;, System.Windows.Media.Colors.LightGreen, &quot;We're in Kalimdor, using the Orgrimmar Zeppelin to Borean Tundra.&quot;);" />
	<MoveTo Nav="Fly" X="1754.089" Y="-4278.742" Z="133.0416" />
	<CustomBehavior File="ForcedDismount" />
	<MoveTo X="1763.389" Y="-4283.858" Z="133.1073" />
	<CustomBehavior File="UseTransport" TransportId="186238"
		WaitAtX="1763.066" WaitAtY="-4284.396" WaitAtZ="133.1081"
		TransportStartX="1775.066" TransportStartY="-4299.745" TransportStartZ="151.0326"
		StandOnX="1770.22" StandOnY="-4292.056" StandOnZ="133.1872"
		TransportEndX="2837.908" TransportEndY="6187.443" TransportEndZ="140.1648"
		GetOffX="2836.831" GetOffY="6185.15" GetOffZ="121.9923"
		MaxTime="95"/>
	<If Condition="Me.ZoneId == 1637" >
		<CustomBehavior File="RunCode" Code="Bots.Professionbuddy.PBLog.Log(System.Windows.Media.Colors.DeepSkyBlue, &quot;[Azyul Navigator]: &quot;, System.Windows.Media.Colors.LightGreen, &quot;Zeppelin seems to be bugged! Going to Undercity and using Zeppelin to Howling Fjord instead!&quot;);" />
		<CustomBehavior File="ForcedMount" MountType="Flying" />
		<CustomBehavior File="MyCTM" X="2057.292" Y="-4119.92" Z="256.727" />
		<MoveTo Nav="Fly" X="1850.234" Y="-4398.296" Z="135.1357" />
		<CustomBehavior File="ForcedDismount" />
		<CustomBehavior File="UseTransport" TransportId="164871"
			WaitAtX="1840.37" WaitAtY="-4390.94" WaitAtZ="135.233"
			TransportStartX="1833.509" TransportStartY="-4391.543" TransportStartZ="152.7679"
			StandOnX="1835.589" StandOnY="-4386.175" StandOnZ="135.0221"
			TransportEndX="2062.376" TransportEndY="292.998" TransportEndZ="114.973"
			GetOffX="2067.008" GetOffY="288.5636" GetOffZ="97.03135" />
		<MoveTo Nav="Fly" X="2061.766" Y="358.607" Z="82.47437" />
		<CustomBehavior File="ForcedDismount" />
		<CustomBehavior File="UseTransport" TransportId="181689"
			WaitAtX="2061.913" WaitAtY="365.0161" WaitAtZ="82.51536"
			TransportStartX="2056.493" TransportStartY="381.6347" TransportStartZ="100.362"
			StandOnX="2058.949" StandOnY="374.2945" StandOnZ="82.47006"
			TransportEndX="1989.353" TransportEndY="-6082.776" TransportEndZ="85.59646"
			GetOffX="1975.918" GetOffY="-6098.104" GetOffZ="67.14719" />
		<MoveTo Nav="Fly" X="2740.837" Y="6097.529" Z="76.88604" />
	<Else>
		<MoveTo X="2740.837" Y="6097.529" Z="76.88604" />
	</Else>
	</If>
</If>
 

Attachments

Back
Top