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
Please, please, please, use code intend, it makes it that more comfortable to read
Its hard to check, but where do you get IsLineOfSight from?
What is benBenderTalent?
-- EDIT --
YOu could check, if your membertable is still valid
as your first if statementCode:if UnitExists(benMembers[i].Unit then)
Last edited by TheLuBu; 10-25-2013 at 08:36 AM.
Okay - now i got it how to post code =)
Sure i can Check if my Unit exists, but thats already done in the update of my member table. I think it has something to do with >> benMembers[i].Unit.."target" << but i dont know. In Germany we say "thats the end of my latin" i have no clue ;P
Code:if ( isSpellReady(123040) or isSpellReady(34433) ) and not BenButtonPushed then -- BenButtonPushed just a global to check if a button was pushed local maxPower = UnitPowerMax("player") if maxPower == 0 then -- yeah sensless! Just a test if its really never nil maxPower = 300000 end local PlayerMana3 = 100 * ( UnitPower("player") / UnitPowerMax("player") ) if PlayerMana3 == nil then PlayerMana3 = 100 end -- use mindbender on cooldown on any enemy that has no cc on it that breaks for i=1, #benMembers do if UnitExists(benMembers[i].Unit.."target") == 1 then local customTarget = benMembers[i].Unit.."target" if customTarget ~= nil and not UnitIsUnit("player", benMembers[i].Unit) then if UnitCanAttack("player",customTarget) == 1 and not UnitAffectedByAura(customTarget, "debuff_cc_dmg_break", 0.5, true) -- Debuff Chek (That works flawless) and IsLineOfSight(customTarget, 2) -- simple LOS Check in an eventbased function. Other abilities works without errors so i think thats fine here. and PQR_UnitDistance("player",customTarget) < 40 and PlayerMana3 < 83 then if benBenderTalent then --if i have the Talent Mindbender if PQR_SpellAvailable(123040) then --PQR_DebugP("Mind Bender -> "..UnitName(customTarget)) CastSpellByName(GetSpellInfo(123040),customTarget) return true end else -- shadowfiend if PQR_SpellAvailable(34433) then PQR_DebugP("Shadow Fiend -> "..UnitName(customTarget)) CastSpellByName(GetSpellInfo(34433),customTarget) return true end end end end end end end
Last edited by MrHeroe; 10-25-2013 at 09:27 AM.
I was using something similar to this for shadowfiend on party CDs. Just never got finished testing it to make sure it worked.
Code:PartyCDs={51713, 121471, 1719, 106952, 126679, 126690, 126683, 49016, 10060, 106731, 3045, 113860, 113861, 113858, 114049, 31884, 12472, 107574, 51271} if ShadowFiendOnOffenciveCDs then for i=1, #members do for j=1,#PartyCDs do if UnitName(members[i].Unit) ~= UnitName("player") and UnitBuffID(members[i].Unit,PartyCDs[j]) ~= nil then SFtarget = members[i].Unit + "target" if UnitExists(SFtarget) and UnitCanAttack("player",SFtarget) ~= nil and not LineOfSight(SFtarget) then --Mindbender if PQR_SpellAvailable(123040) then _castSpell(123040, SFtarget) end --ShadowFeind if PQR_SpellAvailable(34433) then _castSpell(34433, SFtarget) end end end end end end
WoW LUA Script Developer
Need Something Custom? WarmaneScripts.com
Skype - grapejuice111
Can some1 tell me how turn on PQR on PTR?
I know theres a new PTR build that got put up and a new patch today. It's up to 5.4.1 (17520)
just for the peps still having problems with pqr and the beta launcher if you click wow in the beta launcher do this it should fix your problems of wow going to 64bit with the auto login.
click on the wow icon and go here:
click Game Settings and
then check the box here:
click done and wow should be 32 bit mode via launcher without needing to mod files, use cmdline switches, etc etc.
hope this helps peps.
Please if someone helped you donate rep to them.
I'm having a brain fart moment, i've gone completely blank and so I thought I'd ask.
Any ideas on the code to cast on pettarget. I've looked at the PQR dropdown box but it seems to be missing pettarget as an option. I don't see selecting a target as an option for castbyspellid or name.
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
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