So was wondering about using pqr för a multiboxing adventure when mop releases. Basically i want a pocket healer that follows me around. And maybe assist me somewhat in DPS.
As Worn stated earlier the follow part is easy and even the assist part is. The tricky part is the interaction part or rather thats easy also. The hard part is to get everything to work at same time. Ie healing / assist/follow/interact etc..
Here is some code to get things started but as i said the hard part is to make it complex..
For reference the master is the main character and slave is the one you use as a slave !
Here is my code how i set up the interrupt:
Code:
--easy explained-----------------------------
-----------------------------------------------------
AssistUnit("focus")
------------------------------------------------------
--if Slave is more then 9 yards away from focus(master) then follow focus(master), you can even set your master name instead of focus-----
-------------------------------------------------------------------------------------------------------------------------
if not ( CheckInteractDistance("focus", 3) ) then FollowUnit("focus") return true end
--------------------------------------------------------------------------------------------------------------------------
-- this will make slave interact master target if its inside 9 yard from target. Ie it wont run after targets thats far away--
--this works on corpses etc also
------------------------------------------------------------------------------------------------------------------------------------------
if (CheckInteractDistance("target", 3)) and (UnitIsFriend("player", "target") or UnitIsDead("target"))
then InteractUnit("target") return true end
------------------------------------------------------------------------------------------------------------------------------------------
Assist and interact using a little AHK script:
Link to AHK: http://www.autohotkey.com/
Here comes a AHK script that makes you leftmousebutton target the same target as you do and make if you rightclick the same target it will interact that target.
You need to make 2 macros:
First macro is /assist Focus and use the keybinding: NumPadAdd
I also made two keys (1,2) that will send to the slave using the AHK script just to show you how you can add keys that you want to broadcast to multiple wows
Code:
SetKeyDelay, 0, 0.
WinGet, wowid, List, World of Warcraft
#IfWinActive, World of Warcraft
; -------------------------------
;Determine Main and Clone Windows
; -------------------------------
WinActivate, ahk_id %wowid1%
MsgBox, 4,, Is this your WOW Main window? (press Yes or No)
IfMsgBox Yes
{
idMain = %wowid1%
idClone = %wowid2%
} else {
idMain = %wowid2%
idClone = %wowid1%
}
~LButton::
ControlSend,, {NumPadAdd}, ahk_id %idClone%
Sleep, 1100
ControlSend,, {NumPadAdd}, ahk_id %idClone%
Return
;this part doest work well so i skipped it and put it in interuppt part of PQR
;~RButton::
;ControlSend,, {NumPadSub}, ahk_id %idClone%
;Sleep, 1100
;ControlSend,, {NumPadCub}, ahk_id %idClone%
;Return
; -------------------------------
; Numeric Keys + Numpad Keys
; -------------------------------
~1::
KeyWait 1
ControlSend,, {1}, ahk_id %idClone%
Return
~2::
KeyWait 2
ControlSend,, {2}, ahk_id %idClone%
Return
This just a placeholder until later. And i have taken from several people around the web so Credit goes to all of them.