Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Artillery Strike

Featured Replies

Hello,

 

I'm trying to get Artillery Strike to work in my fight class.  Here are my attempts - it doesn't work.  Any suggestions?

    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>count = GetItemCount(162077) ; if count &gt; 0 then vRet = 1 else vRet = 0 end</LuaScript>
            <VarRet>vRet</VarRet>
            <ValueRet>1</ValueRet>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>HostileUnitNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>1</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>10</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>RunMacroText("/use Artillery Strike")</SpellName>
      <Priority>15</Priority>
      <Timer>4000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <AOESpellMePos>true</AOESpellMePos>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>count = GetItemCount(162077) ; if count &gt; 0 then vRet = 1 else vRet = 0 end</LuaScript>
            <VarRet>vRet</VarRet>
            <ValueRet>1</ValueRet>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>CSharpCode</ContionType>
          <Param xsi:type="FightClassConditionString">
            <Value>ObjectManager.GetWoWUnitHostile().Count(u =&gt; u.Position.DistanceTo(ObjectManager.Target.Position) &lt;= 10 &amp;&amp; u.Entry != 77405 &amp;&amp; u.Guid != ObjectManager.Pet.Guid &amp;&amp; wManager.Wow.Helpers.UnitCanAttack.CanAttack(u.GetBaseAddress, ObjectManager.Me.GetBaseAddress)) &gt;= 2</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>RunMacroText("/use Artillery Strike")</SpellName>
      <Priority>14</Priority>
      <Timer>6000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <AOESpell>true</AOESpell>
    </FightClassSpell>

  • Author

Hi,

 

"/cast Artillery Strike" doesn't work, only "/use Artillery Strike" does.  I've retested this and only "/use" works from the cmd line.

 

The attempt at using the GetItemCount was to try and get it to not trigger when the number of artillery uses was zero.  I have had situations in the past where the bot would loop on an item with charges and not progress to another condition test.

 

I've taken the getitemcount out, as well as the c sharp code.  Now back to:

    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HostileUnitNear</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>1</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>10</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>RunMacroText("/use Artillery Strike")</SpellName>
      <Priority>14</Priority>
      <Timer>4000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <AOESpellMePos>true</AOESpellMePos>
    </FightClassSpell>

 

    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HostileUnitNearTarget</ContionType>
          <Param xsi:type="FightClassConditionUnitNear">
            <Number>2</Number>
            <Type>BiggerOrEqual</Type>
            <Radius>10</Radius>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>RunMacroText("/use Artillery Strike")</SpellName>
      <Priority>13</Priority>
      <Timer>6000</Timer>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
      <AOESpell>true</AOESpell>
    </FightClassSpell>

  • 2 months later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.