my code stock.com

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 stock.com 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"
                                                UseWhen="Me.IsAFKFlagged
                                                         &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)" />
            </CustomBehavior>
        <!-- AntiAFK Protection -->

Create a free my code stock.com account now.

my code stok.com 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.