• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • FelMaster - the anti-button-mashing CC for LazyRaider/Combat bots

    Discussion in 'Archives' started by cowdude, Aug 20, 2011.

    1. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      also is ther a way to use spell id's in this to make it not need the english client and also for stuborn spells that refuse to work with the name eg. Frostfire Orb. Thanks.
       
    2. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      It takes care of translating spell names by itself. Stick to 'english names' everywhere in your code and you'll be fine. I've tested it on the french client, works fine. There may be a few issues with pet spells though, I got to test that.

      Conic area spells (11 is range, 33 is the max relative facing towards target difference (=> 66? degrees cone):
      SC.CastConicSpell("Shadowflame", 11f, 33f, a => true, "ShadowFlame"),

      Instant or cast AOE spells (not channeling ones):
      SC.CastAreaSpell("Explosive Trap", 2, true, 1, 0.0, 40.0, a => SC.PlayerHasBuff("Trap Launcher"), "Explosive Trap"),

      Channeled AOE spells:
      SC.ChannelAreaSpell(string name, double radius, bool requiresTerrainClick, int minAffectedTargets, double minRange,
      double MaxRange, CanRunDecoratorDelegate cond, string label)
      minRange is usually 0, maxRange should be the max distance you can cast the spell at.

      Have a look at the warlock rotations for pet management (forget about the StopCast composite related to pets, I just removed it). Pet spells are a bit different from your spells; they usually look like 'Felstorm(Special Ability)' instead of 'Shadowbolt'. These are the same names you could use while writing an in-game macro, so that's quite easy to find them.
       
      Last edited: Sep 1, 2011
    3. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      Thanks mate how do i do party buff check for arcane brilliance instead of just at me?

      also still not casting Frostfire Orb with the following code

      Code:
      SC.CastSpell("Frostfire Orb", a => SC.CanCast("Frostfire Orb"), "Frostfire Orb"),
       
      Last edited: Sep 1, 2011
    4. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      ok sorted Frostfire orb you have to use flame orb odd but working now just need to figureout party buffing and im golden :)
       
    5. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      hey cowdude do you have in this a check for if spell is off cooldown even if not usable? aka need a buff or gcd is active. etc.
       
      Last edited: Sep 1, 2011
    6. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      There's no party buffing support for now.

      You can try this for cooldown management:
      double SpellCooldown(string name)

      Every time value is in second.

      By the way, the 'can cast' condition is already part of CastSpell.

      SC.CastSpell("My super 10min cooldown spell", a => true, "foo") <- would cast that spell as soon as it's available, and won't block your priority list if it's on cooldown.
       
      Last edited: Sep 1, 2011
    7. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      ok thanks for telling me about the no party buff bit last thing before i can release this for others is this

      Code:
      SC.CastAreaSpell("Freeze", 8, true, 1, 0, 45, a => !SC.PlayerHasBuff("Fingers of Frost") && SC.CanCast("Deep Freeze"), "Freeze"),
      i need it to cast freeze when ever i dont have FOF and deep freeze is off cooldown but ingnor global cooldown on deep freeze if possible its not working as is any idea's?

      Thanks in advance.

      also Is there a place to put an AOE rotation?
       
      Last edited: Sep 1, 2011
    8. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      The aoe rotation should belong to your normal rotation. Just put it at the very top if nothing is more important than AOE mobs when possible.

      Checking spell cooldown: SC.SpellCooldown("Deep Freeze") > 1

      You can also use another behavior for a 'cast aoe spell on target location' instead:
      CastSpellAtLocation(string name, WoWPoint location, CanRunDecoratorDelegate cond, string label)
      or
      CastSpellAtTargetLocation(string name, CanRunDecoratorDelegate cond, string label)
       
    9. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      View attachment DHXFrostInstanceDPS.cs

      ok here it is frostmage i have disabled aoe and freeze they work fine on dummys but really screwy in instanced would love if you could have alook cowdude and maybe sort a fix out Thanks
       
    10. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      Please PM me your log and description of what's happening, and what's supposed to be 'screwy', I'll fix it.

      I'll also add something to handle party buffs as you did, thanks for the code. :)
       
      Last edited: Sep 2, 2011
    11. HB9627U06

      HB9627U06 New Member

      Joined:
      Apr 22, 2011
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Hi cowdude, thanks a lot for your work and efforts. :)
      One question about a modify of the warlock cs:
      there's a way to trigger the use of Soul Harvest when u have 2 or less Soul Shards and/or 80%hp?
       
    12. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      Almost Have Arcane Sorted now too. :), votes for next class/spec i should do? i have 10 85's so any is fair game.
       
    13. ShortRound

      ShortRound New Member

      Joined:
      Jun 14, 2011
      Messages:
      781
      Likes Received:
      14
      Trophy Points:
      0
      Think you could figure out survival hunter? Keep meaning to give it a go but spend my whole day running MF dailies on all my alts.
       
    14. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      View attachment 03-09-2011_10_07 5436 Log.zip
      ok screwyness of aoe is target selection, didnt really do it in this log but i will explain because it works but just weird sometime, it seems to inclued weird target like neutral worgen in SFK and also z +/- Mobbs too also mobs not pulled i would sugest ganging target selection to onlt include mobs targeting player and part members also make sure cc'd mobs are disallowed and select them in a xyz block of spell radius, the pet skill trys to spam but on wow getting message pet is out of range but can manually cast the spell at target location.

      also any chance of getting an aoe cast that aoe's aroung current target if its viable instead of just any viable aoe so you can try to maintain boss damage thanks :)
       
    15. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
    16. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      What do i put in keyspell if i want it to work for a pretalent tree toon but also after spec select for example a ret pally but usable for lvl 1.
       
    17. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      View attachment DHXSurvivalHunter.cs

      Here you go Survival Hunter dps rotation aoe is disabled till i figure out how to do aoe detection around target.

      Next vote for class/spec to do now.
       
    18. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      you can make a Boomkin :D
       
    19. boofoo

      boofoo New Member

      Joined:
      May 19, 2010
      Messages:
      51
      Likes Received:
      0
      Trophy Points:
      0
      Boomkin or Elemental Shaman?
       
    20. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      ok will give it a go boomkin first i think
       

    Share This Page