Jump to content

Ike

Player
  • Content count

    66
  • Joined

  • Last visited

Everything posted by Ike

  1. Hi, I would like to introduce you to my AddOn 'CastModifier', which allows you to use Conditionals inside your /cast macros. This allows you to write some fairly advanced macros in a very compact manner, without the need to learn Lua! Here are some examples: In addition, this AddOn also allows you to use Conditionals inside your "/target" macros and adds the new "/petattack" chat command with full Conditionals support! A list of every available Conditional, including its parameters, extra remarks, and a how-to-install tutorial can be found on the AddOn's Github page. Github Page I greatly appreciate any feedback and any ideas for additional features that may improve this AddOn! Cheers, Ike
  2. Could you elaborate? Not reliably, no. If there are multiple NPCs with the same name then there's no way of telling who's the one casting the spell.
  3. No need to worry! I will keep fixing bugs if they are reported and I'm even willing to add new things if someone has a neat idea!
  4. No, I'm afraid not. I tried since I also made the jump to TBC, but many of the functions used to make this work are no longer available or only in a very limited way.
  5. There's currently no tooltip support available to the public. My local version has an experimental implementation but it's too unreliable right now. And regarding [swimming]: As far as I'm aware there are no API functions that tell me whether you're swimming or not. I could ghetto it by checking whether your breathing bar is displayed but that would be more of a [diving] then, wouldn't it? If anyone knows a way please let me know! Not right now, no. Why would you need this anyway? I'm asking since Decursive exists and that pretty much takes care of all your decursing needs. First of all, CheckInteractDistance doesn't check if you're in melee range. The range index 3 means 10 yards while melee distance is 5 yards. If this weren't the case I would have already implemented a conditional for melee range! But oh well. If this doesn't bother you since it's the closest you can get with the vanilla client, then I'd do it this way: Create 3 Macros "Master", "Ranged" and "Melee". "Master" should look like this: /run if(CheckInteractDistance("target", 3)) then CastModifier.ExecuteMacroByName("Melee") else CastModifier.ExecuteMacroByName("Ranged") end "Ranged": /cast !Auto Shot "Melee": /cast [mypower>60] Raptor Strike With this, you can spam "Master" all day long and it'll do exactly what you want if I didn't make any typos. There's no need for a database. You can do this pretty easily by using GameTooltips. function GetUnitDebuffInfo(unit, i) SomeTooltip:ClearLines(); SomeTooltip:SetUnitDebuff(unit, i); local name = SomeTooltipTextLeft1:GetText(); local type = SomeTooltipTextRight1:GetText(); return name, type; end Et voila, the debuff's name and its type! But again, I don't see why I should put this in the Addon since Decursive is a thing. But maybe I'm missing something, so please let me know what you're trying to do!
  6. Another small update with a few new Conditionals: attacks (Wiki) isplayer / isnpc (Wiki) @jagonx: You're now able to create your macro. Would you mind sharing with me what you're trying to do? I'm genuinely curious why you'd need to see if your target is specifically a player.
  7. The issue with your macro is that after checking for Rake you immediately cast Claw without checking anything. This will skip the last condition. Also, if you want to cast Attack if you don't have the energy for your other abilities, you need to tell the Client in the Macro to do so. Also, you mustn't put commas between conditions. A plain old white space does the job. Here's how I'd do this: /cast [combat nostealth] !Attack /cast [mypower<40] !Attack /cast [stealth mypower>49] Pounce /cast [harm nodebuff:Rake mypower>39] Rake; [mypower>44] Claw This does what you want. Attack when you're in combat and not prowling. Attack when you do not have enough energy for any of your abilities. Cast Pounce if you're in stealth and have enough energy. Cast Rake if your target is hostile if it has no Rake debuff and you have enough energy. If any of these fail, cast Claw as long as you have the energy to do so. The "mypower"s in the last two lines are optional, but using them gets rid of the "I don't have enough energy" spam. This was a limitation of the early macro calling implementation. You weren't able to use conditionals when calling another Macro. However, I've just implemented this in the current version! Using it, you could rewrite my macro from above like this: Master: /cast [combat nostealth] {AA} /cast [mypower<40] {AA} /cast [stealth mypower>49] Pounce /cast [harm nodebuff:Rake mypower>39] Rake; [mypower>44] Claw AA: /cast !Attack
  8. Don't think that's possible as that function requires an action and not a macro. I'll have a look at it though when I find the time to dig into it. 1) Not sure if that's possible for the same reasons mentioned above. But I'll give it a shot. 2) How would you use such a condition? This sounds like a very niche use-case. From your edit message, I gather that you got the macros working? Because they look sound to me. Should be fixed. Thank you once again!
  9. Big update! You're now able to combine multiple modifiers! (Wiki) You can now invoke other Macros from another Macro! (Wiki) Added [no]cooldown Conditionals! (Wiki) Added [no]channeled Conditionals! (Wiki) Fixed a bug that caused /use to not use equipped items! Fixed a bug that caused buff names not to be fully parsed! Make sure to re-download the Addon! Two things: 1) I introduced a parsing bug in the last updates. Should be fixed now, so please re-download the Addon! 2) You can not use white spaces in between the square brackets []. You have to use "_" instead. So make sure to replace "[nomybuff:Aspect of the Hawk]" with "[nomybuff:Aspect_of_the_Hawk]" @jagonx @PrioR @Meitie @Makonha
  10. 1) There was indeed a bug here! Thank you for reporting this, it should be fixed now! 2) This macro can't work like that because in Vanilla you can not switch from one form to another without leaving your current form first. So something more like this would be appropriate: /cast [stance:0]Cat Form;[stance:1]Dire Bear Form;[stance:2]Aquatic Form;[stance:4]Travel Form;[nocombat nostealth]Prowl 3) But since that isn't really nice, I've added the new chat command "/unshift" which also supports all Conditionals! You can use it like this: /unshift [stance:1/2/4] /cast [stance:0] Cat Form; [nocombat nostealth] Prowl This makes it a lot easier to understand what is actually going on! This is a really cool idea! I've implemented it like this: /cast [@target type:Beast] Hibernate; Entangling Roots For more information take a look at the wiki. These pages in particular: https://github.com/DennisWG/CastModifier/wiki/unshift https://github.com/DennisWG/CastModifier/wiki/cast-Conditionals#typecreaturetypeid
  11. Ike

    Mouse over options

    You might want to take a look at my CastModifier addon. It provides you with a wide array of new macro functionality including mouseover support for all mainstream unit frames addons.
  12. Are you sure this just happened after updating and that this Addon is the cause of the error? I'm asking because I've done nothing that could've caused this error to appear.
  13. Oh, my bad! I missed two lines when I pushed the update to Github. Should work fine now!
  14. Quick update: Fixed a bug where only the partial name of a buff was checked for the [no][my][de]buff conditional Implemented support for NotGrid (thank you @Cha for bringing it to my attention) Implemented support for FocusFrame (thank you @jagonx for bringing it to my attention) @Alsorin shift works fine. See: You have to make absolutely sure that you don't have the shift + button combination bound. Just bind it to some unused action and then unbind it again with the "Unbind Key" button. Press "Okay" and try it again. If that doesn't help try disabling all other Addons and see if it then works. If it does turn them back on one by one and see which one causes the issue. Report your result back to me please, so that I can try and fix any possible incompatibilities.
  15. @jmul1212 https://github.com/DennisWG/CastModifier/wiki/Supported-AddOns ClassicFocus is 100% supported. But ClassicFocus has its limits like it can't differentiate between two NPCs with the same name. If you're using it for unique NPCs or other Players, though, it works like a charm!
  16. I don't think that either [swimming] or [mod:altgr] are possible. [form] is the same as [stance], so you can just use that instead. I can't use "/cast Faerie Fire (Feral)" even if I disable all Addons which means that this is a limitation of the 1.12 client and therefore not doable. This one is odd. Here I was thinking I created the greatest thing ever that no one else thought of. Spooky how he even started working on it around the same time I did. Not sure about pmana for druids, though. Sounds pretty complicated when taking things like mana regeneration into account. Could you provide me some examples on how you'd use this? I might divert some time into this if I can see a good use case. /petattack [@mouseover harm nodead]; [@target] Attack any enemy living mouseover target or, when there is none, the current target.
  17. @Finrodi Sure. Replace /cast with /petattack and remove all the spell names.
  18. That version is for a German private server. Therefore, some timers may be different.
  19. There's no need to apologize for your English. Having learned another language and being able to communicate using it is one of the coolest things ever in my books! About your problem: So, it does show up in the character selection screen if you click on the Addons button? If it does and there are no error messages after logging in (especially without any other Addons enabled) it should work fine. But, since it doesn't and you haven't posted any error messages, I assume you have a faulty macro. If you could post your macro here so that I can take a look at it, that would be really helpful!
  20. Done! Ah, there was a sneaky bug in my code which I've now fixed. Remove the white space after the shield's name or download the new version of the Addon! That's the whole point of this Addon. People don't need to learn Lua to create advanced macros in a very readable fashion.
  21. https://github.com/DennisWG/CastModifier/wiki/cast-Conditionals#stance01n https://github.com/DennisWG/CastModifier/wiki/-equip-and--equipoh These should do the trick. If you're having a particular issue, feel free to ask and show what your macro currently looks like.
  22. Ike

    lua programming

    The Vanilla client uses a subset of Lua 5.0. All available functions from the Lua API are listed here: http://wow.gamepedia.com/index.php?title=Lua_functions&oldid=265219 Wow's API: http://wow.gamepedia.com/index.php?title=World_of_Warcraft_API&oldid=303849 Widget API: http://wow.gamepedia.com/index.php?title=Widget_API&oldid=278403 When you open a link make sure to go back to August - October of 2006. Don't go too much beyond that as it may contain TBC stuff (Lua 5.1 and all kinds of other changes).
  23. I didn't have to implement it, Blizzard did! :) I might also implement something like '#showtooltip <name>', but the last time I looked into this I didn't find a good enough solution. But I also tried to do it with Conditionals support which complicated things a lot.
  24. I'll have to look into TheoryCraft to assess that. Not sure when I can get around to do that. Why don't you people read all the documentation I've provided? :( I get it for more complicated stuff, but this is really straightforward: /cast [@mouseover] Remove Curse
  25. True, but since I figured he was new to this I wanted to make this as straightforward as possible. If he decides to go the extra mile and learns Lua he will inevitably read these more eccentric details eventually. If he doesn't then there's no reason to confuse him with this stuff as it makes no difference to the outcome.
×