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

If Condition Problem.

boer

New Member
Joined
Jul 20, 2010
Messages
30
Reaction score
0
Hey guys,

trying to make my own Profiles. This one just won't work and I cant find any errors.

Profile :
PHP:
<HBProfile>
    <Name>
    [A - Quest] Human 1-5 [Northern-Route Project]
    </Name>
    <MinLevel>1</MinLevel>
    <MaxLevel>86</MaxLevel>

    <MinDurability>0.3</MinDurability>
    <MinFreeBagSlots>2</MinFreeBagSlots>

    <MailGrey>False</MailGrey>
    <MailWhite>True</MailWhite>
    <MailGreen>True</MailGreen>
    <MailBlue>True</MailBlue>
    <MailPurple>True</MailPurple>

    <SellGrey>True</SellGrey>
    <SellWhite>True</SellWhite>
    <SellGreen>True</SellGreen>
    <SellBlue>False</SellBlue>
    <SellPurple>False</SellPurple>

<!-- Targetting -->

    <TargetElites>False</TargetElites>
    <!-- <ContinentID>0</ContinentID> -->

<!-- Northern Questing Profile Start -->
    

 <!-- 1-5 Northshire Valley -->

    
    <!--Quest Overrides -->
        <Quest Id="26389" Name="Blackrock Invasion">
                <Objective Type="CollectItem" ItemId="58361" Name="Blackrock Orc Weapon" KillCount="8">
                      <Hotspots>
                           <Hotspot X="-8880.634" Y="-364.8899" Z="73.10102" />
                        <Hotspot X="-8958.043" Y="-365.8654" Z="73.175" />
                        <Hotspot X="-8956.242" Y="-418.8904" Z="72.25417" />
                        <Hotspot X="-9006.854" Y="-403.2159" Z="74.31793" />
                        <Hotspot X="-9000.881" Y="-340.1051" Z="74.62366" />
                        <Hotspot X="-9044.726" Y="-441.3511" Z="71.41048" />
                        <Hotspot X="-9121.871" Y="-394.1718" Z="73.75862" />
                           <Hotspot X="-9149.743" Y="-333.594" Z="72.99525" />
                        <Hotspot X="-9099.561" Y="-232.1622" Z="74.88316" />
                      </Hotspots>
                </Objective>
          </Quest>
        <Quest Id="26390" Name="Ending the Invasion!">
                <Objective Type="KillMob" MobId="42938" Name="Kurtok the Slayer" KillCount="1">
                      <Hotspots>
                        <Hotspot X="-8883.111" Y="-442.0399" Z="68.05991" />
                      </Hotspots>
                </Objective>
          </Quest>
        
    <!-- Starting Questing -->

     <!-- Vendor Northshire -->
             
        <SetVendor>
            <Vendors>
                
                <!-- Northshire Trainers-->

                <Vendor Name="Khelden Bremen" Entry="198" Type="Train" TrainClass="Mage" X="-8851.57" Y="-188.234" Z="89.31455" />
                <Vendor Name="Priestess Anetta" Entry="375" Type="Train" TrainClass="Priest" X="-8853.587" Y="-193.336" Z="81.9331" />
                <Vendor Name="Drusilla La Salle" Entry="459" Type="Train" TrainClass="Warlock" X="-8926.743" Y="-195.5889" Z="80.58859" />
                <Vendor Name="Jorik Kerridan" Entry="915" Type="Train" TrainClass="Rogue" X="-8863.468" Y="-210.9055" Z="80.57187" />
                <Vendor Name="Brother Sammuel" Entry="925" Type="Train" TrainClass="Paladin" X="-8914.567" Y="-215.0163" Z="82.11676" />
                <Vendor Name="Llane Beshere" Entry="911" Type="Train" TrainClass="Warrior" X="-8918.364" Y="-208.4109" Z="82.12556" />
                <Vendor Name="Ashley Blank" Entry="43278" Type="Train" TrainClass="Hunter" X="-8924.651" Y="-149.9028" Z="81.36338" />

                <!-- Common Vendors-->
                
                <Vendor Name="Godric Rothgar" Entry="1213" Type="Repair" X="-8898.231" Y="-119.8379" Z="81.83278" />        
                <Vendor Name="Dermot Johns" Entry="190" Type="Repair" X="-8897.71" Y="-115.3281" Z="81.84091" />
                <Vendor Name="Brother Danil" Entry="152" Type="Food" X="-8901.59" Y="-112.716" Z="81.84827" />
                <Vendor Name="Janos Hammerknuckle" Entry="78" Type="Repair" X="-8909.458" Y="-104.1632" Z="81.84879" />

            </Vendors>
        </SetVendor>
        
  <QuestOrder>
            
    <!-- Hunter -->
            
        <If Condition="Me.Class == WoWClass.Hunter">
            <PickUp QuestName="Beating them Back!" QuestId="28767" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective QuestName="Beating them Back!" QuestId="28767" Type="Killmob" MobId="49871" Killcount="6">
                    <Hotspots>
                        <Hotspot X="-8821.95" Y="-96.10" Z="84.68" />
                        <Hotspot X="-8886.069" Y="-61.04" Z="85.81" />
                    </Hotspots>
                </Objective>
            <TurnIn QuestName="Beating them Back!" QuestId="28767" TurnInName="Marshal McBride" TurnInId="197" X="-8913.07" Y="-137.41" Z="80.82" />
            <PickUp QuestName="Lions for Lambs" QuestId="28759" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective Questname="Lions for Lambs" Questid="28759" Type="Killmob" MobId="49874" Killcount="8">
                    <Hotspots>
                        <Hotspot X="-8966.63" Y="-181.89" Z="80.95" />
                        <Hotspot X="-8945.423" Y="-250.6136" Z="77.50798" />
                        <Hotspot X="-8853.343" Y="-95.20445" Z="82.55843" />
                    </Hotspots>
                </Objective>
            <TurnIn QuestName="Lions for Lambs" QuestId="28759" TurnInName="Marshal McBride" TurnInId="197" X="-8913.07" Y="-137.41" Z="80.82" />    
            
            <PickUp QuestName="Etched Letter" QuestId="26910" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective QuestName="Etched Letter" QuestId="26910" Type="CollectItem" ItemId="60677" CollectCount="1" />
            <TurnIn QuestName="Etched Letter" QuestId="26910" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            <PickUp QuestName="The Hunter's Path" QuestId="26917" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" /> 
                <If Condition="!Styx.Logic.Combat.SpellManager.HasSpell(56641)">
                    <CustomBehavior File="ForceSetVendor" DoTrain="True" />
                </If>
            <If Condition="(HasQuest(26917)) &amp;&amp; (!IsQuestCompleted(26917))">
                <CustomBehavior File="CastSpellOn" QuestId="26917" SpellId="55641" MobId="44548" NumOfTimes="5" MobHpPercentLeft="100" Minrange="14" X="-8965.57" Y="-146.288" Z="81.50985" />
            </If>
            <TurnIn Questname="The Hunter's Path" QuestId="26917" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            
            <PickUp QuestName="Join the Battle!" QuestId="28780" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            <TurnIn QuestName="Join the Battle!" QuestId="28780" TurnInName="Sergeant Willem" TurnInId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <PickUp Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <PickUp Questname="Fear no Evil" QuestId="28806" GiverName="Brother Paxton" GiverId="951" />
                <While Condition="((HasQuest(28806)) &amp;&amp; (!IsQuestCompleted(28806)))">
                    <CustomBehavior File="InteractWith" QuestId="a28806" MobId="50047" NumOfTimes="4" CollectionDistance="500" X="-8769.394" Y="-190.3564" Z="84.5011" />
                </While>
            <TurnIn Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <TurnIn QuestName="Fear No Evil" QuestId="28806" TurnInName="Brother Paxton" TurnInId="951" />
            <PickUp Questname="The Rear is Clear" QuestId="28817" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <TurnIn QuestName="The Rear is Clear" QuestId="28817" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        
    

            <PickUp Questname="Blackrock Invasion" QuestId="26389" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
            <PickUp Questname="Extinguishing Hope" QuestId="26391" GiverName="Milly Osworth" GiverId="9296" X="-8923.88" Y="-135.8889" Z="81.02888" />
                <While Condition="((HastQuest(26391)) &amp;&amp; (!IsQuestCompleted(26391)))">
                    <CustomBehavior File="UserSettings" PullDistance="10" />
                    <CustomBehavior File="UseItemOn" QuestId="26391" MobId="42940" ItemId="58362" NumOfTimes="8" WaitTime="3000" Range="10" CollectionDistance="100" X="-9063.322" Y="-277.0595" Z="73.64384" />
                    <CustomBehavior File="UserSettings" PullDistance="25" />
                </While>
                <Objective QuestName="Ending the Invasion!" QuestId="26390" Type="KillMob" MobId="42938" KillCount="1" />        
            <TurnIn QuestName="Ending the Invasion!" QuestId="26390" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        </If>

        <!-- Moving to Goldshire -->
            
        <PickUp QuestName="Report to Goldshire" QuestId="54" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
         <PickUp QuestName="Rest and Relaxation" QuestId="2158" GiverName="Falkhaan Isenstrider" GiverId="6774" X="-9044.558" Y="-45.98166" Z="88.33724" />
        <TurnIn QuestName="Report to Goldshire" QuestId="54" TurnInName="Marshal Dughan" TurnInId="240" X="-9465.521" Y="74.00694" Z="56.59536" />
        <TurnIn QuestName="Rest and Relaxation" QuestId="2158" TurnInName="Innkeeper Farley" TurnInId="295" X="-9462.663" Y="16.19151" Z="56.96266" />

        <SetGrindArea>
            <GrindArea>
                <Factions>7</Factions>
                <Hotspots>
                    <Hotspot X="-8782.871" Y="-107.3422" Z="83.35699" />
                    <Hotspot X="-8720.972" Y="-88.16251" Z="90.40733" />
                    <Hotspot X="-8724.425" Y="-137.0334" Z="86.89613" />
                    <Hotspot X="-8736.088" Y="-199.7948" Z="87.86673" />
                    <Hotspot X="-8771.962" Y="-259.924" Z="80.28711" />
                    <Hotspot X="-8805.207" Y="-232.5131" Z="82.34293" />
                    <Hotspot X="-8807.99" Y="-198.0297" Z="82.20427" />
                    <Hotspot X="-8774.711" Y="-160.9021" Z="81.87766" />
                    <Hotspot X="-8768.478" Y="-106.164" Z="85.97653" />
                </Hotspots>
            </GrindArea>
        </SetGrindArea>
        <GrindTo Level="5" />

 <!-- Goldshire & Elvynn Forest -->
    
        <Checkpoint Level="5" />
            
        <CustomBehavior File="LoadProfile" ProfileName="[A - Quest] Northern Routes Project [Human 5-12]" />
    
    </QuestOrder>

