Last edited by imdasandman; 01-13-2012 at 10:29 AM.
Amazing bot, thank you.
Has anyone figured out whats wrong with ash's restro druid profile and not using swiftmend? cause it's annoying me =[ i wont it to use it on CD almost. it'll cast on my self perfectly if i go below 90% after it nourish's. but it just rarly applies on anyone else![]()
If i want to cast something based on if it is less then 3 seconds left of a CD, how do i do that?
I disagree. Kaolla has it so you push a modifier button and it lays down DnD on your cursor position. That may be considered subpar if you really wanna use PQR and dont do anything else, but its not that much of a problem to press a button every 30sec manually. It would also be a dps LOSS on AoE fights because i guess it would spawn dnd exactly under the mob, which may then not hit other mobs. The way Kaolla has it you can CHOOSE where to lay down the DnD. Thats OK imo.
I started looking into the profiles with the intetnion to get to know the code more and I have a question:
whats all that _,_,_,??Code:local dbFrostFever, _, _, _, _, _, dbexpire = UnitDebuffID("target",55095, "player")
It is unused parameters returned from the function. Ie in your case the function "UnitDebuffID()" is returning a couple of things. The first thing is stored in a variabel called dbFrostFever. Then the next coupe of values you just ignore meaning _, but you want to save the 7th value into dbexpire.
The function is defined as such
Basically take the name, ignore rank, icon, count, debuffType and duration but save expirationTime.Code:name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff("unit", index or ["name", "rank"][, "filter"])
Spent alot of time testing various things to sort that problem and from the best I can tell it's partly because of some Rejuv/Regrowth code problems and partly because it has standards on when it would cast, rather than how most Druids do it and just cast it regardless...
Having said that here's an updated version that adds a few changes as well as some encounter specific updates:
RestoDruid_Ash_Profile.rar
Let me know if that helps and I'll do a little more to it before I do a proper release
I noticed that some people's profiles have with one button press they can change the order of their rotation, for example switching from single target to AOE.
Would any of you advanced programmers care to share how this is done. I have tried looking through the code for some of them, but I really do not get it.
Hi ask, thanks for the "testing" profilei'll do some testing, i a raid using it at the moment :P seems to be ok but still havnt noticed it using swiftmend =/
I personally dislike switching to AOE mode like that, except in Sheuron's fire mage profile where you hold shift to AOE... that works great. Whenever I press CTRL+S for example to turn on/off sound it turns on AOE mode!
In any case...
you make an ability, like this:
docs/api categories - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
Name: Switch Modes:
Spell ID: 0
Code:
Change the GetTime() + 2 to whatever timeout you want, to prevent it rapidly switching back and forth. Put this ability at the top of your rotation.Code:if PQ_Mode == nil then PQ_Mode = 1 PQ_ChangeTimeout = GetTime() - 1 end if IsLeftControlKeyDown() then if PQ_ChangeTimeout < GetTime() then PQ_ChangeTimeout = GetTime() + 2 if PQ_Mode == 1 then PQR_WriteToChat("AOE Mode Enabled.") PQ_Mode = 2 else PQR_WriteToChat("Single Target Mode Enabled.") PQ_Mode = 1 end end end
You then make abilities that check the PQ_Mode global variable. For example, if an ability is single target only, at the top put:
If an ability is AOE only, at the top put:Code:if PQ_Mode ~= 1 then return false end
Code:if PQ_Mode ~= 2 then return false end
Last edited by Xelper; 01-13-2012 at 01:05 PM.
ash i just had a thought... coulld you recode nourish so after you cast it, it checks is rejuv is on target > if not cast it? if not just nourish?