I'm not sure if there's something wrong at all. I tried a clean PQR install, it wouldn't use UnitBuffID/UnitDebuffID, I injected those through the data file, they worked like a charm.
I'm not sure if there's something wrong at all. I tried a clean PQR install, it wouldn't use UnitBuffID/UnitDebuffID, I injected those through the data file, they worked like a charm.
For UnitBuffID & UnitDebuffID, maybe it has a problem to do with the new way blizzard is doing buffs in Mists. on their PTR notes:
Code:Buffs have been consolidated in the UI.
Team Nova: Any chance that you might start to cover Hunter's more in depth aswell? Realy impressed by your priest profile, mentallyGood job!
![]()
I thought they were going to remove CastSpellByID() now that you can do CastSpellByName(spellID) in the latest Mists patch? Coulda swore I seen someone post about it in this thread, but after looking around, I can't find anything about it in the latest Mists API Changes :confused:
Last edited by firepong; 07-22-2012 at 02:29 PM.
Yeah, just found it. It wasn't CastSpellByName() their changing, but CastSpell(). It used to just work with the id slot of the spell, but now it's classified with spellID
API CastSpell - Wowpedia - Your wiki guide to the World of Warcraft
http://www.wowpedia.org/Global_functions/Mists
Last edited by firepong; 07-22-2012 at 02:33 PM.
I've been going nuts on the beta and PTR for the last hour and a half, but whatever I do. I get stuck by some bogus error message.
Just to take Shadow Word: Pain as an example now. They've changed it in MOP to not be refreshed by Mind Flay, which opens up a window for me to refresh it to "extend" certain "good" buffs.
I got these functions:Then storing spells with a few actions in a table:Code:PQ_CheckTempBuffs = nil function PQ_CheckTempBuffs(t) for i=1,#t do if t[i].check == true and UnitBuffID("player",t[i].spellID) then t[i].hasBuff = true t[i].endTime = select(7,UnitBuffID("player",t[i].spellID)) else t[i].hasBuff = false t[i].endTime = nil end end end PQ_GetTimeLeft = nil function PQ_GetTimeLeft(t, spellID) for i=1,#t do if t[i].spellID == spellID and t[i].hasBuff == true then return t[i].endTime - GetTime() end end endThis is all stored in our Data file. Works fine on Release, but I'm not so sure on the Beta.Code:PQ_TemporaryBuffs = { {spellID = PQ_Lightweave, check = true, hasBuff = false, endTime = nil}, {spellID = PQ_PowerTorrent, check = true, hasBuff = false, endTime = nil}, {spellID = PQ_VolcanicPotion, check = true, hasBuff = false, endTime = nil}, {spellID = PQ_SynapseSprings, check = true, hasBuff = false, endTime = nil} }
I invoke this in my ability:
Then I start running into this error message:Code:local PQ_SWP = PQ_SWP local TargetValidation = TargetValidation if TargetValidation("target",PQ_SWP) then local SWP,_,_,_,_,_,SWPtimer = UnitDebuffID("target",PQ_SWP,"PLAYER") local PQ_TempBuffs = PQ_CheckTempBuffs local PQ_TempTable = PQ_TemporaryBuffs local PQ_TimeLeft = PQ_GetTimeLeft PQ_TempBuffs(PQ_TempTable) if SWP then for i=1,#PQ_TempTable do if PQ_TempTable[i].hasBuff then if PQ_TimeLeft(PQ_TempTable, PQ_TempTable[i].spellID) < 5 and SWPtimer - GetTime() < 10 then return true end end end if SWPtimer - GetTime() < 1.5 then return true end else return true end end
I just cannot for the life of me, figure out why it's not accepting the coding. It's accepting my automatic self-buff "ability" without any problems regarding UnitBuffID. If I remove the dynamic refreshing of DoTs the spell is cast without a problem!Code:Message: [string "if PQR_Addon_Loaded == nil then..."]:979: Usage: UnitBuff("unit", [index] or ["name", "rank"][, "filter"]) Time: 07/22/12 21:44:38 Count: 10 Stack: [C]: in function `UnitBuff' [string "if PQR_Addon_Loaded == nil then..."]:979: in function `UnitBuffID' [string "-------------------------------------------..."]:130: in function `PQ_TempBuffs' [string "local PQ_SWP = PQ_SWP ..."]:17: in function `?' [string "if PQR_Addon_Loaded == nil then..."]:737: in function `PQR_NextAbility' [string "if PQR_Addon_Loaded == nil then..."]:533: in function `PQR_ExecuteRotation' [string "if PQR_Addon_Loaded == nil then..."]:289: in function <[string "if PQR_Addon_Loaded == nil then..."]:214> Locals: (*temporary) = "player" (*temporary) = nil
Hope anyone can shed some light on the matter.
@AgoNoelpqr: I don't have a AoE profile for Shadow Priests. There's only Mind Sear and I strongly suggest everyone to handle it themselves, however, with the new MOP re-written profiles, I'm adding a AoE rotation inside the default one, using triggers.
@AgoMpzor: As far as I know, crystal_tech has joined Team Nova and has been working on Hunter profiles. If anyone's gonna be making one I think it'd be him.
~ Elizabeth
Mentally: Do you know if he's working on the hunter class atm?
Crystal: Any progress on the hunter profiles?If you're working on them that is
As far as I know, Crystal is not working on any Beta Profiles right now, unless something has changed. Right now, for example, taking into account the problems Mentally is having, there is a lot of bugs in a lot of the API. I would wiat till those bugs get fixed before going into extensive re-writes for beta.
I will say this though, as soon as I'm able to download the whole beta client again, I'll start updating my Druid profiles. Right now, my internet has got limited Data on it, so I can't download a 17gig file at the moment.
Since Seals are no longer buffs in beta and are stances how exactly can we check that state? Anyone know?
didnt mean for the beta. But the Hunter profiles are subpar to mentally's priest profile. And I just thought that now that they are on the same "team" that they talk together and learn from eachother so maybe the hunter profiles would improve. the best on out there atm is kickmydogs
Hey everyone,
Sorry for not answering but I am currently on a no-WiFi holiday
I will be creating a MoP retri pally pvp profile. A Pvp profile more complex then any other. I already got some abilities/logic coded and believe me - its gona be awesome. Different priorities depending on the class of your enemy, health %, manual mode, intelligent profile pausing, kill mode (same as I implemented to Cokx ret profile, my edit is on page 102). Sadly I dont have access to e MoP beta (nor to my PC, atm) so its gona take a lot of time until its ready. I hope you are as excited for it as I am!
Till next time,
Dominium
PS
To the profile writers, this is what I have come up with for a ability that automatically targets a Spirit Link Totem if it exists. Howvery, I am not sure if it will targetlasttarget if its a friendly totem. I am not sure where (if at all) should I use a else.
If UnitExists("Spirit Link Totem") == false then
Return false
End
If UnitExists("Spirit Link Totem") then
RunScript("/target Spirit Link Totem")
If UnitIsEnemy("target", "player") then
Return true
Else*
If UnitIsEnemy("target", "player") == false then
RunScript("/targetlasttarget")
Return true
End
Could i possibly simply check UnitIsEnemy("Spirit Link Totem", "player") ? I would research this myself, but as I said I have limited access to the internet
PPS
If someone could copy paste Cokx hand of freedom (retribtuion) and hammer of wrath code and send me a pm id be VERY grateful oh and also cleanse. I just wanna see a couple of lines of codes from those abilitiescant so this myself, on an ipad
Last edited by Dominium; 07-22-2012 at 05:34 PM.