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

converting an old dungeon profile from ally to horde.

frosticus

Community Developer
Joined
Oct 19, 2012
Messages
2,930
Reaction score
58
i found an old blood furnace dungeon profile in my folder. it was written long ago by a friend for alliance chars.

id like to convert it to horde to farm mail armor from blood furnace for my horde shaman.

id like to find someone to explain a couple lines for me so im sure to understand them better.

Code:
<If Condition="Me.ZoneId == 3483" >
is this for all of hellfire penn? honor hold? and where would i find this information if i needed to do it again for another profile?

Code:
<If Condition="Me.Y &lt; 3127.325 || Me.Y &gt; 3174.571 || Me.X &lt; -334.2414 || Me.X &gt; -273.4398" >
this appears to create a box and see if im standing inside it. i remember the friend speaking about a box when we talked long ago.

Code:
<!-- If our Hearthstone is set to Honor Hold -->
					<If Condition="(Me.HearthstoneAreaId == 3538) " >
obvious asking about our hearthstone. is there a chart of id's or is there a way to find them easy? i'd need the one for thrallmar.

Code:
<If Condition="Me.ZoneId == 3713">
another ZoneId i would need decoded. having a chart would make it a bit easier.
 
i found an old blood furnace dungeon profile in my folder. it was written long ago by a friend for alliance chars.

id like to convert it to horde to farm mail armor from blood furnace for my horde shaman.

id like to find someone to explain a couple lines for me so im sure to understand them better.

Code:
<If Condition="Me.ZoneId == 3483" >
is this for all of hellfire penn? honor hold? and where would i find this information if i needed to do it again for another profile?

Code:
<If Condition="Me.Y &lt; 3127.325 || Me.Y &gt; 3174.571 || Me.X &lt; -334.2414 || Me.X &gt; -273.4398" >
this appears to create a box and see if im standing inside it. i remember the friend speaking about a box when we talked long ago.

Code:
<!-- If our Hearthstone is set to Honor Hold -->
                    <If Condition="(Me.HearthstoneAreaId == 3538) " >
obvious asking about our hearthstone. is there a chart of id's or is there a way to find them easy? i'd need the one for thrallmar.

Code:
<If Condition="Me.ZoneId == 3713">
another ZoneId i would need decoded. having a chart would make it a bit easier.

PHP:
ClearLog();
Log("Me.CurrentMap.ExpansionId == " + Me.CurrentMap.ExpansionId);
Log("Me.HearthstoneAreaId == " + Me.HearthstoneAreaId);
Log("AreaTable.FromId(Me.HearthstoneAreaId).MapId == "+AreaTable.FromId(Me.HearthstoneAreaId).MapId);
Log("Me.MapId == " + Me.MapId);
Log("Me.CurrentMap == " + Me.CurrentMap);
Log("Me.CurrentMap.IsScenario == " + Me.CurrentMap.IsScenario);
Log("Me.CurrentMap.IsRaid== " + Me.CurrentMap.IsRaid);
Log("Me.ZoneText == " + Me.ZoneText);
Log("Me.ZoneId == " + Me.ZoneId);
Log("Me.SubZoneText == " + Me.SubZoneText);
Log("Me.SubZoneId == " + Me.SubZoneId);
Log("Me.IsInInstance == " + Me.IsInInstance);
Styx.WoWInternals.WoWGroupInfo lfg = new Styx.WoWInternals.WoWGroupInfo();
Log("LfgDungeonId == "+lfg.LfgDungeonId);
Log("WoWGroupInfo.IsInLfgParty == " + lfg.IsInLfgParty);
Log("WoWGroupInfo.IsInParty== " + lfg.IsInParty);
Log("WoWGroupInfo.IsInRaid== " + lfg.IsInRaid);
Log("Me.IsInArena == " + Me.IsInArena);
Log("Me.IsInGarrison == " + Me.IsInGarrison);
Log("Me.IsOutdoors == " + Me.IsOutdoors);
Log("Me.OnTaxi== " + Me.OnTaxi);
Log("Me.InVehicle== " + Me.InVehicle);
Here my console snippet for debugging our current place.

Just go to Thrallmar Inn, and run it, then make the changes.

The XY snipped indeed define box, but not in the meaning you have about it - it should be with && (and) instead of || (or) to check if we are inside this box.
But for this purpose its much easier to check our distance to some wowpoint instead:

