the simplest way to do that would be to have RunMacroText("/startattack") at the top of your profile.
another way to do it without the need for RunMacroText would be the following:
the above code is taken from API AttackTarget - WoWWiki - Your guide to the World of Warcraft and requiers you to have your auto atack spell somewhere on your bars. the benefit of then over the RunMacroText is that it is not client language specific but rather requires you to have a spell on your bar.PHP Code:
if not PQ_AttackAction then
for i = 1,72 do
if IsAttackAction(i) then
PQ_AttackAction = i
end
end
end
if PQ_AttackAction then
if not IsCurrentAction(PQ_AttackAction) then
UseAction(PQ_AttackAction)
end
else
AttackTarget("target")
end
hope this helps out some, btw the wow wiki code i have not tested just took it out of their macro script at the bottom of posted page.
edit: looks like Gabbz beat me to the RunMacroText =D
Alpha Profiles: - All profiles with PQInterface support!
Alpha Interrupt: https://goo.gl/OLhGi - Ignore List, Random Percentage, Time Delays, & much More!
Alpha Utilities: https://goo.gl/rt7WA - Farming, Prospecting, Disenchanting, Milling, & Questing
Alpha Moonkin: https://goo.gl/gjxw0 - Optimized DPS Rotation for PvE, Mashup of 3 Profiles
Avery's Ret: https://goo.gl/GhurM - My take on Avery's outstanding Ret profile with PQI
looks like you forgot a "end" also it does not take into account raid vs party, this should work:
PHP Code:
local InParty = GetNumGroupMembers()
if InParty > 0 then
local groupType = IsInRaid() and "raid" or "party"
for i=1, InParty do
local member = groupType..i
if UnitGroupRolesAssigned(member) == "TANK"
and UnitThreatSituation(member,"target") ~= 3 then
CastSpellByName(GetSpellInfo(34477),member)
end
end
end
Alpha Profiles: - All profiles with PQInterface support!
Alpha Interrupt: https://goo.gl/OLhGi - Ignore List, Random Percentage, Time Delays, & much More!
Alpha Utilities: https://goo.gl/rt7WA - Farming, Prospecting, Disenchanting, Milling, & Questing
Alpha Moonkin: https://goo.gl/gjxw0 - Optimized DPS Rotation for PvE, Mashup of 3 Profiles
Avery's Ret: https://goo.gl/GhurM - My take on Avery's outstanding Ret profile with PQI
So IsNotBehindTarget seems work for me again.
But I decided to use CastSpellByID and it gives stuck... I cant use ANY ability!
@crystal_tech
CastSpellByName(GetSpellInfo(id)) IS NOT GOOD SOLUTION!!! There are good amount of spells with same name in localized client (Russian one for example).
Please give me good solution to solve morphing.
i don't follow, with CastSpellByName(GetSpellInfo(id)) it takes the ID of the spell and converts it to localized spellname.
eg:
CastSpellByName(GetSpellInfo(3044)) is the same as
CastSpellByName("Arcane Shot")
but if your using a non English client it would be in your clients language.
it is using the id to cast just that its converting the id you input in to it to a spellname before hand.
Please if someone helped you donate rep to them.
it takes the ID of the spell and converts it to localized spellnameThere are good amount of spells with same name
does anyone have offsets for ptr ? or is there any thread about it i cant find?
bonjour il y as t il des risque que wow détecte pqrotation ?svp
Updated
KMD_All_Hunter_Rotations_v25.zip
This includes a BM Cleave rotation for when you just want to keep beastcleave up but do single target damage on the main target.
Also I've included an auto misdirection when solo it goes on pet when in a group or raid it goes to the tank. Enjoy (paintpauller thanks for your assistance)
Last edited by kickmydog; 07-05-2013 at 03:31 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