This is an amazing program. And I adore the warrior work done by you guys. Is there any chance we could get a revised version for SMF (Single Minded Fury), since slam has a higher priority over raging blow?
Guys,do anyone have any suggestions on code to check what pet active I got atm?
This is to ensure that I got Felguard when my DS comes out of CD and Felhunter for other situations. smth that will check pet name will be ok,but code that will check the type of summoned demon( eg succubus,felhunter,felguard etc) would be really nice one.
Valma, have you tried UnitCreatureFamily("pet")?
It seems that this will return the creature family that the queried unit belongs to; I assume that you could write something along the lines of:
I may be wrong, but this seems like the most likely candidate for what you want to doCode:if UnitCreatureFamily("pet") == Felguard then
http://wowprogramming.com/docs/api/UnitCreatureFamily
thx,worked fine for me,but still profile will have localization issues due to returned value is on localized language.Any ideas how to do it obsolete, smth like ID or so on?
Please add a profile for firemage with Fire Blast and Pyroblast procc.
My profile does not automatically casts of both.
Thx and sorry for my bad english
Valma, I can't really think of anything, unfortunately. It seems to always return the localized name, so users will have to alter the ability for their locale. I took a quick look and couldn't really find anything that would work universally.
There is a way to query your pet for its armor value, attack speed or any of its other stats. If these stats are unique enough, and stay relatively constant, I suppose you could use this method to sort out which pet is which, but I don't know if it will work and it sounds like a tough task
For example:
Maybe something like that would work, and you could write a similar ability to summon your Felhunter if Demon Soul is on cooldown and BaseArmor returns a Felguard's base armor value? I really don't know warlocks very well, though. Sorry if I'm getting your hopes up, haha.Code:Name: Summon Felguard SpellID: 30146 local BaseArmor, _, _, _, _ = UnitArmor("pet") local DSstart, DSduration, enabled1 = GetspellCooldown(77801) if UnitExists("pet") == 1 and BaseArmor == (Felhunter Base Armor) and ((DSstart + DSduration) - GetTime()) < 10 then return true end
EDIT: Or do stats only apply to Hunter pets? I should play more pet classes (゚д゚)
Last edited by Kaolla; 11-02-2011 at 04:08 AM.
PTR update might be a couple days.. I lost power and internet from the snow storm on Saturday, sorry.
he can check pet ability to check if he has the right pet
let see u want to make sure that u are using the felguard atm and u want to use Souldburn if it not on cd and u have soul shard
u can use this code
Code:local SB = UnitPower("player", 7) local SBcd =GetSpellCooldown(74434) local felg = IsSpellKnown(89751, true) if ( UnitExists("pet") == nil and SB ~=0 and SBcd == 0) or (felg ~= true and SB ~=0 and SBcd == 0) then CastSpellByID(74434) return true else if UnitExists("pet") == nil or felg ~= true then return true end end
Ye,done this already by myself,but forgot to post about itAnyway thx for response
![]()
i was going to suggest a method parsing the GUID which is a 64bit integer so it cannot be converted to a number within itself , but you can disect it using bit.band and string.sub to find the pet identifier.
if your "pet ability check "is running accross errors let me know, im sure i could code something up for you