PHP:
<If Condition="Vector3.Distance(Me.Location,(new Vector3(3165,648,14))) &lt; 40">
The correct input for defining point should be with Vector3(Xf, Yf, Zf) - aka Vector3(3165.123f, 648.3425f, 14.32145f), but since I omit the non-integer decimals from the XYZ, the compiler would convert the integers to float on its own.
 
i appreciate it. this helps a lot. the console commands/log are a game winner imo.

im still unfamiliar with the vector/box variation.

the snip i posted is asking if we are standing outside the box. less than the top of the box or greater than the bottom of the box. if i swapped the number values and used && it would indeed be asking if we were inside the box, rather than outside of it.

is there documentation on the vector snip so that i can better understand it? was it implemented in hb3? i am still new to hb3 as i took all summer off from wow.

thanks for the quick response.
 
this is what im starting with.

Code:
[HIDE]<While Condition="true" >
	  
			<If Condition="Me.ZoneId == 3483" >
			
				<If Condition="Me.Y &lt; 3127.325 || Me.Y &gt; 3174.571 || Me.X &lt; -334.2414 || Me.X &gt; -273.4398" >
				
					<!-- If our Hearthstone is set to Honor Hold -->
					<If Condition="(Me.HearthstoneAreaId == 3538) " >
					
						<CustomBehavior File="Message" Text="Our hearthstone/Innkeepers Daughter is set at Honor Hold." LogColor="Cyan" />
				
						<Else>
				
							<CustomBehavior File="Message" Text="Our hearthstone/Innkeepers Daughter is not set at Honor Hold." LogColor="Cyan" />
							<CustomBehavior File="FlyTo" X="-708.9094" Y="2695.521" Z="94.22622" />
							<CustomBehavior File="ForcedDismount" />
								<MoveTo X="-709.0289" Y="2712.858" Z="94.72121" />
								<MoveTo X="-709.0289" Y="2712.858" Z="94.72121" />
								<MoveTo X="-701.5289" Y="2713.335" Z="94.73618" />
								<MoveTo X="-703.1481" Y="2719.708" Z="94.73618" />
								<MoveTo X="-703.03" Y="2730.741" Z="94.73345" />
								<MoveTo X="-705.8349" Y="2738.855" Z="94.73345" />
							<CustomBehavior File="Message" Text="Setting my Heartstone @ the innkeep." LogColor="Cyan" />
							<CustomBehavior File="WaitTimer" WaitTime="1000" />
							<CustomBehavior File="SetHearthstone" MobId="16826"  X="-708.8713" Y="2739.131" Z="94.7338" />
							<CustomBehavior File="WaitTimer" WaitTime="1000" />
								<MoveTo X="-703.03" Y="2730.741" Z="94.73345" />
								<MoveTo X="-703.1481" Y="2719.708" Z="94.73618" />
								<MoveTo X="-701.5289" Y="2713.335" Z="94.73618" />
								<MoveTo X="-709.0289" Y="2712.858" Z="94.72121" />
								<MoveTo X="-709.0289" Y="2712.858" Z="94.72121" />
								<MoveTo X="-708.9094" Y="2695.521" Z="94.22622" />
							<CustomBehavior File="ForcedMount" MountType="Flying" />
						</Else>
					
						<CustomBehavior File="Message" Text="Moving to Blood Furnace." LogColor="Cyan" />
						
						<!-- Fly to - Blood Furnace hover point -->
						<CustomBehavior File="FlyTo" 
										X="-271.0863" Y="3116.262" Z="61.83257" />
						
						<!-- CTM to - ground at Blood Furnace  -->
						<CustomBehavior File="MyCTM"
										X="-302.408" Y="3162.92" Z="31.7273" />
						
						<CustomBehavior File="ForcedDismount" />
						
						<CustomBehavior File="Message" Text="I've reached Blood Furnace." LogColor="Cyan" />
					
					</If>	<!-- If our Hearthstone is set to Honor Hold -->
					
				</If>	
				
			</If>
			
			<If Condition="Me.ZoneId == 3713">
			
				<CustomBehavior File="Message" Text="You started the bot with me inside Blood Furnace. I am exiting the instance to reset." LogColor="Cyan" />				
					
				<!-- Move to - zone in location -->	
				<MoveTo X="-2.73782" Y="19.8424" Z="-44.79777" />
				
				<!-- Move to - attempt to Exit the instance -->
				<CustomBehavior File="Misc\InInstance" 
								X="2.3313745" Y="28.97033" Z="-44.79919" />
										
				<!-- Move to - zone out location-->
				<MoveTo X="-302.408" Y="3162.92" Z="31.7273" />						
										
				<If Condition="(Me.FreeBagSlots &lt; 15) || (Me.LowestDurabilityPercent &lt; 0.3)" >	
				
					<CustomBehavior File="WaitTimer" WaitTime="1000" />
					
					<CustomBehavior File="Message" Text="I have detected that we have less than 15 empty bag slots or that our gear is below 30% durability. I'm going to repair, vendor and mail." LogColor="Cyan" />

					<SetVendor>
						<Vendors>
							<Vendor Name="Humphry" Entry="16823" Type="Repair" X="-717.3172" Y="2607.582" Z="91.01114" />
						</Vendors>
					</SetVendor>						
					<SetMailbox>
						<Mailboxes>
							<Mailbox X="-707.8276" Y="2699.064" Z="94.37112" />
						</Mailboxes>
					</SetMailbox>	
					
					<CustomBehavior File="ForceSetVendor" 
									DoMail="True" 
									DoRepair="True" 
									DoSell="True" 
									DoTrain="False" />
				</If>
						
			</If>
				
			<If Condition="Me.ZoneId == 3483" >				
			
				<If Condition="Me.Y &gt; 3127.325 &amp;&amp; Me.Y &lt; 3174.571 &amp;&amp; Me.X &gt; -334.2414 &amp;&amp; Me.X &lt; -273.4398" >	
				
					<!-- Profile message - Portal detected nearby --> 
					<CustomBehavior File="Message" 
									Text="Portal detected nearby."
									LogColor="Fuchsia" />	
						
					<!-- Profile message - Resetting the instance -->
					<CustomBehavior File="Message" 
									Text="Resetting the instance." 
									LogColor="Fuchsia" />
					
					<!-- Custom behavior - macro - reset the instance -->
					<CustomBehavior File="RunMacro" 
									Macro="/script ResetInstances()" />		
					
					<!-- Custom behavior - macro - set the dungeon difficulty to normal -->
					<CustomBehavior File="RunMacro" 
									Macro="/script SetDungeonDifficultyID(1)" />
					
					<!-- Profile message - The instance has been reset -->
					<CustomBehavior File="Message" 
									Text="The instance has been reset." 
									LogColor="Fuchsia" />

					<!-- While we didn't enter Blood Furnace -->
					<While Condition="Me.MapId != 542">
					
						<!-- Move to - zone out location-->
						<MoveTo X="-302.408" Y="3162.92" Z="31.7273" />

						<!-- Move to - attempt to enter the instance -->
						<CustomBehavior File="Misc\InInstance" 
										X="-309.2552" Y="3171.488" Z="30.4431" /> 
										
						<!-- Profile message - Waiting for the dungeon to load -->			
						<CustomBehavior File="Message" 
										Text="Waiting for the dungeon to load." 
										LogColor="Fuchsia" />
									
						<!-- Wait timer - wait 20-40 seconds -->			
						<CustomBehavior File="WaitTimer" 
										WaitTime="20000"
										VariantTime="20000" />
										
						<!-- If we are not in Blood Furnace -->
						<If Condition="Me.MapId != 542">
						
							<!-- Profile message - We are instance locked, initiating loop procedures until we enter the instance -->
							<CustomBehavior File="Message" 
											Text="We are instance locked, initiating loop procedures until we enter the instance." 
											LogColor="Fuchsia" />
											
						</If>	<!-- If we are not in Blood Furnace -->
						
					</While>	<!-- While we have not entered Blood Furnace -->

					
				</If>	
				
			</If>

			<!-- blood furnace dungeon script -->
						   
			<MoveTo X="-2.179744" Y="-3.244191" Z="-43.46924" />
			<MoveTo X="1.331934" Y="-56.98011" Z="-41.34067" />
			<MoveTo X="-4.021991" Y="-56.2807" Z="-41.34083" />
			<MoveTo X="-13.00192" Y="-83.42096" Z="-41.33492" />
			<MoveTo X="3.826381" Y="-86.01553" Z="-41.33224" />
			<MoveTo X="27.56129" Y="-84.62891" Z="-41.14178" />
			<MoveTo X="48.3139" Y="-92.1517" Z="-40.26988" />
			<MoveTo X="64.87251" Y="-86.79987" Z="-33.79799" />
			<MoveTo X="159.8632" Y="-85.37725" Z="9.247056" />
			<MoveTo X="194.1666" Y="-91.05634" Z="9.613774" />
			<MoveTo X="200.3543" Y="-83.93761" Z="9.597281" />
			<MoveTo X="227.2456" Y="-97.61929" Z="9.616727" />
			<MoveTo X="227.4877" Y="-71.39392" Z="9.616982" />
			<MoveTo X="241.8764" Y="-70.95074" Z="9.615955" />
			<MoveTo X="247.5598" Y="-29.80441" Z="7.018715" />
			<MoveTo X="280.6435" Y="-2.829836" Z="8.189161" />
			<MoveTo X="341.099" Y="3.377507" Z="9.617554" />
			<MoveTo X="315.6714" Y="10.97413" Z="9.617474" />
			<MoveTo X="327.8232" Y="19.29935" Z="9.616335" />
			<MoveTo X="327.6778" Y="30.33249" Z="9.616335" />
			<MoveTo X="327.3823" Y="66.19852" Z="9.613433" />
			<MoveTo X="310.3172" Y="68.30021" Z="9.616644" />
			<MoveTo X="313.8026" Y="93.42382" Z="9.618168" />
			<MoveTo X="346.4865" Y="72.00987" Z="9.618119" />
			<MoveTo X="339.958" Y="98.91324" Z="9.618723" />
			<MoveTo X="327.8705" Y="129.4091" Z="9.615665" />

			<MoveTo X="327.3062" Y="141.2242" Z="9.615582" />
			<MoveTo X="325.7527" Y="159.4355" Z="9.540416" />
			<MoveTo X="321.2962" Y="176.6829" Z="9.614299" />
			<MoveTo X="348.243" Y="191.8328" Z="9.605727" />
			<MoveTo X="378.0288" Y="190.4125" Z="9.595288" />
			<MoveTo X="405.68" Y="188.7367" Z="9.593841" />
			<MoveTo X="434.1508" Y="191.9494" Z="9.607065" />
			<MoveTo X="482.404" Y="176.3173" Z="9.619416" />
			<MoveTo X="459.7648" Y="168.7525" Z="9.614033" />
			<MoveTo X="456.3185" Y="141.5934" Z="9.615185" />
			<MoveTo X="453.0286" Y="99.49245" Z="9.614184" />
			<MoveTo X="477.7109" Y="97.7845" Z="9.620564" />
			<MoveTo X="470.2482" Y="52.67743" Z="9.614444" />
			<MoveTo X="441.5181" Y="59.77732" Z="9.61179" />
			<MoveTo X="454.4564" Y="72.66149" Z="9.615803" />
			<MoveTo X="456.0479" Y="63.65571" Z="9.615803" />
			
			<CustomBehavior File="Message" Text="Opening the cell doors." LogColor="Cyan" />
			<CustomBehavior File="InteractWith" MobId="181982" ObjectType="Gameobject" Range="4.75" NumOfTimes="1"  X="456.0855" Y="60.3489151" Z="9.47833" />
			<MoveTo X="469.9485" Y="61.0253" Z="9.611367" />						
			<CustomBehavior File="WaitTimer" WaitTime="30000" />
			
			<MoveTo X="465.3005" Y="53.92611" Z="9.614746" />
			<MoveTo X="456.3055" Y="40.48009" Z="9.616603" />
			<MoveTo X="454.2039" Y="8.10841" Z="9.548549" />
			<MoveTo X="489.5005" Y="8.320498" Z="9.545714" />
			<MoveTo X="490.7946" Y="-48.84917" Z="9.5621" />
			<MoveTo X="490.2245" Y="-89.76218" Z="9.553125" />
			<MoveTo X="476.6655" Y="-92.95279" Z="9.557697" />
			<MoveTo X="457.7038" Y="-84.50316" Z="9.592672" />
			<MoveTo X="424.9472" Y="-84.20407" Z="9.617252" />
			<MoveTo X="410.755" Y="-110.6079" Z="9.56427" />
			<MoveTo X="402.701" Y="-139.1553" Z="-2.268489" />
			<MoveTo X="385.1446" Y="-158.2426" Z="-12.8521" />
			<MoveTo X="348.1385" Y="-170.5009" Z="-25.51858" />
			<MoveTo X="327.7166" Y="-193.1484" Z="-25.50966" />
			<MoveTo X="317.1263" Y="-173.4173" Z="-25.50964" />
			<MoveTo X="327.4693" Y="-161.8204" Z="-25.51549" />
			<MoveTo X="317.5911" Y="-109.7128" Z="-24.68666" />
			<CustomBehavior File="WaitTimer" WaitTime="3000" />	
			<CustomBehavior File="Message" Text="I have cleared the instance. Checking my empty bag slot and gear durability." LogColor="Cyan" />
				
			<If Condition="(Me.FreeBagSlots &lt; 15) || (Me.LowestDurabilityPercent &lt; 0.3)" > 					
				<CustomBehavior File="Message" Text="I have detected that my bags are full or my gear is about to break. Going to hearth, repair and mail." LogColor="Cyan" />
				
				<!-- If we have a Hearthstone -->
				<If Condition="HasItem(6948)">
				
					<!-- Profile message - Using our Hearthstone -->
					<CustomBehavior File="Message" 
									Text="Using our Hearthstone." 
									LogColor="Fuchsia" />
									
					<!-- Custom behavior - Misc\RunLua -->				
					<CustomBehavior File="Misc\RunLua" 
									Lua="UseItemByName(6948)" 
									WaitTime="1000" />
									
					<!-- Wait timer - wait 20 seconds - delay -->				
					<CustomBehavior File="WaitTimer" 
									WaitTime="20000" />
									
				</If>	<!-- If we have a Hearthstone -->
			
				<!-- If we have a Innkeeper's Daughter -->
				<If Condition="HasItem(64488)">
				
					<!-- Profile message - Using our Innkeeper's Daughter -->
					<CustomBehavior File="Message" 
									Text="Using our Innkeeper's Daughter." 
									LogColor="Fuchsia" />
										
					<!-- Custom behavior - Misc\RunLua -->					
					<CustomBehavior File="Misc\RunLua" 
									Lua="UseItemByName(64488)" 
									WaitTime="1000" />
						
					<!-- Wait timer - wait 20 seconds - delay -->	
					<CustomBehavior File="WaitTimer" 
									WaitTime="20000" />
					<CustomBehavior File="WaitTimer" WaitTime="15000" GoalText="Waiting for hearth*{TimeRemaining}" />
				</If>														

				<SetVendor>
					<Vendors>
						<Vendor Name="Humphry" Entry="16823" Type="Repair" X="-717.3172" Y="2607.582" Z="91.01114" />
					</Vendors>
				</SetVendor>						
				<SetMailbox>
					<Mailboxes>
						<Mailbox X="-707.8276" Y="2699.064" Z="94.37112" />
					</Mailboxes>
				</SetMailbox>			
				<CustomBehavior File="ForceSetVendor" 
								DoMail="True" 
								DoRepair="True" 
								DoSell="True" 
								DoTrain="False" />
				
				<CustomBehavior File="ForcedMount" MountType="Flying" />
				
				<CustomBehavior File="Message" Text="Flying back to Blood Furnace." LogColor="Cyan" />
				<CustomBehavior File="FlyTo" X="-302.408" Y="3162.92" Z="31.7273" />
				<CustomBehavior File="ForcedDismount" />
				<CustomBehavior File="Message" Text="I've reached Blood Furnace." LogColor="Cyan" />
				<CustomBehavior File="ForcedDismount" />
			</If>

			<If Condition="Me.ZoneId == 3713">
				<CustomBehavior File="Message" Text="I have detected that we have more than 15 empty bag slots and that our gear is above 30% durability. I am exiting the instance to reset." LogColor="Cyan" />
				
				<!-- Move to - zone in location -->	
				<MoveTo X="-2.73782" Y="19.8424" Z="-44.79777" />
				
				<!-- Move to - attempt to Exit the instance -->
				<CustomBehavior File="Misc\InInstance" 
								X="2.3313745" Y="28.97033" Z="-44.79919" />
										
				<!-- Move to - zone out location-->
				<MoveTo X="-302.408" Y="3162.92" Z="31.7273" />
				
			</If>
				
		</While>[/HIDE]

ill be changing the id's and notes, working on vendors and the like. if i change the 'box' to vector3 will it break since one is asking 'outide' and the other is asking 'in range'? or i could change the vector3 command to ask if we are outside the circle by changing lt to gt.

give me a couple hours to work, see if i can get anywhere. ill repost what i have later if it goes bad. thanks in advance.
 
Cannot load profile!
Name cannot begin with the ',' character, hexadecimal value 0x2C. Line 86, position 48.

View attachment 217160

cant see anything that would pop that error. i think ive got everything covered, maybe just syntax stuffs.

any suggestions would be great
f14fefc8b7ac86ea193f10daebb08892.png


Those commas on lines 86 and 92 should not be there ;)
 
awesome! thanks for the help. the profile i was working with was made with hb2 so i wasnt sure if something had changed. i surely appreciate the response and the correction.

im going to go play with this in a bit.
 
Back
Top