Jump to content

insanity

Members
  • Posts

    80
  • Joined

  • Last visited

Posts posted by insanity

  1. Hey,

    I want my bot to stay at one location all the time and dps (ranged) mobs from that specific location.
    My fightclass is working, but I simply want my bot to not chase mobs from the one hotspot I added in my grinder profile.

    Eg. There will be mobs running past my bot (in range) now and then, but as soon as the mobs is out of range, my bot start chasing them. I do not want my bot to do that!

    How can I manage this?

  2. Hi,

    First of all, this is for vanilla.
    I have set up a party bot consisting of a main (me playing) and bots that have me on follow, in party settings.
    Everything is working fine, he heals all party members, but is not healing himself based on my configured conditions (flash heal or shield). He is buffing himself with Power Word:Fortitude tho.

    This is my current fight class:
     

    <?xml version="1.0" encoding="utf-16"?>
    <FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <FightClassGeneralSettings>
        <FightClassName>Fight config name</FightClassName>
        <Range>30</Range>
        <FramePerSecond>25</FramePerSecond>
      </FightClassGeneralSettings>
      <FightClassSpells>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>CSharpCode</ContionType>
              <Param xsi:type="FightClassConditionString">
                <Value>Lua.LuaDoString&lt;bool&gt;(@"for i=1,25 do local dt, da, dty  = UnitDebuff('player',i); if dty == 'Magic' then TargetUnit('player'); return true end end")</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>Mana</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>BiggerOrEqual</Type>
                <Value>200</Value>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Dispel Magic</SpellName>
          <Priority>11</Priority>
          <IsBuff>true</IsBuff>
          <CombatOnly>false</CombatOnly>
          <CheckIfSpellUsable>false</CheckIfSpellUsable>
          <CheckSpellDistance>false</CheckSpellDistance>
          <CheckIfView>false</CheckIfView>
          <Timer>2000</Timer>
          <LockFrame>false</LockFrame>
          <CastOnSelf>true</CastOnSelf>
          <CastOn>player</CastOn>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>CSharpCode</ContionType>
              <Param xsi:type="FightClassConditionString">
                <Value>Lua.LuaDoString&lt;bool&gt;(@"for i=1,25 do local dt, da, dty  = UnitDebuff('party1',i); if dty == 'Magic' then return true end end")</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>Mana</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>BiggerOrEqual</Type>
                <Value>200</Value>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Dispel Magic</SpellName>
          <Priority>10</Priority>
          <IsBuff>true</IsBuff>
          <CombatOnly>false</CombatOnly>
          <CheckIfSpellUsable>false</CheckIfSpellUsable>
          <Timer>2000</Timer>
          <TargetFriends>true</TargetFriends>
          <CanMoveDuringCast>Yes</CanMoveDuringCast>
          <LockFrame>false</LockFrame>
          <CastOn>party1</CastOn>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>TargetDistance</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>Smaller</Type>
                <Value>30</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>TargetBuff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Power Word: Fortitude</Name>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>CSharpCode</ContionType>
              <Param xsi:type="FightClassConditionString">
                <Value>ObjectManager.Me.InCombatFlagOnly == false</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>Buff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Drink</Name>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>Buff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Food</Name>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Power Word: Fortitude</SpellName>
          <Priority>7</Priority>
          <CombatOnly>false</CombatOnly>
          <TargetFriends>true</TargetFriends>
          <CastOn>party1</CastOn>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>CSharpCode</ContionType>
              <Param xsi:type="FightClassConditionString">
                <Value>ObjectManager.Me.InCombatFlagOnly == false</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>Buff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Power Word: Fortitude</Name>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>TargetUnit('player');CastSpellByName("Power Word: Fortitude", onSelf);</SpellName>
          <Priority>6</Priority>
          <IsBuff>true</IsBuff>
          <CombatOnly>false</CombatOnly>
          <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
          <LockFrame>false</LockFrame>
          <CastOnSelf>true</CastOnSelf>
          <CastOn>player</CastOn>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>HealthPercent</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>SmallerOrEqual</Type>
                <Value>75</Value>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>TargetUnit('player');CastSpellByName("Flash Heal", onSelf);</SpellName>
          <CombatOnly>false</CombatOnly>
          <CheckIfKnow>false</CheckIfKnow>
          <CheckIfSpellUsable>false</CheckIfSpellUsable>
          <CheckSpellDistance>false</CheckSpellDistance>
          <LockFrame>false</LockFrame>
          <CastOnSelf>true</CastOnSelf>
          <CastOn>player</CastOn>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>Buff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Power Word: Shield</Name>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>Buff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Weakened Soul</Name>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Power Word: Shield</SpellName>
          <Priority>4</Priority>
          <LockFrame>false</LockFrame>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>TargetHealthPercent</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>SmallerOrEqual</Type>
                <Value>60</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>TargetDistance</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>Smaller</Type>
                <Value>40</Value>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Greater Heal</SpellName>
          <Priority>3</Priority>
          <CombatOnly>false</CombatOnly>
          <TargetFriends>true</TargetFriends>
          <CastOn>party1</CastOn>
        </FightClassSpell>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>ManaPercent</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>BiggerOrEqual</Type>
                <Value>5</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>TargetHealthPercent</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>SmallerOrEqual</Type>
                <Value>75</Value>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>TargetBuff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Renew</Name>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>TargetDistance</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>Smaller</Type>
                <Value>40</Value>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Renew</SpellName>
          <Priority>2</Priority>
          <IsBuff>true</IsBuff>
          <CombatOnly>false</CombatOnly>
          <TargetFriends>true</TargetFriends>
          <CastOn>party1</CastOn>
        </FightClassSpell>
      </FightClassSpells>
    </FightClass>

     

  3. Hey,

    First of all I would like to point out that this is for vanilla.

    I made a gatherer profile that is running to most herb-node locations in a zone. 
    My problem is that some of the nodes are "guarded" by 4-5 mobs. I would like to clear these mobs before looting this herb.
    How can I manage that?

    I dont want to use the "Dismount when entering combat" feature, cause that would slow my route down drastically.

  4. Sorry for late reply.

    Yes something like that.

    Conditions:

    1. Not in combat, should be straight after combat.
    2. Pet Mana < 20
    3. Randomizer, lets say 25% for beeing true.

    When all these conditions is true, we should pause bot for like 20 seconds, something like this:

    robotManager.Products.Products.InPause = true;
    Others.Wait(Others.Random(20000);
    robotManager.Products.Products.InPause = false;

  5. Yep. I actually used simular code as you Droidz.

    Now I got a new problem. I want to run this code RANDOMLY after combat when the manapercent of my pet is less than xx. Eg. condition: Pet.Manapercent <= 20 && (Others.Random(1,20) <= 4) && Notincombat..

    Since the bot checks spells conditions each tick?, the random condition will eventually return true, because it runs often. The result is that the bot always pauses after combat when manapercent of pet is less that 20.

    Would it be possible to only check these conditions once after combat? Is there a easier solution?

  6. Hey,

    Would it be possible to have the bot gather some object and at the same time kill som specified mob entries?
    This is useful when you are going to gather an object that is in middle of a bunch of mobs.
    As of now (in gatherer mode) the bot runs to the object, thus pulling 3-4 mobs. No way you can handle that in vanilla.
    Would'nt it be better to kill those surrounding mobs first, then loot the object?


    Eg, Im a mage and can pull the surrounding mobs from distance. This way I have to fight 1-2 mobs instead of 3-4.

×
×
  • Create New...