just released my Resto shaman pvp profile.
http://www.ownedcore.com/forums/worl...c-edition.html ([PQR] Resto Shaman PvP Public Edition)
just released my Resto shaman pvp profile.
http://www.ownedcore.com/forums/worl...c-edition.html ([PQR] Resto Shaman PvP Public Edition)
WoW LUA Script Developer
Need Something Custom? WarmaneScripts.com
Skype - grapejuice111
what i did in my SV profile:
a bit much as i use a trinket at the same time as rapid fire and i've set names to the spellidsPHP Code:
local PlayerCombat = UnitAffectingCombat("player") --check for combat
local PQ_Rapid = PQ_Rapid
local nMod_ForceCD, AutoCooldowns = nMod_ForceCD, AutoCooldowns
if Nova_Mod() == nMod_ForceCD
or ( AutoCooldowns == 1 and SpecialUnit() )
then
if PQR_SpellAvailable(PQ_Rapid)
and not UnitBuffID("player", PQ_Rapid)
and PQ_HasHero() == false
and PlayerCombat
then
if GetInventoryItemCooldown("player", 13) == 0 then
UseInventoryItem(13)
end
CastSpellByName(GetSpellInfo(PQ_Rapid))
return true
end
end
heres what would work for you:
PHP Code:
--replace 'PQ_Rapid' with SpellID
if PQR_SpellAvailable(PQ_Rapid) --see if its off CD
and not UnitBuffID("player", PQ_Rapid) --checks to make sure we don't have the buff
and UnitAffectingCombat("player") -- would be good if we where in combat
then
CastSpellByName(GetSpellInfo(PQ_Rapid))
return true
end
Please if someone helped you donate rep to them.
Would you also happen to know a little Steady Shot code that will use it when below say 60 focus (or whatever the optimal number is to avoid being focus starved)?
IsSpellInRange doesn't seem to work with every spell so for 10 yards I would use CheckInteractDistance like this:
3 is the duel range which is 9.9 yards so should work fine for that.Code:if PQR_SpellAvailable(48721) and PQ_ValidUnit and CheckInteractDistance(PQR_CustomTarget, 3) and (UnitDebuffID("target",55095,"PLAYER") or UnitDebuffID("target",55078,"PLAYER")) then BR1start, BR1duration, BR1ready = GetRuneCooldown(1) BR2start, BR2duration, BR2ready = GetRuneCooldown(2) if BR1ready or BR2ready and not UnitDebuffID("target",50435,"PLAYER") then return true end end
Former PQR Developer
@xepler thanks for review
I already met weird runtime restrictions.
So I started at SimCraft if statement parsement.
Again met blizzard runtime restrictions.
WTF!
I should restart WoW every library bug, runtime restriction too.
After spending more than 15 hours on various tweaks on failroads/bgeeens profile I wish there was something to debug errors (or that I found them faster)
However I will keep trying :P
The first piece of code here is "cast steady shot if under 60 focus".
Make sure to specify SpellID 56641 in the ability info. Typically this would be the last thing in the rotation.PHP Code:
if UnitPower("player") < 60 then
return true end
The second piece is "force-cast Steady if I don't have Steady Focus or if it's going to fall off within 3 seconds".
Also make sure to specify SpellID 56641.PHP Code:
if not UnitBuffID("player",53224)
or (select(7,UnitBuffID("player",53224)) - GetTime() < 3)
then return true end
This you'd want to have very HIGH in the rotation, so that you're always keeping up SF.
Big thanks to KMD/crystal_tech/soapbox - I learned everything I know about hunter profiles from theirs. <3
Last edited by ozmodiar; 06-17-2013 at 10:51 AM.
Hello , anyone know the offsets for " Arena-Tournament | Where the Challenge Begins "
<CurrentWoWVersion>15595</CurrentWoWVersion>
Please help me , greetings
Last edited by Yoghourt; 06-17-2013 at 02:33 PM.
There is another function, PQR_DebugP("text") that prints to the chat as long as you have debug mode on the settings tab set to "Profile." If you are looking to do something like just testing what the return of a function call is, I suggest sending this command in chat:
/dump PQR_UnitInfo("player")
That will display the returns of a function call.
Last edited by Xelper; 06-17-2013 at 03:12 PM.
You may be setting a variable/function name that is being used by an addon or protected Blizzard code. If you do this you taint the execution path of the PQR code and it will not run. Check variable names and make sure they are unique.
EDIT: Also, don't try to set any variable values from the chat.
Last edited by Xelper; 06-17-2013 at 03:12 PM.
@Xelper here is example:
library code:
DummyArray = {}
pqr code:
DummyArray["mangle"] = 1099
result:
DummyArray is empty...
@Xelper
I discovered bug, most likely caused by dot.NET
representation: loadstring("UnitHealth(\"player\")")
reason: \" string symbol is not supported by dot.NET or XML
This is LUA standard. Seems they don't work at PQR.