PQRInterface probably is the culprit.
PQRInterface probably is the culprit.
Last edited by kickmydog; 11-27-2012 at 06:22 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
I dont do this often.... but this is a new thing for me....
can anyone PM me with any assistance you can give me as to why this code is giving me a usage error?
PHP Code:
if CombatLog == nil then
Nova_CombatLog = CreateFrame('Frame');
function CombatLog_OnEvent(self, event, ...)
local type, sourceGUID, sourceNAME, _, destGUID = select(2, ...)
if (event=="COMBAT_LOG_EVENT_UNFILTERED") then
if (type=="SPELL_CAST_SUCCESS" or type=="SPELL_CAST_START") then
if (sourceGUID == tonumber((UnitGUID("player")):sub(-12, -9), 16)) then
PlayerSpell = select(9, ...)
CastTarget = destGUID
end
end
end
end
Nova_CombatLog:SetScript('OnEvent', CombatLog_OnEvent(self, event, ...));
Nova_CombatLog:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
CombatLog = true
end
Error:
*EDIT*Message: [string "if CombatLog == nil then ..."]:39: Usage: <unnamed>:SetScript("type", function)
Time: 11/27/12 15:19:06
Count: 71
Stack: [C]: in function `SetScript'
[string "if CombatLog == nil then ..."]:39: in function `?'
[string "if PQR_Addon_Loaded == nil then..."]:760: 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) = <unnamed> {
0 = <userdata>
}
(*temporary) = "OnEvent"
fixed it..... after about 5 mins of looking for more examples i caught one that seemed different than mine.... and I saw my error..... you don't send the function any information, you just call it
here's what a working code looks like for those that want to learn from my mistakes
PHP Code:
if CombatLog == nil then
Nova_CombatLog = CreateFrame('Frame');
Nova_CombatLog:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
function CombatLog_OnEvent(self, event, ...)
local type, _, sourceGUID, sourceNAME, _, _, destGUID, destNAME = select(2, ...)
if (event=="COMBAT_LOG_EVENT_UNFILTERED") then
if (type=="SPELL_CAST_SUCCESS" or type=="SPELL_CAST_START") then
print(sourceNAME)
print(destNAME)
if sourceNAME == UnitName("player") then
print("You are casting a spell")
-- PlayerSpell = select(9, ...)
-- CastTarget = destGUID
end
end
end
end
Nova_CombatLog:SetScript("OnEvent", CombatLog_OnEvent)
CombatLog = true
end
is it the error that shows in wow?
if so this is what i got:
PHP Code:
Error occured in: Global
Count: 1
Message: [string "if PQR_Addon_Loaded == nil then..."] line 1029:
Usage: UnitDebuff("unit", [index] or ["name", "rank"][, "filter"])
Debug:
[C]: ?
[C]: UnitDebuff()
[string "if PQR_Addon_Loaded == nil then..."]:1029: UnitDebuffID()
[string "--local LB = UnitDebuffID("target",44457,"P..."]:5: ?()
[string "if PQR_Addon_Loaded == nil then..."]:760: PQR_NextAbility()
[string "if PQR_Addon_Loaded == nil then..."]:533: PQR_ExecuteRotation()
[string "if PQR_Addon_Loaded == nil then..."]:289:
[string "if PQR_Addon_Loaded == nil then..."]:214
Locals:
(*temporary) = "target"
(*temporary) = nil
(*temporary) = nil
(*temporary) = "player"
Kickmydog,
I like your hunter profiles a lot but i was wondering if there is a way I could add fervor to the SV rotation. I am a newbie to PQR and don't know how to add abilites.
for those hunters going a little nuts at the moment.
Here is my alpha version, I'm still testing but I'm pretty sure the SV works 100%. I can't say anything about the other two specs just yet.
KMD_All_Hunter_Rotations_v17alpha.zip
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
i can't get alter time to work right.
It also stops the rotation.PHP Code:
if HaveBuff("player",48108)
and not HaveBuff("player",110909)
then
CastSpellByID(48108)
end
I've updated BM for 5.1 on the svn still tweakin but got 76k burst in ilvl 463 gear on the raid dummy and 47k normal damage
Please if someone helped you donate rep to them.
LF someone to update a Frost mage profile for 5.1. Message me to discuss further. Any help would be appreciated.
Has anyone found a fix for this yet? Spread across multiple profiles (Sheeps, Failmoon's etc.) Saw the discussion suddenly die on this, but I wasn't sure if it's because people are researching or if I missed something. Very confused.
Message: [string "if PQR_Addon_Loaded == nil then..."]:1008: Usage: UnitDebuff("unit", [index] or ["name", "rank"][, "filter"])
Time: 11/27/12 22:18:20
Count: 47
Stack: [C]: ?
[C]: in function `UnitDebuff'
[string "if PQR_Addon_Loaded == nil then..."]:1008: in function `UnitDebuffID'
[string "local Root = { ..."]:247: 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>
Last edited by Taran32; 11-27-2012 at 10:37 PM.
while i was trying to run my hunter profiles today and kickmydogs new file located just above for the BM PVP i got those errors and the bot wouldnt attack so i went into the Ability editor and found one called "-- Functions" and copied it and named it "backup" and then deleted the functions one and then it seemed to work