</HBProfile>

I hope you can help me.

Greetings
boer!
 
Do you have a log of what happens when you start it?
Just saying "it won't work" isn't enough for us to help you I'm afraid.
 
could not parse if body node on line 86 is the error
 
Starting here : <code><code><if <="" font="">Condition="Me.Class == WoWClass.Hunter">

PS: sry for me being a bit confused im up straight 36h and 10 of them i searched for the error -.-!
</if>
</code></code>
 
Last edited:
I'd still prefer a full log. Just the error message doesn't give me all the information. The line you're quoting looks perfect to me so there must be something else screwing it up.
 
hmm.... still not sure to be honest.
Could you start by solving that SetVendors issue and seeing what happens then?
If that doesn't help you should probably start by removing all the quests inside the "If class=hunter" part and then re-adding them one at a time. At some point it will throw an error and that's the quest that needs fixing.
 
Ye but the thing that distracts me is that he wants to do the quests after the IF Condition, means the Quests moving to Goldhain but i'll give it a try later. Thanks mate!
 
try to move setvendor in to the questorder ... not before questorder, this should fix the problem

PHP:
<HBProfile>
    <Name>
    [A - Quest] Human 1-5 [Northern-Route Project]
    </Name>
    <MinLevel>1</MinLevel>
    <MaxLevel>86</MaxLevel>

    <MinDurability>0.3</MinDurability>
    <MinFreeBagSlots>2</MinFreeBagSlots>

    <MailGrey>False</MailGrey>
    <MailWhite>True</MailWhite>
    <MailGreen>True</MailGreen>
    <MailBlue>True</MailBlue>
    <MailPurple>True</MailPurple>

    <SellGrey>True</SellGrey>
    <SellWhite>True</SellWhite>
    <SellGreen>True</SellGreen>
    <SellBlue>False</SellBlue>
    <SellPurple>False</SellPurple>

