Hi snowhawk
You can use UnitReaction
Hi snowhawk
You can use UnitReaction
It does, if you use it with the globall spellid as i was trying to point out ages ago, but got hammered for and got shown link to useless pages on how to use WoW's Lua and all sorts.
I even gave a function for getting the global spellid of a spell to use in IsSpellInRange()
Nope, this is pure distance. It takes the Target's (x,y) value and you, the player, (x,y) value and calculates the distance to the target. If your standing in front of the target, it should roughly return anywhere from .5-3. Anything lower than .5, your practically standing on top of the target.
Looking for a simple keyboard ability for left shift hand of protection. This is as close as I could get but having problem with it working.
Code:if IsLeftShiftKeyDown() and not GetCurrentKeyBoardFocus() and (UnitAffectingCombat("player") or UnitAffectingCombat("mouseover")) and PQR_SpellAvailable(1022) then PQR_CustomTarget = "mouseover" return true
here is sheruons PQR reference to PQR APIs: http://dl.dropbox.com/u/23527046/Mis..._Reference.lua
Please if someone helped you donate rep to them.
I was looking back at this post by accident, I don't know how I missed it. I did however, find it very useful since it works with Kill Command, I can now setup a BM rotation that will ignore Kill Command, BW, Lynx Rush if the target is not in range for a Kill Command. Other Pet abilities like Bite and Growl do not work. They report back Nil.
As such I will be removing the ignore kill command by holding LEFT-CTRL from my rotation, this will enable me to use it for something else.
Last edited by kickmydog; 09-22-2012 at 08:49 PM.
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
can anyone make a simple code to add to a profile that fires mortal coil at 50% hp for the free heal thx in adv
update v9
KMD_All_Hunter_Rotations_v9.zip
- added range check code for BM (BW, KC, Lynx Rush)
- Healthstone will actually work now(thanks Wopak for localization on this)
- replaced Right-CTRL to intimidate for BM
Last edited by kickmydog; 09-23-2012 at 09:27 AM.
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
Can someone please show me how to successfully use the PQR_RotationStarted variable to run code only once?
local PlayerHP = 100 * UnitHealth("player") / UnitHealthMax("player")
if PlayerHP < 50 and PQR_SpellAvailable(6789) then
return true
end
put Ability name Mortal Coil or whatever you want
put 6789 in spell ID
target on target
and cancel channel to true if you want to make it a priority over other spells, if not leave false
Supporter of Frozen.
Pulled this code from one of the Nova profiles. When the rotation begins, a global variable PQR_RotationStarted is set to true. When the rotation ends, PQR_RotationStarted is set to false. If you want code to only run once, then set the PQR_RotationStarted flag to false and execute some code that is only processed once (in this example, it loads a data file).
This was posted before but read through this for other variables and functions available.PHP Code:
if PQR_RotationStarted == true then
PQR_RotationStarted = false
if PQR_LoadLua ~= nil then
-- Load Data File
if PQR_LoadLua("PQR_Nova_Data.lua") == false then
PQR_WriteToChat("You are missing PQR_Nova_Data.lua. Rotation has been stopped.", "Error")
PQR_StopRotation()
return true
end
end
-- Clear out any global variable settings from previous runs...
AoESwitch = nil
CDSwitch = nil
end
http://dl.dropbox.com/u/23527046/Mis..._Reference.lua
Thanks, got it working now.
Last edited by snowhawk; 09-23-2012 at 02:15 AM.
I'm a holy paladin and I'm assigned to tank healing, is there anyway I can edit my profile to ignore healing raid members besides tank?
Could someone help me please with coding buff duration, checking stacks and cooldown remains
1. if (BuffID<=2)
2. if (BuffID.stack=5)
3. (!Spell.cooldown.remains=0)
thanks in advance.