@Sheuron
Thanks, that fixed my problem too.![]()
@Sheuron
Thanks, that fixed my problem too.![]()
Last edited by FrostDKsFTW; 04-30-2012 at 05:44 PM.
Done some cleanup on the healing engine and have new functionality
How to use this?Code:function CalculateHP(t) incomingheals = UnitGetIncomingHeals(t) and UnitGetIncomingHeals(t) or 0 return 100 * ( UnitHealth(t) + incomingheals ) / UnitHealthMax(t) end function CanHeal(t) if UnitInRange(t) and UnitCanCooperate("player",t) and not UnitIsEnemy("player",t) and not UnitIsCharmed(t) and not UnitIsDeadOrGhost(t) and not PQR_IsOutOfSight(t) then return true end end function HealEngine() members, group = { { Unit = "player", HP = CalculateHP("player") } }, { low = 0, tanks = { } } group.type = GetNumRaidMembers() > 0 and "raid" or "party" group.number = group.type == "raid" and GetNumRaidMembers() or GetNumPartyMembers() for i=1,group.number do if CanHeal(group.type..i) then local unit, hp = group.type..i, CalculateHP(group.type..i) table.insert( members,{ Unit = unit, HP = hp } ) if hp < 90 then group.low = group.low + 1 end if UnitGroupRolesAssigned(unit) == "TANK" then table.insert(group.tanks,unit) end end end if group.type == "raid" and #members > 1 then table.remove(members,1) end table.sort(members, function(x,y) return x.HP < y.HP end) local customtarget = CanHeal("target") and "target" or CanHeal("mouseover") and GetMouseFocus() ~= WorldFrame and "mouseover" if customtarget then table.sort(members, function(x) return UnitIsUnit(customtarget,x.Unit) end) end end HealEngine()
Paste on a new ability at top of your rotation,
What i get?
Now every time rotation loops you get 2 updated tables with group information.
"members" table contain all players in range ordered by lowest hp to top
example: members[1].Unit is the player on your group with lowest hp and members[1].HP is his current HP percentage
"group" table contain some useful information
group.low return number of players in range below 90% hp
If group.low > 5 then (use the healing aoe spell) end
group.type return if you are in a raid or party group
group.number return the size of your group
group.tanks is a table of players which role is set to tank
example:
#group.tanks return the number of tanks in range on your group
for i=1,#group.tanks do (if group.tanks[i] dont have renew buff do it) end
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
Just tried it on dummy, doesnt attack at all, only pop pillar of frostHey guys, I decided that my profiles are mature enough to be released.Keep in mind that's the first release and it might have some bugs, altough I have been using them for a while and I'm pretty much satisfied.
The profiles contains rotations for:
- Deathknight MasterFrost PvE
- Paladin Retribution PvE
Notes:
- Future releases will include AoE versions aswell.
- The ret pally rotation is optimized for toons with 2pT13 bonus and it's not based on EJ's since I find EJ's retri rotation not to be optimal.
Can't seem to find how to edit/create my signature so here's the link:
holobyte-pqr-profiles - Profiles for PQR Rotation Helper - Google Project Hosting
Credits go out to every PQR profile maker, they inspired me to create my profiles and their codes helped me figuring out how to create them.
If you like my profiles please give rep as it will encourage me to continue working on them.
You guys have convinced me to take up profile creation. This will be a fun side project! Any profiles that are in dire need? Plan on making some boss specific changes to the existing warlock profile, but other then that, not sure what to start with.
Some Sub Rogue Rotations ( pvp ) and Elemental and Resto Shaman ( pvp )
I'm unsure of exactly what can be done dev side with PQR but i for damn sure know 1 thing if we can get awesome pvp rotations it would be epic!
it's one thing killing a boss and following a rotation, it's another keeping your cool and focus in pvp
Is it possible to make a complete pvp profile, based on basic scenarios ? for instance if you get total CC lockout cast pvp trink or when you get warrior spinning the crap out of you dismantle ?
Is this possible ?
Will have to do some research on this, since things like bladestorm don't get you a debuff, however neither does ultraxion hour of twilight, so it may be possible, or I could check if anyone in the arena frames has the bladestorm buff, and you are in melee range, I'll do some research on it and get started, I'll start with sub rogue. I'm sorta new to LUA, but not coding, and it seems simple enough to catch on to, once I get familiar with all the different things I should be able to really get into making a good profile.
PQR 2.1.3 BETA - PROFILE DEVELOPERS ONLY
http://dl.dropbox.com/u/39925787/PQR...R213_BETAg.zip
If using a previous 213 beta you must restart your WoW
Removed PQR_BehindTarget, PQR_FacingTarget and replaced them with something better.
PQR_UnitInfo(unitID or GUID) - Returns the following: X,Y,Z,R,Type (3 = Unit, 4 = Player), and TargetGUID of the specified unit/GUID.
PQR_UnitFacing(unitCheck, unitTarget, degrees) - Is the check unit facing the target unit? Returns true or false. If degrees is set to true this function will return the number of degrees the unit is compared to the facing of the other unit. You can also set degrees to a number for a smaller or larger 'cone' in front of the unitCheck unit. Default is 180.
PQR_UnitDistance(unit1, unit2) - Returns the distance in yards from unit1 center to the center of the unit2's hitbox. A players hitbox is about 3 yards, so a 40 yard spell can actually be cast when this returns 43... I am looking into taking this into consideration somehow. Accepts both GUID and unitID
Examples:
PQR_UnitFacing("player", "target") - Is the player facing the target?
PQR_UnitFacing("target", "player") - Is the player behind the target?
PQR_UnitFacing("player", "boss1") - Is the player facing the boss1 unit?
It also accepts GUIDs, so:
PQR_UnitFacing("target", UnitGUID("player")) - Same as above "behind" example.
Yes, this works for all unit IDs and known GUIDs and is 'instant' unlike previous iterations.
Last edited by Xelper; 04-30-2012 at 07:15 PM.
All that is very easy to do. Just make a table of what you'd like to trinket, and check for trinket cd. For blade storm just check for the buff.
It would be Much appreciated for sub rouge willing to pay for decent Arena profile :P i'm currently using PQR in raids just cuz i'm lazy and don't wanne spam buttons just wanne get stuffz lolz, but i was thinking about this during an arena match today, most of the time i have a healer or caster on focus and it he would cast i would use my focus blind or cb transfer shadow step kidney shot macro, things like that would be awesome if the bot can pickup that the focus target is casting then blind him for instance or if blind is on cd shadow step kidney him, just this alone will have a huge advantage over other players because you won't need to focus on your focused target as well as what you are doing
I wish i knew how to make profiles in such complex ways i would take the time to do so :P
Looking forward to what you can come up with![]()
The spec is the same as the one EJ's recomends for masterfrost. My personal spec is a variant of that one, tho. Since I only do Heroic DS on my DK and theres nothing to interrupt in there but the "eyes" on zon'ozz encounter, I skip Endless Winter and put 1 more point on both Runic Power Mastery and Icy Reach.
Stat weights are the same as of EJ's: "Strength > Expertise to cap > Hit to soft cap > Mastery > Haste > Crit.
My DK is ranked in the top100 of most DS heroic parses on WoL, always using this rotation and spec.
I think i know why... after PoF I cast Blood Fury, an Orc racial. Your toon is probably not an Orc so the rotation hangs. Gotta check if the spell is known before cast it.
Will fix and update it on google code.
Same goes to blood tap... some builds do not have it (altough it's not recomended not having it).
Last edited by Holobyte; 04-30-2012 at 07:57 PM.
Reposting on this page so it isn't missed.
PQR 2.1.3 BETA - PROFILE DEVELOPERS ONLY
http://dl.dropbox.com/u/39925787/PQR...R213_BETAg.zip
If using a previous 213 beta you must restart your WoW
Removed PQR_BehindTarget, PQR_FacingTarget and replaced them with something better.
PQR_UnitInfo(unitID or GUID) - Returns the following: X,Y,Z,R,Type (3 = Unit, 4 = Player), and TargetGUID of the specified unit/GUID.
PQR_UnitFacing(unitCheck, unitTarget, degrees) - Is the check unit facing the target unit? Returns true or false. If degrees is set to true this function will return the number of degrees the unit is compared to the facing of the other unit. You can also set degrees to a number for a smaller or larger 'cone' in front of the unitCheck unit. Default is 180.
PQR_UnitDistance(unit1, unit2) - Returns the distance in yards from unit1 center to the center of the unit2's hitbox. A players hitbox is about 3 yards, so a 40 yard spell can actually be cast when this returns 43... I am looking into taking this into consideration somehow. Accepts both GUID and unitID
Examples:
PQR_UnitFacing("player", "target") - Is the player facing the target?
PQR_UnitFacing("target", "player") - Is the player behind the target?
PQR_UnitFacing("player", "boss1") - Is the player facing the boss1 unit?
It also accepts GUIDs, so:
PQR_UnitFacing("target", UnitGUID("player")) - Same as above "behind" example.
Yes, this works for all unit IDs and known GUIDs and is 'instant' unlike previous iterations.
If there are no bugs ill post this on the updater.