Originally Posted by
buschaffe
Hi,
first of all thank you so much for the script and effort put into this.
I was wondering if it is possible to modify the script to use ingame macros, preferebly with the wow-windows in the background.
This way there wouldn't be any picture issues and you could use the computer for something else too ;-)
I'm using these macros bound to 1,2,3,4 on the second action bar, this makes them clickable with the pet-ui up:
- Queue up: /script C_PetBattles.StartPVPMatchmaking();
- Accept: /script C_PetBattles.AcceptQueuedPVPMatch(); //battle starts after the 2nd one clicked the macro
- Select Pet: /script C_PetBattles.ChangePet(1); // can be 1, 2 or 3 ofc
- Forfeit: /run C_PetBattles.ForfeitGame();
Step 1 and most important step: TRY TO HAVE AROUND THE SAME PET BATTLE ACHIEVEMENT POINTS!!! It's not your RAF Linking, your SOR linking, or your MOP status. It's achievement points in pet battles. Hands down, tested and proved with 4 different accounts.
OK before you run these scripts in the above post... for those not using a Autoit or AHK script... (Manually/By G510/G15) =
Run this:
Code:
/run PetBattleFrame.BottomFrame.ForfeitButton:SetScript("OnClick", function() C_PetBattles.ForfeitGame() end)
Still running into a problem selecting the level 25 pet, and forfeiting the match... Any ideas on how to fix this? Any help is good!
So doing some more research on this, I found this addon that auto forfeits pet battles, if one isn't found with a upgrade able pet.
I know there is a function on this addon that looks familiar but I don't know how to turn it into a script for macro usage:
Code:
function f:HookForfeitButton()
if PetBattleFrame and PetBattleFrame.BottomFrame and PetBattleFrame.BottomFrame.ForfeitButton then
PetBattleFrame.BottomFrame.ForfeitButton:SetScript("OnClick", function(...)
if IsShiftKeyDown() then
C_PetBattles.ForfeitGame()
else
PetBattleForfeitButton_OnClick(...)
end
end)
self.HookForfeitButton = nil
end
end
Anyone?