A
Sent from my GT-I9100 using Tapatalk 2
A
Sent from my GT-I9100 using Tapatalk 2
What happens if i use PQR_SpellAvailable on a spell that i dont have?
https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-bot-maps-profiles/385569-pqr-death-knight-monk-tank-dps-profiles.html#post2582063
As long as it is a valid spell ID (in WoW) it will return false.
Code:function PQR_SpellAvailable(spellID) local gcdSpell = PQR_GCDSpellID() local gcdStartTime, gcdDuration = GetSpellCooldown(gcdSpell) local spellStartTime, spellDuration = GetSpellCooldown(spellID) local spellUsable = IsUsableSpell(spellID) local spellAvailable = false if spellUsable then if spellStartTime ~= nil and gcdStartTime ~= nil then local spellTimeLeft = spellStartTime + spellDuration - GetTime() local gcdTimeLeft = gcdStartTime + gcdDuration - GetTime() if gcdTimeLeft <= 0 then --Our GCD spell is not on CD. if spellTimeLeft <= PQR_SpellAvailableTime then --spell will be off CD within 50ms. spellAvailable = true end else --Out GCD spell is on CD. if spellTimeLeft <= gcdTimeLeft + PQR_SpellAvailableTime then --spell time left is less than GCD time left + 50ms. spellAvailable = true end end end end return spellAvailable end
@Rubim: You nut. It's already in PQR itself.
@Ralphiuss: It's hard to make. I'll see what I can do if it's not already inside the Data file. However, you could add to your a simple line like:
Almost at the very top of your profile, before you execute your healing code.Code:if UnitDebuffID(target,spellID) then return false end
https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-bot-maps-profiles/385569-pqr-death-knight-monk-tank-dps-profiles.html#post2582063
@Rubim: Ah, alrighty! I'm just tired, haha.
@mentally gettin a error with ur new profiles , its asking for the data file however its in the correct place and is deffinatly there also it is the updated one . tried update through pqr and svn doesnt make any difference
@To everyone who's been getting errors with my new profile! It's because of me being tired and writing a function wrong. I'll have a SVN update in a few minutes which should fix all errors AND make the Demonology Warlock profile (in the beginning) usable on any level as it now properly determines Normal and Heroic Dungeon bosses and of course Raid bosses. This should greatly improve performance on all the cooldowns and not make you waste them on trash, for example.
Edit: The changes are up.
Update your SVN and/or Update the Demonology Warlock profile through the PQR Rotation Manager!
This will fix the issues people were having with the Data file not loading AND further improve the Demonology Profile's DPS as you can now run with the AoE/Standard profile -everywhere- without being afraid of it blowing your cooldowns. It'll check your target first.
As always, if you want to help me out and keep me motivated to create bigger and better profiles, you can make a donation or +Rep me! - It will not go unnoticed.![]()
Last edited by Kinky; 11-13-2012 at 07:25 PM.
Wooo! result time, I only got screen caps of two fights, both of which I guess you can't really get an accurate DPS result but it seems to be pretty awesome. =]
Grand Empress Shek'zeer(Under me is a feral druid, who is an item level above me):
Amber-shaper Un'sok (After looking up both of the mages, they both fairly out gear me):
![]()
@snowhawk: Yeah. After updating you have to physically restart PQR and do a /reload within World of Warcraft to "reload" the Data file. (The lockups was probably because a new function was introduced which the Demonology Warlock profile is using!)
@Kinkeh: Awesome! Fire Mages molest everyone on the meters though if they're anywhere near half-decent. :x Or using PQR!