<!-- Targetting -->

    <TargetElites>False</TargetElites>
    <!-- <ContinentID>0</ContinentID> -->

<!-- Northern Questing Profile Start -->
    

 <!-- 1-5 Northshire Valley -->

    
    <!--Quest Overrides -->
        <Quest Id="26389" Name="Blackrock Invasion">
                <Objective Type="CollectItem" ItemId="58361" Name="Blackrock Orc Weapon" KillCount="8">
                      <Hotspots>
                           <Hotspot X="-8880.634" Y="-364.8899" Z="73.10102" />
                        <Hotspot X="-8958.043" Y="-365.8654" Z="73.175" />
                        <Hotspot X="-8956.242" Y="-418.8904" Z="72.25417" />
                        <Hotspot X="-9006.854" Y="-403.2159" Z="74.31793" />
                        <Hotspot X="-9000.881" Y="-340.1051" Z="74.62366" />
                        <Hotspot X="-9044.726" Y="-441.3511" Z="71.41048" />
                        <Hotspot X="-9121.871" Y="-394.1718" Z="73.75862" />
                           <Hotspot X="-9149.743" Y="-333.594" Z="72.99525" />
                        <Hotspot X="-9099.561" Y="-232.1622" Z="74.88316" />
                      </Hotspots>
                </Objective>
          </Quest>
        <Quest Id="26390" Name="Ending the Invasion!">
                <Objective Type="KillMob" MobId="42938" Name="Kurtok the Slayer" KillCount="1">
                      <Hotspots>
                        <Hotspot X="-8883.111" Y="-442.0399" Z="68.05991" />
                      </Hotspots>
                </Objective>
          </Quest>
        
    <!-- Starting Questing -->

     <!-- Vendor Northshire -->        
  <QuestOrder>
        <SetVendor>
            <Vendors>
                <!-- Northshire Trainers-->
                <Vendor Name="Khelden Bremen" Entry="198" Type="Train" TrainClass="Mage" X="-8851.57" Y="-188.234" Z="89.31455" />
                <Vendor Name="Priestess Anetta" Entry="375" Type="Train" TrainClass="Priest" X="-8853.587" Y="-193.336" Z="81.9331" />
                <Vendor Name="Drusilla La Salle" Entry="459" Type="Train" TrainClass="Warlock" X="-8926.743" Y="-195.5889" Z="80.58859" />
                <Vendor Name="Jorik Kerridan" Entry="915" Type="Train" TrainClass="Rogue" X="-8863.468" Y="-210.9055" Z="80.57187" />
                <Vendor Name="Brother Sammuel" Entry="925" Type="Train" TrainClass="Paladin" X="-8914.567" Y="-215.0163" Z="82.11676" />
                <Vendor Name="Llane Beshere" Entry="911" Type="Train" TrainClass="Warrior" X="-8918.364" Y="-208.4109" Z="82.12556" />
                <Vendor Name="Ashley Blank" Entry="43278" Type="Train" TrainClass="Hunter" X="-8924.651" Y="-149.9028" Z="81.36338" />
                <!-- Common Vendors-->               
                <Vendor Name="Godric Rothgar" Entry="1213" Type="Repair" X="-8898.231" Y="-119.8379" Z="81.83278" />        
                <Vendor Name="Dermot Johns" Entry="190" Type="Repair" X="-8897.71" Y="-115.3281" Z="81.84091" />
                <Vendor Name="Brother Danil" Entry="152" Type="Food" X="-8901.59" Y="-112.716" Z="81.84827" />
                <Vendor Name="Janos Hammerknuckle" Entry="78" Type="Repair" X="-8909.458" Y="-104.1632" Z="81.84879" />
            </Vendors>
        </SetVendor>
            
    <!-- Hunter -->
            
        <If Condition="(Me.Class == WoWClass.Hunter)">
            <PickUp QuestName="Beating them Back!" QuestId="28767" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective QuestName="Beating them Back!" QuestId="28767" Type="Killmob" MobId="49871" Killcount="6">
                    <Hotspots>
                        <Hotspot X="-8821.95" Y="-96.10" Z="84.68" />
                        <Hotspot X="-8886.069" Y="-61.04" Z="85.81" />
                    </Hotspots>
                </Objective>
            <TurnIn QuestName="Beating them Back!" QuestId="28767" TurnInName="Marshal McBride" TurnInId="197" X="-8913.07" Y="-137.41" Z="80.82" />
            <PickUp QuestName="Lions for Lambs" QuestId="28759" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective Questname="Lions for Lambs" Questid="28759" Type="Killmob" MobId="49874" Killcount="8">
                    <Hotspots>
                        <Hotspot X="-8966.63" Y="-181.89" Z="80.95" />
                        <Hotspot X="-8945.423" Y="-250.6136" Z="77.50798" />
                        <Hotspot X="-8853.343" Y="-95.20445" Z="82.55843" />
                    </Hotspots>
                </Objective>
            <TurnIn QuestName="Lions for Lambs" QuestId="28759" TurnInName="Marshal McBride" TurnInId="197" X="-8913.07" Y="-137.41" Z="80.82" />    
            
            <PickUp QuestName="Etched Letter" QuestId="26910" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective QuestName="Etched Letter" QuestId="26910" Type="CollectItem" ItemId="60677" CollectCount="1" />
            <TurnIn QuestName="Etched Letter" QuestId="26910" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            <PickUp QuestName="The Hunter's Path" QuestId="26917" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" /> 
                <If Condition="!Styx.Logic.Combat.SpellManager.HasSpell(56641)">
                    <CustomBehavior File="ForceSetVendor" DoTrain="True" />
                </If>
            <If Condition="(HasQuest(26917)) && (!IsQuestCompleted(26917))">
                <CustomBehavior File="CastSpellOn" QuestId="26917" SpellId="55641" MobId="44548" NumOfTimes="5" MobHpPercentLeft="100" Minrange="14" X="-8965.57" Y="-146.288" Z="81.50985" />
            </If>
            <TurnIn Questname="The Hunter's Path" QuestId="26917" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            
            <PickUp QuestName="Join the Battle!" QuestId="28780" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            <TurnIn QuestName="Join the Battle!" QuestId="28780" TurnInName="Sergeant Willem" TurnInId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <PickUp Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <PickUp Questname="Fear no Evil" QuestId="28806" GiverName="Brother Paxton" GiverId="951" />
                <While Condition="((HasQuest(28806)) && (!IsQuestCompleted(28806)))">
                    <CustomBehavior File="InteractWith" QuestId="a28806" MobId="50047" NumOfTimes="4" CollectionDistance="500" X="-8769.394" Y="-190.3564" Z="84.5011" />
                </While>
            <TurnIn Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <TurnIn QuestName="Fear No Evil" QuestId="28806" TurnInName="Brother Paxton" TurnInId="951" />
            <PickUp Questname="The Rear is Clear" QuestId="28817" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            <TurnIn QuestName="The Rear is Clear" QuestId="28817" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        
    

            <PickUp Questname="Blackrock Invasion" QuestId="26389" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
            <PickUp Questname="Extinguishing Hope" QuestId="26391" GiverName="Milly Osworth" GiverId="9296" X="-8923.88" Y="-135.8889" Z="81.02888" />
                <While Condition="((HastQuest(26391)) && (!IsQuestCompleted(26391)))">
                    <CustomBehavior File="UserSettings" PullDistance="10" />
                    <CustomBehavior File="UseItemOn" QuestId="26391" MobId="42940" ItemId="58362" NumOfTimes="8" WaitTime="3000" Range="10" CollectionDistance="100" X="-9063.322" Y="-277.0595" Z="73.64384" />
                    <CustomBehavior File="UserSettings" PullDistance="25" />
                </While>
                <Objective QuestName="Ending the Invasion!" QuestId="26390" Type="KillMob" MobId="42938" KillCount="1" />        
            <TurnIn QuestName="Ending the Invasion!" QuestId="26390" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        </If>

        <!-- Moving to Goldshire -->
            
        <PickUp QuestName="Report to Goldshire" QuestId="54" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
         <PickUp QuestName="Rest and Relaxation" QuestId="2158" GiverName="Falkhaan Isenstrider" GiverId="6774" X="-9044.558" Y="-45.98166" Z="88.33724" />
        <TurnIn QuestName="Report to Goldshire" QuestId="54" TurnInName="Marshal Dughan" TurnInId="240" X="-9465.521" Y="74.00694" Z="56.59536" />
        <TurnIn QuestName="Rest and Relaxation" QuestId="2158" TurnInName="Innkeeper Farley" TurnInId="295" X="-9462.663" Y="16.19151" Z="56.96266" />

        <SetGrindArea>
            <GrindArea>
                <Factions>7</Factions>
                <Hotspots>
                    <Hotspot X="-8782.871" Y="-107.3422" Z="83.35699" />
                    <Hotspot X="-8720.972" Y="-88.16251" Z="90.40733" />
                    <Hotspot X="-8724.425" Y="-137.0334" Z="86.89613" />
                    <Hotspot X="-8736.088" Y="-199.7948" Z="87.86673" />
                    <Hotspot X="-8771.962" Y="-259.924" Z="80.28711" />
                    <Hotspot X="-8805.207" Y="-232.5131" Z="82.34293" />
                    <Hotspot X="-8807.99" Y="-198.0297" Z="82.20427" />
                    <Hotspot X="-8774.711" Y="-160.9021" Z="81.87766" />
                    <Hotspot X="-8768.478" Y="-106.164" Z="85.97653" />
                </Hotspots>
            </GrindArea>
        </SetGrindArea>
        <GrindTo Level="5" />

 <!-- Goldshire & Elvynn Forest -->
    
        <Checkpoint Level="5" />
            
        <CustomBehavior File="LoadProfile" ProfileName="[A - Quest] Northern Routes Project [Human 5-12]" />
    
    </QuestOrder>

