KMD I recommend using IsPlayerSpell(spellid) for checking if you know a morphed spell
Sent from my Thunderbolt using Tapatalk 2
https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-bot-maps-profiles/422388-kickmydog-bm-mm-sv-hunter-profiles.html#post2793017
For anyone wondering, I have figured out everything with the buffs and seal switching, many thanks to everyone that helped!
Code if anyone needs for reference or if they want to use it.
Buffs
PHP Code:
-- Apply seal if none up
local hasSeal = false
if GetShapeshiftForm("player") == 1 or GetShapeshiftForm("player") == 2
or GetShapeshiftForm("player") == 3 or GetShapeshiftForm("player") == 4
then hasSeal = true end
if hasSeal == false then CastShapeshiftForm(1) end
--Ret
if (select(2, GetSpecializationInfo(GetSpecialization()))) == "Retribution" then
if not UnitBuffID("player", 19740) then
CastSpellByName(GetSpellInfo(19740), "player")
end
else
if UnitBuffID("player", 19740) and not UnitBuffID("player", 20217) and not UnitBuffID("player", 1126) then
CastSpellByName(GetSpellInfo(20217), "player")
end
end
--Prot
if (select(2, GetSpecializationInfo(GetSpecialization()))) == "Protection" then
if not UnitBuffID("player", 20217) and not UnitBuffID("player", 1126) then
CastSpellByName(GetSpellInfo(20217), "player")
end
else
if UnitBuffID("player", 20217) or UnitBuffID("player", 1126) and not UnitBuffID("player", 19740) then
CastSpellByName(GetSpellInfo(19740), "player")
end
end
Aoe Mode
PHP Code:
if modtime == nil then
modtime = 0
end
--right ctrl switches aoe mode
if IsRightControlKeyDown() and GetTime() - modtime > 1 then
modtime = GetTime()
if AoeSwap then
AoeSwap = nil
CastShapeshiftForm(1)
PQR_WriteToChat("Aoe Mode: \124cFFE61515Disabled")
else
AoeSwap = 1
CastShapeshiftForm(2)
PQR_WriteToChat("Aoe Mode: \124cFF15E615Enabled")
end
end
My Svn - https://subversion.assembla.com/svn/averykeys-svn/
The 'Recast Delay' dont work after 'Cancel Channel'
For exemple, when i cast soothing mist a second cast of soothing mist cancel the previous one in loop, how i can add a delay to that ?
Anyone know what I can do to get my interrupts working good on my warrior for pvp? Here's what I would like it to do:
Pummel if in melee range and pummel off cooldown.
If can't pummel and in range for disrupting shout (interact range 3) and ds is off cooldown then do a disrupting shout.
If can't do either and is in range for a heroic throw then heroic throw.
now I've written this all in LUA to interrupt as fast as possible any spell or channelling that I can. It works good however the problem is that since pummel and the other cooldowns are not on the same gcd, it will sometimes blow a pummel and a disrupting at the same time.
Now to fix this what I've done is basically make it try to pummel immediately, and if the cast goes on for more than .5 seconds (meaning I can't pummel) , then use ds or heroic throw. Its really not a huge issue I just like to interrupt immediately.
I think that there must be a better way but I am just not thinking of it. Can someone who is experienced with the coding please help? Thanks.
Last edited by Bgreen12; 09-12-2012 at 12:09 PM.
Not sure how to check if you need to interrupt, Ids might be wrong, just did a quick google sea
PHP Code:
local InRange = GetSpellInfo(123287) --0 == true / 1 == false / 0 melee range / 1 out of melee range
if PQR_SpellAvailable(123287) and IsSpellInRange(InRange, "target") == 0 then
CastSpellByName(GetSpellInfo(123287), "target")
end
elseif PQR_SpellAvailable(102060) and IsSpellInRange(InRange, "target") == 1 then
CastSpellByName(GetSpellInfo(102060), "target")
elseif PQR_SpellAvailable(57755) and IsSpellInRange(InRange, "target") == 1 then
CastSpellByName(GetSpellInfo(57755), "target")
end
PQR Reference 2.1.5+
*** Global Variables ***
These global variables can be used/changed to suit your needs. Note that most of these will change back to their default values when a new rotation is started to ensure that a profile is running the way it's creator intended.
PQR_InterruptStarted
-- true if a new interrupt profile has started. You can set this to false and use it as a flag to run code that should only be run once per rotation enable.
*** Interrupt Functions ***
PQR_IsOnInterruptList(spellName)
-- Returns true/false based on if a spell is on the interrupt list on the Settings form or has been added via PQR_AddInterrupt(spellName).
PQR_AddInterrupt(spellName)
-- Adds an interrupt to the interrupt list. The interrupt list is repopulated on interrupt rotation change. You should use PQR_InterruptStarted flag to repopulate the list with any profile-added spells. See PQR_AddToSpellDelayList for an example on how to use this flag. (Note: Change RotationStarted to InterruptStarted)
PQR_AddInterrupt(spellName)
-- Adds an interrupt to the interrupt list. The interrupt list is repopulated on interrupt rotation change. You should use PQR_InterruptStarted flag to repopulate the list with any profile-added spells. See PQR_AddToSpellDelayList for an example on how to use this flag. (Note: Change RotationStarted to InterruptStarted)
Last edited by averykey; 09-12-2012 at 12:30 PM.
My Svn - https://subversion.assembla.com/svn/averykeys-svn/
Posted this in Sheep's thread but I was curious to hear a response here as well:
Is there a way one of the profile writers could possibly incorporate Knight's Simcraft Arms profile into an Arms PvP profile that includes Hamstring as needed, Shockwave usage off CD, Piercing Howl as needed, Disarm if applicable, and the Heroic Leap code Ninjaderp linked on the previous page? It'd be something very close to Bu-Ba's old Warrior profile, and that one sadly doesn't work in the current patch.
In essence, it'd basically take the best DPS code from Knight's and add the PvP utility/stun/rooting pressure. I'd do it myself, but I don't know how to combine those. Is that something someone could create for the level 85-90 grind? Other writers are waiting till 90 to make them and I'd really like to try it in current BGs if possible.
Last edited by lawlmoto; 09-12-2012 at 03:03 PM.
You can call me a kid, I'm not. I was just pressing his buttons because he was obviously riled up.
Okay, so, in his script, if you stand still, start the script, and start firing shots it will flip in and out of Iron hawk. It usually happens on any spell with the F_SwitchToHawk function at the top of it. It just looks a little suspect to always be doing it. I tried to fix it but could never pin point exactly where it is. Oh well, KMD is awesome and it might just be something on my side. I'm more than happy to help with anything you guys need.
I'm starting to think that the data file that was included in the _5 pack wasn't needed? I didn't even think about taking it out. It might just be double calling that function. I'll check it out.
Avery, love your pally script, works great!
Last edited by expunge; 09-12-2012 at 03:34 PM.