Quick question.
Is there a way to make an ability which looks at the combat log and if my character had taken a melee hit, it will cast an ability? Sadly I can't just check if my HP dropped because that drop could be due to a spell or it might have been absorbed.
Context: Level 80 paladin twinks use SotR after being hit by a melee attack (which is usually absorbred). Timing SotR right after a melee attack is quite difficult so I was wondering whether PQR could help.
Does this work and if so how do i add it to PQR?
Is it possible to kick amber explosion cast on ursok with pqr?
i'm stucked with that (it's like hour of twilight, but on player)
local kick = GetSpellInfo(122398 )
local channelSpell, _, _, _, _, endTim = UnitCastingInfo("player")
if channelSpell ~= nil and channelSpell == kick then
local finishTime = endTim/1000 - GetTime()
if finishTime < 2 then
return true
end
end Spell id 122395
Target Player
Last edited by leetspeaker; 11-03-2012 at 08:47 PM.
Yes you can with the RegisterEvent + FunctionsAPI.
Code:"UNIT_COMBAT" Category: Unit Info,Combat Fired when an npc or player participates in combat and takes damage arg1 the UnitID of the entity arg2 Action,Damage,etc (e.g. HEAL, DODGE, BLOCK, WOUND, MISS, PARRY, RESIST, ...) arg3 Critical/Glancing indicator (e.g. CRITICAL, CRUSHING, GLANCING) arg4 The numeric damage arg5 Damage type in numeric value (1 - physical; 2 - holy; 4 - fire; 8 - nature; 16 - frost; 32 - shadow; 64 - arcane)
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
Thank you very much for this.
I hate to seem lazy but I've been trying to come up with something using this but I am struggling. Most of my lua experience comes from modifying other people's code and seeing what happens when I make changes. Are there some examples of this being used in other people's profiles that I can have a look at?
The best I have is:
However this does not seem to workCode:if not meleeHit then meleeHit = CreateFrame("Frame") meleeHit:RegisterEvent("UNIT_COMBAT") meleeHit:SetScript("OnEvent",function(...) if select(7,...)==1 then return true end end) end
Last edited by popeofdope; 01-22-2013 at 06:19 AM.
Hi guys,
Could someone please recommend a solid Feral DPS rotation?
Anyone know any good ones?
Many Thanks
sending out a search and rescue party for mentally!
thanks for the heads up firepong +rep
My Frost/Unholy DK WoL ranking edits(4.3) and crystals Hunter Beta profiles-
https://imdasandmandeathknight.googl...com/svn/trunk/