</HBProfile>
 
Last edited:
Same error so far. Still trying to start with the Quest "Report to Goldshire" -> completely ignoring everything in the IF Clause!
 
Ye but the thing that distracts me is that he wants to do the quests after the IF Condition, means the Quests moving to Goldhain but i'll give it a try later. Thanks mate!
That's how you know it could be in any of the quests inside the If class = hunter statement.
 
copied the whole if clause out of a working profile still the same error : could not parse if body node srsly what the eff is that!
 
Ok guys and girls

Log:

PHP:
Warning: XML Error: Could not parse 'If' body node! - On line 101 - [<If Condition="Me.Class == WoWClass.Hunter">
  <PickUp QuestName="Etched Letter" QuestId="26910" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
  <Objective QuestName="Etched Letter" QuestId="26910" Type="CollectItem" ItemId="60677" CollectCount="1" />
  <TurnIn QuestName="Etched Letter" QuestId="26910" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
  <PickUp QuestName="The Hunter's Path" QuestId="26917" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
  <If Condition="!Styx.Logic.Combat.SpellManager.HasSpell(56641)">
    <CustomBehavior File="ForceSetVendor" DoTrain="True" />
  </If>
  <If Condition="(HasQuest(26917)) &amp;&amp; (!IsQuestCompleted(26917))">
    <CustomBehavior File="CastSpellOn" QuestId="26917" SpellId="56641" MobId="44548" NumOfTimes="5" MobHpPercentLeft="100" MinRange="14" X="-8965.57" Y="-146.288" Z="81.50985" />
  </If>
  <TurnIn QuestName="The Hunter's Path" QuestId="26917" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
  <PickUp QuestName="Join the Battle!" QuestId="28780" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
  <TurnIn QuestName="Join the Battle!" QuestId="28780" TurnInName="Sergeant Willem" TurnInId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
  <PickUp Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
  <PickUp Questname="Fear no Evil" QuestId="28806" GiverName="Brother Paxton" GiverId="951" />
  <While Condition="((HasQuest(28806)) &amp;&amp; (!IsQuestCompleted(28806)))">
    <CustomBehavior File="InteractWith" QuestId="28806" MobId="50047" NumOfTimes="4" CollectionDistance="500" X="-8769.394" Y="-190.3564" Z="84.5011" />
  </While>
  <TurnIn Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
  <TurnIn QuestName="Fear No Evil" QuestId="28806" TurnInName="Brother Paxton" TurnInId="951" />
  <PickUp Questname="The Rear is Clear" QuestId="28817" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
  <TurnIn QuestName="The Rear is Clear" QuestId="28817" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
</If>]
Changing current profile to 
    [A - Quest] Human 1-5 [Northern-Route Project]

