my code

Wird der Char als AFK geflagged und der Ruhestein hat keinen Cooldown, so wird er benutzt und anschlie├čend das Profil neu geladen.

Snippet options

Download: Download snippet as antiafk-protection.xml.
Copy snippet: For this you need a free my code account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

        <!-- AntiAFK Protection -->
            <CustomBehavior File="Hooks\DoWhen" ActivityName="AntiAFK Protection"
                                                         &amp;&amp; Me.SubZoneId != Me.HearthstoneAreaId
                                                         &amp;&amp; Me.BagItems.FirstOrDefault(r =&gt; r.Entry == 6948 &amp;&amp; r.CooldownTimeLeft.TotalMilliseconds == 0) != null" 
                                                AllowUseDuringCombat="true" AllowUseWhileFlying="true" AllowUseWhileMounted="true">
                <CustomBehavior File="Message" Text="[Profile]: AntiAFK Protection active!" LogColor="Red" />
                <CustomBehavior File="ForcedDismount" />                                
                <CustomBehavior File="UseItem" ItemId="6948" WaitTime="15000" MovementBy="NavigatorOnly" />
                <CustomBehavior File="RunCode" Code="ProfileManager.LoadNew(ProfileManager.XmlLocation,true)" />
        <!-- AntiAFK Protection -->

Create a free my code account now.

my code is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.