<CustomBehavior File="Misc\RunLua" Lua="
ShowPizzaMessage = GetMoney();
WarningIconChat = GetTime();
WarningIconLeft = math.floor(WarningIconChat-WarningIconRight)
ShowWipeMessage = math.floor(ShowPizzaMessage-ShowLoadMessage);
totalmoney = math.floor(ShowPizzaMessage-ShowKillMessage);
print("|cFF0099FFStatistics so far:|r\nYou've picked up ", GetCoinTextureString(ShowWipeMessage), " from this run.\n", "So far, you've made ", GetCoinTextureString(totalmoney), " total.")
" />
<CustomBehavior File="Misc\RunLua" Lua="CastSpellByID(18960);" />
<CustomBehavior File="WaitTimer" WaitTime="2000" />
<CustomBehavior File="Misc\RunLua" Lua="ShowRecoveryMessage = GetMoney();" />
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: Moving to Sell, Repair and Mail.");" />
<If Condition="Me.KnowsSpell(61425) || Me.KnowsSpell(61447) || Me.KnowsSpell(122708)" >
<CustomBehavior File="WaitTimer" WaitTime="750" />
<CustomBehavior File="RunMacro" Macro="/cast Тундровый мамонт путешественника\n/cast Traveler's Tundra Mammoth\n/cast Tundramammut des Reisenden\n/cast Großes Expeditionsyak\n/cast Большой як для путешествий\n/cast Grand Expedition Yak" />
<CustomBehavior File="WaitTimer" WaitTime="2000" />
<If Condition="Me.HasAura(61425)" >
<CustomBehavior File="InteractWith" MobId="32639" />
<ElseIf Condition="Me.HasAura(61447)" >
<CustomBehavior File="InteractWith" MobId="32641" />
</ElseIf>
<ElseIf Condition="Me.HasAura(122708)" >
<CustomBehavior File="InteractWith" MobId="62822" />
</ElseIf>
</If>
<CustomBehavior File="Misc\RunLua" NumOfTimes="10" WaitTime="2000" Lua="
if MerchantFrame:IsVisible()==true then
if buffer==nil or buffer>4 then buffer=0 end
MerchantRepairAllButton:Click()
if buffer<5 then
for s=1,GetContainerNumSlots(buffer)
do local n=GetContainerItemLink(buffer,s)
if (n and strfind(n, "ff9d9d9d") or n and strfind(n, "ffffffff") or n and strfind(n, "ff1eff00") or n and strfind(n, "ff0070dd")) then
UseContainerItem(buffer,s)
end
end
buffer=buffer+1
end
end" />
</If>
<CustomBehavior File="WaitTimer" WaitTime="2000" />
<CustomBehavior File="Misc\RunLua" Lua="CastSpellByID(18960);" />
<CustomBehavior File="WaitTimer" WaitTime="2000" />
<CustomBehavior File="Misc\RunLua" Lua="CastSpellByID(83958);" />
<CustomBehavior File="WaitTimer" WaitTime="3500" />
<If Condition="Me.IsAlliance" >
<CustomBehavior File="InteractWith" MobId="206602" WaitForNpcs="false" ObjectType="GameObject" Range="10" WaitTime="2000" />
</If>
<If Condition="Me.IsHorde" >
<CustomBehavior File="InteractWith" MobId="206603" WaitForNpcs="false" ObjectType="GameObject" Range="10" WaitTime="2000" />
</If>
<CustomBehavior File="Misc\RunLua" Lua="
if GuildBankFrame:IsVisible()==true then
MyMoney = GetMoney();
DepositGuildBankMoney(MyMoney);
print("|cFF3399FF[Azyul]|r: Depositing "..GetCoinTextureString(MyMoney))UseContainerItem(b,s);
else
print("|cFF3399FF[Azyul]|r: Your mobile guild bank wasn't detected, continuing run.")
end" />
<CustomBehavior File="Hooks\DoWhen" ActivityName="CustomDeathHook" Command="Disable" />
<If Condition="(Me.FreeBagSlots < 17)" >
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: Skipping wait since we're going to the vendor.");" />
<Else>
<CustomBehavior File="Misc\InstanceTimer" Timer="Check" WaitTime="369000" />
</Else>
</If>
<CustomBehavior File="WaitTimer" WaitTime="5000" />
<CustomBehavior File="RunMacro" Macro="/script ResetInstances()" />
</If>
</While>
<While Condition="(Me.FreeBagSlots < 17)">
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: Moving to Sell, Repair and Mail.");" />
<CustomBehavior File="Misc\RunLua" Lua="ShowRecoveryMessage = GetMoney();" />
<If Condition="Me.KnowsSpell(61425) || Me.KnowsSpell(61447) || Me.KnowsSpell(122708)" >
<CustomBehavior File="WaitTimer" WaitTime="750" />
<CustomBehavior File="RunMacro" Macro="/cast Тундровый мамонт путешественника\n/cast Traveler's Tundra Mammoth\n/cast Tundramammut des Reisenden\n/cast Großes Expeditionsyak\n/cast Большой як для путешествий\n/cast Grand Expedition Yak" />
<CustomBehavior File="WaitTimer" WaitTime="2000" />
<CustomBehavior File="ForceSetVendor" DoSell="True" DoRepair="True" />
<CustomBehavior File="WaitTimer" WaitTime="5500" />
<Else>
<CustomBehavior File="Misc\RunLua" Lua="print("|cFF3399FF[Azyul]|r: Vendor mount wasn't detected, continuing run.")" />
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: Vendor mount not detected.");" />
</Else>
</If>
<If Condition="(Me.FreeBagSlots < 17)" >
<CustomBehavior File="FlyTo" X="-4083.552" Y="-3465.485" Z="287.8949" />
<If Condition="Me.IsHorde" >
<CustomBehavior File="FlyTo" X="-3503.599" Y="-4375.011" Z="210.492" />
<SetVendor>
<Vendors>
<Vendor Name="Provisioner Graka" Nav="Fly" Entry="49775" Type="Repair" X="-3491.58" Y="-4368.721" Z="210.4921" />
</Vendors>
</SetVendor>
<CustomBehavior File="ForceSetVendor" DoMail="False" DoSell="True" DoRepair="True" />
<If Condition="(Me.FreeBagSlots < 20)">
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: You're still under 20 bagslots after selling. Moving to mail.");" />
<CustomBehavior File="FlyTo" X="-3669.523" Y="-5285.55" Z="48.18324" />
<CustomBehavior File="WaitTimer" WaitTime="500" />
<SetMailbox>
<Mailboxes>
<Mailbox Nav="Fly" X="-3666.559" Y="-5278.83" Z="41.7954" />
</Mailboxes>
</SetMailbox>
<CustomBehavior File="ForceSetVendor" DoMail="True" />
<CustomBehavior File="WaitTimer" WaitTime="500" />
</If>
</If>
<If Condition="Me.IsAlliance" >
<CustomBehavior File="FlyTo" X="-4187.616" Y="-4751.438" Z="126.7861" />
<SetVendor>
<Vendors>
<Vendor Name="Brian Terrel" Nav="Fly" Entry="49605" Type="Repair" X="-4187.616" Y="-4751.438" Z="126.7861" />
</Vendors>
</SetVendor>
<CustomBehavior File="ForceSetVendor" DoMail="False" DoSell="True" DoRepair="True" />
<If Condition="(Me.FreeBagSlots < 20)">
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: You're still under 20 bagslots after selling. Moving to mail.");" />
<CustomBehavior File="FlyTo" X="-5361.541" Y="-2951.45" Z="324.0776" />
<SetMailbox>
<Mailboxes>
<Mailbox Nav="Fly" X="-5365.623" Y="-2954.108" Z="323.7545" />
</Mailboxes>
</SetMailbox>
<CustomBehavior File="ForceSetVendor" DoMail="True" />
<CustomBehavior File="WaitTimer" WaitTime="500" />
</If>
</If>
<CustomBehavior File="Misc\RunLua" Lua="
AutoRespond = GetMoney();
WhisperStats = math.floor(AutoRespond-ShowRecoveryMessage);
vendortotalmoney = math.floor(AutoRespond-ShowKillMessage);
print("|cFF0099FFStatistics so far:|r\nYou've gained ", GetCoinTextureString(WhisperStats), " after selling and repairing.\n", "So far, you've made ", GetCoinTextureString(vendortotalmoney), " total.")
" />
<ClearVendor />
<ClearMailbox />