And the Profile:

PHP:
<HBProfile>
    <Name>
    [A - Quest] Human 1-5 [Northern-Route Project]
    </Name>
    <MinLevel>1</MinLevel>
    <MaxLevel>86</MaxLevel>

    <MinDurability>0.3</MinDurability>
    <MinFreeBagSlots>2</MinFreeBagSlots>

    <MailGrey>False</MailGrey>
    <MailWhite>True</MailWhite>
    <MailGreen>True</MailGreen>
    <MailBlue>True</MailBlue>
    <MailPurple>True</MailPurple>

    <SellGrey>True</SellGrey>
    <SellWhite>True</SellWhite>
    <SellGreen>True</SellGreen>
    <SellBlue>False</SellBlue>
    <SellPurple>False</SellPurple>

<!-- Targetting -->

    <TargetElites>False</TargetElites>
    <!-- <ContinentID>0</ContinentID> -->

<!-- Northern Questing Profile Start -->
    

 <!-- 1-5 Northshire Valley -->

    
    <!--Quest Overrides -->
        <Quest Id="26389" Name="Blackrock Invasion">
                <Objective Type="CollectItem" ItemId="58361" Name="Blackrock Orc Weapon" KillCount="8">
                      <Hotspots>
                           <Hotspot X="-8880.634" Y="-364.8899" Z="73.10102" />
                        <Hotspot X="-8958.043" Y="-365.8654" Z="73.175" />
                        <Hotspot X="-8956.242" Y="-418.8904" Z="72.25417" />
                        <Hotspot X="-9006.854" Y="-403.2159" Z="74.31793" />
                        <Hotspot X="-9000.881" Y="-340.1051" Z="74.62366" />
                        <Hotspot X="-9044.726" Y="-441.3511" Z="71.41048" />
                        <Hotspot X="-9121.871" Y="-394.1718" Z="73.75862" />
                           <Hotspot X="-9149.743" Y="-333.594" Z="72.99525" />
                        <Hotspot X="-9099.561" Y="-232.1622" Z="74.88316" />
                      </Hotspots>
                </Objective>
          </Quest>
        <Quest Id="26390" Name="Ending the Invasion!">
                <Objective Type="KillMob" MobId="42938" Name="Kurtok the Slayer" KillCount="1">
                      <Hotspots>
                        <Hotspot X="-8883.111" Y="-442.0399" Z="68.05991" />
                      </Hotspots>
                </Objective>
          </Quest>
        
    <!-- Starting Questing -->

     <!-- Vendor Northshire -->        
  <QuestOrder>
        <SetVendor>
            <Vendors>
                <!-- Northshire Trainers-->
                <Vendor Name="Khelden Bremen" Entry="198" Type="Train" TrainClass="Mage" X="-8851.57" Y="-188.234" Z="89.31455" />
                <Vendor Name="Priestess Anetta" Entry="375" Type="Train" TrainClass="Priest" X="-8853.587" Y="-193.336" Z="81.9331" />
                <Vendor Name="Drusilla La Salle" Entry="459" Type="Train" TrainClass="Warlock" X="-8926.743" Y="-195.5889" Z="80.58859" />
                <Vendor Name="Jorik Kerridan" Entry="915" Type="Train" TrainClass="Rogue" X="-8863.468" Y="-210.9055" Z="80.57187" />
                <Vendor Name="Brother Sammuel" Entry="925" Type="Train" TrainClass="Paladin" X="-8914.567" Y="-215.0163" Z="82.11676" />
                <Vendor Name="Llane Beshere" Entry="911" Type="Train" TrainClass="Warrior" X="-8918.364" Y="-208.4109" Z="82.12556" />
                <Vendor Name="Ashley Blank" Entry="43278" Type="Train" TrainClass="Hunter" X="-8924.651" Y="-149.9028" Z="81.36338" />
                <!-- Common Vendors-->               
                <Vendor Name="Godric Rothgar" Entry="1213" Type="Repair" X="-8898.231" Y="-119.8379" Z="81.83278" />        
                <Vendor Name="Dermot Johns" Entry="190" Type="Repair" X="-8897.71" Y="-115.3281" Z="81.84091" />
                <Vendor Name="Brother Danil" Entry="152" Type="Food" X="-8901.59" Y="-112.716" Z="81.84827" />
                <Vendor Name="Janos Hammerknuckle" Entry="78" Type="Repair" X="-8909.458" Y="-104.1632" Z="81.84879" />
            </Vendors>
        </SetVendor>
          

            <PickUp QuestName="Beating them Back!" QuestId="28767" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective QuestName="Beating them Back!" QuestId="28767" Type="Killmob" MobId="49871" Killcount="6">
                    <Hotspots>
                        <Hotspot X="-8821.95" Y="-96.10" Z="84.68" />
                        <Hotspot X="-8886.069" Y="-61.04" Z="85.81" />
                    </Hotspots>
                </Objective>
            <TurnIn QuestName="Beating them Back!" QuestId="28767" TurnInName="Marshal McBride" TurnInId="197" X="-8913.07" Y="-137.41" Z="80.82" />
            <PickUp QuestName="Lions for Lambs" QuestId="28759" GiverName="Marshal McBride" GiverId="197" X="-8913.07" Y="-137.41" Z="80.82" />
                <Objective QuestName="Lions for Lambs" QuestId="28759" Type="Killmob" MobId="49874" Killcount="8">
                    <Hotspots>
                        <Hotspot X="-8966.63" Y="-181.89" Z="80.95" />
                        <Hotspot X="-8945.423" Y="-250.6136" Z="77.50798" />
                        <Hotspot X="-8853.343" Y="-95.20445" Z="82.55843" />
                    </Hotspots>
		</Objective>
                <TurnIn QuestName="Lions for Lambs" QuestId="28759" TurnInName="Marshal McBride" TurnInId="197" X="-8913.07" Y="-137.41" Z="80.82" />  
  
    <!-- Hunter -->
            
        <If Condition="Me.Class == WoWClass.Hunter">
  
            
		<PickUp QuestName="Etched Letter" QuestId="26910" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
			<Objective QuestName="Etched Letter" QuestId="26910" Type="CollectItem" ItemId="60677" CollectCount="1" />
		<TurnIn QuestName="Etched Letter" QuestId="26910" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
		<PickUp QuestName="The Hunter's Path" QuestId="26917" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
			<If Condition="!Styx.Logic.Combat.SpellManager.HasSpell(56641)">
				<CustomBehavior File="ForceSetVendor"  DoTrain="True" />
			</If>
			<If Condition="(HasQuest(26917)) &amp;&amp; (!IsQuestCompleted(26917))">
				<CustomBehavior File="CastSpellOn" QuestId="26917" SpellId="56641" MobId="44548" NumOfTimes="5" MobHpPercentLeft="100" MinRange="14" X="-8965.57" Y="-146.288" Z="81.50985" />
			</If>
		<TurnIn QuestName="The Hunter's Path" QuestId="26917" TurnInName="Ashley Blank" TurnInId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            
            	<PickUp QuestName="Join the Battle!" QuestId="28780" GiverName="Ashley Blank" GiverId="43278" X="-8924.651" Y="-149.9028" Z="81.36339" />
            	<TurnIn QuestName="Join the Battle!" QuestId="28780" TurnInName="Sergeant Willem" TurnInId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            	<PickUp Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            	<PickUp Questname="Fear no Evil" QuestId="28806" GiverName="Brother Paxton" GiverId="951" />
                	<While Condition="((HasQuest(28806)) &amp;&amp; (!IsQuestCompleted(28806)))">
                    		<CustomBehavior File="InteractWith" QuestId="28806" MobId="50047" NumOfTimes="4" CollectionDistance="500" X="-8769.394" Y="-190.3564" Z="84.5011" />
                	</While>
           	<TurnIn Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            	<TurnIn QuestName="Fear No Evil" QuestId="28806" TurnInName="Brother Paxton" TurnInId="951" />
            	<PickUp Questname="The Rear is Clear" QuestId="28817" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />
            	<TurnIn QuestName="The Rear is Clear" QuestId="28817" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        
        </If>

	<PickUp Questname="Blackrock Invasion" QuestId="26389" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        <PickUp Questname="Extinguishing Hope" QuestId="26391" GiverName="Milly Osworth" GiverId="9296" X="-8923.88" Y="-135.8889" Z="81.02888" />
        	<While Condition="((HastQuest(26391)) &amp;&amp; (!IsQuestCompleted(26391)))">
                    <CustomBehavior File="UserSettings" PullDistance="10" />
                    <CustomBehavior File="UseItemOn" QuestId="26391" MobId="42940" ItemId="58362" NumOfTimes="8" WaitTime="3000" Range="10" CollectionDistance="100" X="-9063.322" Y="-277.0595" Z="73.64384" />
                    <CustomBehavior File="UserSettings" PullDistance="25" />
                </While>
              <Objective QuestName="Ending the Invasion!" QuestId="26390" Type="KillMob" MobId="42938" KillCount="1" />        
        <TurnIn QuestName="Ending the Invasion!" QuestId="26390" TurnInName="Marshal McBride" TurnInId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />

        <!-- Moving to Goldshire -->
            
        <PickUp QuestName="Report to Goldshire" QuestId="54" GiverName="Marshal McBride" GiverId="197" X="-8913.069" Y="-137.4063" Z="80.8181" />
        <PickUp QuestName="Rest and Relaxation" QuestId="2158" GiverName="Falkhaan Isenstrider" GiverId="6774" X="-9044.558" Y="-45.98166" Z="88.33724" />
        <TurnIn QuestName="Report to Goldshire" QuestId="54" TurnInName="Marshal Dughan" TurnInId="240" X="-9465.521" Y="74.00694" Z="56.59536" />
        <TurnIn QuestName="Rest and Relaxation" QuestId="2158" TurnInName="Innkeeper Farley" TurnInId="295" X="-9462.663" Y="16.19151" Z="56.96266" />

        <SetGrindArea>
            <GrindArea>
                <Factions>7</Factions>
                <Hotspots>
                    <Hotspot X="-8782.871" Y="-107.3422" Z="83.35699" />
                    <Hotspot X="-8720.972" Y="-88.16251" Z="90.40733" />
                    <Hotspot X="-8724.425" Y="-137.0334" Z="86.89613" />
                    <Hotspot X="-8736.088" Y="-199.7948" Z="87.86673" />
                    <Hotspot X="-8771.962" Y="-259.924" Z="80.28711" />
                    <Hotspot X="-8805.207" Y="-232.5131" Z="82.34293" />
                    <Hotspot X="-8807.99" Y="-198.0297" Z="82.20427" />
                    <Hotspot X="-8774.711" Y="-160.9021" Z="81.87766" />
                    <Hotspot X="-8768.478" Y="-106.164" Z="85.97653" />
                </Hotspots>
            </GrindArea>
        </SetGrindArea>
        <GrindTo Level="5" />

 <!-- Goldshire & Elvynn Forest -->
    
        <Checkpoint Level="5" />
            
        <CustomBehavior File="LoadProfile" ProfileName="[A - Quest] Northern Routes Project [Human 5-12]" />
    
    </QuestOrder>

</HBProfile>

We are constantly looking about these bugs. Ty
 

Attachments

By removing the if statement, the rest of the if body is processed. The error returned is :

PHP:
Warning: XML Error: Attribute TurnInId of integral type was missing in "TurnIn" tag. - On line 123 - [<TurnIn Questname="They sent Assassins" QuestId="28791" GiverName="Sergeant Willem" GiverId="823" X="-8827.837" Y="-158.6233" Z="79.85906" />]

GiverId needs to be TurnInId
 
Back
Top