Well i cant make it work
. If anyone can point me in the right direction 
I want to :
- mine (GB2) untill 2 free bag slots
- move to forge location
- smelt all ore
- mail to alt all bars/gems/etc. (not ore)
- load GB2 profile and resume (loop)
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy ChildrenCount="1">
<While Condition="" IgnoreCanRun="True" ChildrenCount="1">
<If Condition="Mining.Level>525" IgnoreCanRun="True" ChildrenCount="2">
<If Condition="" IgnoreCanRun="True" ChildrenCount="2">
<MoveToAction MoveType="Location" Pathing="Navigator" Entry="0" X="xxx" Y="yyy" Z="zzz" />
<CastSpellAction Entry="smelt ore spell ID" Repeat="1" RepeatType="Specific" CastOnItem="False" ItemId="0" ItemType="Chest" />
</If>
<If Condition="InbagCount(Ore ID) < 1" IgnoreCanRun="True" ChildrenCount="2">
<MailItemAction Entry="Bar ID" AutoFindMailBox="True" UseCategory="False" Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="MetalStone" X="0" Y="0" Z="0" />
<LoadProfileAction Path="profile path" ProfileType="Honorbuddy" />
</If>
</If>
</While>
</Professionbuddy>


I want to :
- mine (GB2) untill 2 free bag slots
- move to forge location
- smelt all ore
- mail to alt all bars/gems/etc. (not ore)
- load GB2 profile and resume (loop)
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy ChildrenCount="1">
<While Condition="" IgnoreCanRun="True" ChildrenCount="1">
<If Condition="Mining.Level>525" IgnoreCanRun="True" ChildrenCount="2">
<If Condition="" IgnoreCanRun="True" ChildrenCount="2">
<MoveToAction MoveType="Location" Pathing="Navigator" Entry="0" X="xxx" Y="yyy" Z="zzz" />
<CastSpellAction Entry="smelt ore spell ID" Repeat="1" RepeatType="Specific" CastOnItem="False" ItemId="0" ItemType="Chest" />
</If>
<If Condition="InbagCount(Ore ID) < 1" IgnoreCanRun="True" ChildrenCount="2">
<MailItemAction Entry="Bar ID" AutoFindMailBox="True" UseCategory="False" Category="TradeGoods" SubCategoryType="WoWItemTradeGoodsClass" SubCategory="MetalStone" X="0" Y="0" Z="0" />
<LoadProfileAction Path="profile path" ProfileType="Honorbuddy" />
</If>
</If>
</While>
</Professionbuddy>