You should really post the block of code youre working with.
You should really post the block of code youre working with.
WoW LUA Script Developer
Need Something Custom? WarmaneScripts.com
Skype - grapejuice111
Code:if PQR_SpellAvailable(115921) and IsSpellKnown(115921) then for i=1, #members do if not UnitIsDeadOrGhost(members[i].Unit) and IsSpellInRange(GetSpellInfo(115921), members[i].Unit) == 1 then local BuffList = { 117666, -- monk 1126, -- druid 20217, -- paladin 90363 -- hunter's pet } local b = 0 for j=1, #BuffList do if UnitBuffID(members[i].Unit, BuffList[j]) ~= nil then b = 1 end end if b == 0 then PQR_CustomTarget = members[i].Unit return true end end end end
need some help... ^^
Cast spell 17 if i don't have defbuff ''Weakened Soul''
will spend you some rep for help :3
damn... tryed myself to add some spells ..
all i got was some laggs... ^^
what was missing?Flashheal:
if Nova_UnitInfo("player") <= 40 then
return true
end
Renew:
if Nova_UnitInfo("player") <= 80 then
return true
end
Vampiric Embrace:
if PQR_SpellAvailable(15286)
and Nova_UnitInfo("player") <= 20 then
return true
end
(spell IDs was added in the box in the bot on the left side...
I lied. its wokring.
Last edited by blaythe; 03-29-2013 at 08:19 PM.
Blaythes Destruction Warlock
https://goo.gl/vUUhW
Can anyone tell me why when I set up the intterupt bot and no matter what I set the delay at 20ms all the way to 1000ms It still just interrupts as fast as it can . Am i doing something wrong here >
use this
http://www.ownedcore.com/forums/showthread.php?t=405389
[PQR] Interrupt with random delay
drop it into your interrupt folder in profiles then select as the interrupt profile the setting you are playing with is how often pqr checks to see if a scripted ability is of CD I believe
Sent from my GT-I9300 using Tapatalk 2
Last edited by spearfish; 03-29-2013 at 10:25 PM.
I don't know why PQR_Nova_Data.lua wasn't loaded and how to make it, but I found members table initialization, now everything works well, i believe ^^
next step:
i need to do Shadowed Soul debuff check and use ExtraActionButton1 on nearest valid raid member who have no Soul Fragment and with 6 or lesser stacks of Shadowed Soul, but i dont know how to use ExtraActionButton1 on target
should it work?
Code:if UnitDebuffID("player", 137641) then -- Soul Fragment check local _, _, _, SScount = UnitDebuffID("player", 137650) -- Shadowed Soul stacks on player if SScount > 6 then local mSSs = 6 while UnitDebuffID("player", 137641) do -- while debuff members = { { Unit = "player" } } group = "raid" for i = 1, GetNumGroupMembers() do table.insert( members,{ Unit = group..i } ) end for i=1, #members do -- looking for valid raid member local _, _, _, membersSScount = UnitDebuffID(members[i].Unit, 137650) local SoulFragment = UnitDebuffID(members[i].Unit, 137641) local ShadowedSoul = UnitDebuffID(members[i].Unit, 137650) if not SoulFragment and not ShadowedSoul or not SoulFragment and ShadowedSoul and membersSScount <= mSSs then TargetUnit(members[i].Unit) RunMacroText("/click ExtraActionButton1") -- spent debuff TargetLastTarget() end end mSSs = mSSs + 1 -- when all raid members got 6 more stacks end end end
Last edited by WWF; 03-30-2013 at 10:38 AM.
can someone tell me why this works
Code:if (ImmolateAoE == nil) then CastSpellByName(tostring(GetSpellInfo(108683))) CastSpellByName(tostring(GetSpellInfo(108686))) return true end
but this code with a soulshard check
throws this errorCode:if (ImmolateAoE == nil) and PQ_Soulshard > 1 then CastSpellByName(tostring(GetSpellInfo(108683))) CastSpellByName(tostring(GetSpellInfo(108686))) return true end
Code:Date: 2013-03-30 18:31:21 ID: 1 Error occured in: Global Count: 1 Message: [string "local CurrentCast = UnitCastingInfo("player..."] line 67: attempt to perform arithmetic on local 'ImmolateAoEtimer' (a nil value) Debug: [string "local CurrentCast = UnitCastingInfo("player..."]:67: ?() [string "if PQR_Addon_Loaded == nil then..."]:765: PQR_NextAbility() [string "if PQR_Addon_Loaded == nil then..."]:534: PQR_ExecuteRotation() [string "if PQR_Addon_Loaded == nil then..."]:287: [string "if PQR_Addon_Loaded == nil then..."]:214 Locals: CurrentCast = nil Immolate = nil _ = nil _ = nil _ = nil _ = nil _ = nil Immolatetimer = nil ImmolateAoE = nil _ = nil _ = nil _ = nil _ = nil _ = nil ImmolateAoEtimer = nil (*temporary) = 11038.573 (*temporary) = 11038.573 (*temporary) = true (*temporary) = nil (*temporary) = "attempt to perform arithmetic on local 'ImmolateAoEtimer' (a nil value)"
here is the full code
the only thing im changing is the soulshard check and it works flawlessly without itCode:local CurrentCast = UnitCastingInfo("player") local Immolate,_,_,_,_,_,Immolatetimer = UnitDebuffID("target",348,"PLAYER") local ImmolateAoE,_,_,_,_,_,ImmolateAoEtimer = UnitDebuffID("target",134972,"PLAYER") if not IsPlayerSpell(137587) then if PQR_IsMoving(0.3) then return false end end if CurrentCast == "Immolate" then return false end if not PQ_Zaslon then if Immolate == nil then CastSpellByName(tostring(GetSpellInfo(348))) return true end if Immolatetimer - GetTime() < 5 then CastSpellByName(tostring(GetSpellInfo(348))) return true end end if PQ_Zaslon then if (ImmolateAoE == nil) then if PQ_SoulShard < 1 then CastSpellByName(tostring(GetSpellInfo(108683))) CastSpellByName(tostring(GetSpellInfo(108686))) return true end end if (ImmolateAoEtimer - GetTime()) < 5 then CastSpellByName(tostring(GetSpellInfo(108683))) CastSpellByName(tostring(GetSpellInfo(108686))) return true end end
So Im starting to understand this interrupt part of the bot but im trying to see now how do I add another intterupt spell to the list and make it so it does not use both at the same time is this possible I see
if xelperInterruptInit == nil then
--TestComment
xelperInterruptInit = true
function PQR_InterruptSpell()
local _, playerClass = UnitClass("player")
if playerClass == "DEATHKNIGHT" then
return 47528
elseif playerClass == "DRUID" then
local catForm = UnitBuffID("player", 76
if catForm ~= nil then
return 80965
else
return 80964
end
elseif playerClass == "HUNTER" then
return 34490
elseif playerClass == "MAGE" then
return 2139
elseif playerClass == "PALADIN" then
return 96231
elseif playerClass == "PRIEST" then
return 15487
elseif playerClass == "ROGUE" then
return 1766
elseif playerClass == "SHAMAN" then
return 57994
elseif playerClass == "WARLOCK" then
return 19647
elseif playerClass == "WARRIOR" then
return 6552
else
return 0
end
end
end
and Im playing warrior atm and I see pummel set up is there a way to add Disrupting shout to the list so it will rotate both intterupts ? spell ID = 102060 anyone that can help with this ?
Please if someone helped you donate rep to them.