Where is the download link for PQR, I cannot see it
Where is the download link for PQR, I cannot see it
its on the very first page in the first post under the green font download pqr
http://www.mediafire.com/?ogv9dp13dzto1s5 is the link
Last edited by freaki; 01-28-2013 at 11:00 AM. Reason: adding link
Monk Mistweaver Update!
Now usable at level 45 and uses healing percentages.
http://www.ownedcore.com/forums/worl...istweaver.html ([PQR] Monk Mistweaver)
Do or Die
[PQR] Monk Mistweaver
@derpin8: I see it often used where a developer has multiple profiles and they abstract common functions into various classes, functions, etc. Imagine a situation where the nova profiles had everything baked into a single file per profile, and the # of edits that would need to be performed to update them all would be significant. It makes the code cleaner as well, it allows you to separate the logic from the functionality. It really helps when there are commonalities across profiles, but if you had a single profile, it would work fine.
Looking for some help here...
I am wanting to make a code to add enemy targets to a custom table. (This is done using Nova's Custom table)
Now i want it to cast Moonfire and Sunfire on the custom table targets if they get in range. (I can not get this to work.)
PHP Code:
for i=1, #Nova_CustomT do
if UnitExists(Nova_CustomT[i]) then
local Moonfire, _, _, _, _, _, CTMoonfireEndTime = UnitDebuffID(Nova_CustomT[i], 8921, "player")
if not CTMoonfireEndTime then
CTMoonfireEndTime = 0
else
CTMoonfireEndTime = CTMoonfireEndTime - GetTime()
end
local Sunfire, _, _, _, _, _, CTSunfireEndTime = UnitDebuffID(Nova_CustomT[i], 93402, "player")
if not CTSunfireEndTime then
CTSunfireEndTime = 0
else
CTSunfireEndTime = CTSunfireEndTime - GetTime()
end
if CTMoonfireEndTime < 2
and PQR_SpellAvailable(2912)
and PQR_UnitFacing("player",Nova_CustomT[i])
and IsSpellInRange(GetSpellInfo(8921), Nova_CustomT[i]) == 1
and not HaveBuff(Nova_CustomT[i],iDMG())
and not PQR_IsOutOfSight(Nova_CustomT[i]) then
CastSpellByName(GetSpellInfo(8921),Nova_CustomT[i])
return true
end
if CTSunfireEndTime < 2
and PQR_SpellAvailable(5176)
and PQR_UnitFacing("player",Nova_CustomT[i])
and not HaveBuff(Nova_CustomT[i],iDMG())
and IsSpellInRange(GetSpellInfo(8921), Nova_CustomT[i]) == 1
and not PQR_IsOutOfSight(Nova_CustomT[i]) then
CastSpellByName(GetSpellInfo(93402),Nova_CustomT[i])
return true
end
end
end
@derpin8
I haven't tested it as i'm at work, but I believe it would be something like this
@5:27pm - tested and it should work like thisPHP Code:
local STF, events = CreateFrame("Frame"), {}
STF:RegisterEvent("CHAT_MSG_WHISPER")
STF:SetScript("OnEvent", onEvent)
STF:Show()
function onEvent(self, event, msg, sender)
if event == "CHAT_MSG_WHISPER" and msg:find("shattering throw") then
CastSpellByName(GetSpellInfo(64382),"target")
return true
end
end
Last edited by evlow; 01-28-2013 at 05:30 PM.
@aghost917: Well, first off you're not really adding people to the table right now. You're going to be using this in Arenas or Battlegrounds I assume? You should look into the SheuronEngine and see how Bu_ba is adding in people into the Custom Table. You should also probably look into the following functions:
GetBattlefieldScore() and GetBattlefieldStatData()
I'm trying to modify some code to have that I have attempted to use 2 different code sniplets from, Neither are doing what I want but either should work. For a Windwalker I'm trying to make sure that Invoke Xuen, the White Tiger is only called when Tigereye Brew buff is active. Here are the two variations of code I have used neither which are working.
Spell ID 123904PHP Code:
local tb = PQR_UnitBuffID("player", 116740)
if tb then
return true
end
Now for this I'm curious for the recast time if you leave that blank or set it to 0 will it not try to recast? Now I use this same thing for Lifeblood chaining with another CD and it works perfectly fine but for this is does not. Any reason why it would still just cast the ability without the buff being present?
Also tried using a more advance code setup like.
I forgot to note, If I remove this spell from the rotation completely the pet is never summoned.PHP Code:
local SPELL = 123904
local TargetValidationRub = TargetValidationRub
if TargetValidationRub("target",SPELL)
and PQR_SpellAvailable(SPELL)
and UnitBuffID("player", 116740) then
CastSpellByName(GetSpellInfo(SPELL))
return true
end
Last edited by js1974; 01-28-2013 at 05:47 PM.
The buff is there, the spell id only converts to the spell name. The name for the stack count while gaining them as is the one while the damage increase is active are both the same.
Code:for i=1,40 do local b={UnitBuff("player",i)} if b[11]==116740 then return true end end
Do or Die
[PQR] Monk Mistweaver
@ezzaculate: Yeah.. I don't see it either. Though it is entirely possible to query all opposite faction members in a battleground and check who is close to you. I believe it would be a lot harder to automate that kind of function in the open world, though.
hey guys, im after a profile that will make my breakfast when i wake up, basically im just sick of having to make my own, and all the other breakfast making profiles here suck.
Looking for some help to combine these two sets of code into one check. The basic idea is I want the ability to activate as long as the buff is active unless it's toggled off I'm using Rubims code for Invoke Xuen and making changes for how I want to interact.
So that is his code which works fine but I want to take it a step further and have it only activate if Tigereye Brew is active. What i'm currently using for Invoke Xuen isPHP Code:
local SPELL = 123904
local TargetValidationRub = TargetValidationRub
local SpecialUnit = SpecialUnit
local RSK,_,_,_,_,_,RSKtimer = UnitDebuffID("target",130320,"player")
if PlayerCombat
and IsSpellKnown(SPELL)
and PQR_SpellAvailable(SPELL)
and IsSpellInRange(GetSpellInfo(100780), "target") == 1
then
if vcd == "boss"
and SpecialUnit()
then
CastSpellByName(GetSpellInfo(SPELL),nil)
return true
elseif vcd == "on"
then
CastSpellByName(GetSpellInfo(SPELL),nil)
return true
end
end
The goal is being able to toggle it on, off or boss like Rubim intended but also have it only go off if Tigereye Brew the buff is active. If anyone wants to take a stab at it I'd love to hear how to fix it.PHP Code:
for i=1,40 do local b={UnitBuff("player",i)}if b[11]==116740
then return true
end
end
Last edited by js1974; 01-28-2013 at 10:53 PM.