^

RETAIL

CLASSIC

Using Rematch + Pet Battle Scripts

This guide explains how to use Pet Battle Scripts together with Rematch

If you want to learn how to write TD Scripts, you can click this link with instructions for it: Writing Pet Battle Scripts.

1. Required AddOns



Rematch (see in the last part of this guide how to make the addon compatible with MoP Classic)
Pet Battle Scripts

Also you’ll need a source from which you can get strings and scripts prompt and easy.
Fortunately, this site is just the right one for that task.
Every strategy automatically offers a Rematch String and those that are marked with the respective Tag also provide a Script.
Hint: when a strategy doesn’t include a script on its own, there is a good chance somebody in the comments is sharing one.


2. Importing Rematch Strings






1. Open the Pet Journal ingame. On the right edge, you’ll see one or multiple tabs (which you can edit). Now right click on the tab in that you want to import a certain team.
2. Now left click on “Import Teams”.
3. A window will open in which you can insert a Rematch String.


3. Obtaining a Rematch String from Xu-Fu






1. Go to the desired strategy on https://classic.wow-petguide.com/.
2. Now left click on the button “Rematch String”.
3. Act as described above and then import the already saved string in the open window.
4. Click “Save”.


4. Importing Pet Battle Scripts






1. Right click on the saved team ingame.
2. Left click on “Write script”.
3. A window opens to either write or insert a script.


5. Obtaining scripts from Xu-Fu






1. Scripts are imported by default along with the Rematch String, but if you only want to import a script, go to the desired strategy on https://classic.wow-petguide.com/.
2. Now left click on the button “Script”.
3. Act as described above and then import the already saved script in the open window.
4. Click “Save”.


That’s it!




When you face the corresponding encounter, Rematch will now automatically (depending on your settings) load the right team and will also enable you to press just one button (by default A) to play every turn.


6. Make Rematch compatible with Classic



Rematch’s author, gello, holds the exclusive distribution rights to Rematch and hasn’t released a specific version of Rematch for Classic. However, most of Rematch’s features work fairly well, albeit with a lot of Lua errors.

But it’s possible to improve all of this and achieve error-free operation (there will still be a transparency issue around the edges of the add-on window, but it’s not a real issue). On Curseforge, Glaives provided a list of the steps to perform (and Adal added an additional fix):

1. Download the latest version of Rematch (version 5.2.11 at the time of writing) and install it in your MoP Classic Addons folder.

2. Using a text editor, make the following changes:

Rematch/chrome/toolbar.lua:250

replace

local startTime,duration = C_Item.GetItemCooldown(id)

with

local startTime,duration = C_Container.GetItemCooldown(string.gsub(id, "item:", ""))


Rematch/info/targetInfo.lua:326

replace

local name = C_TaskQuest.GetQuestInfoByQuestID(questID) or C_QuestLog.GetTitleForQuestID(questID)

with

local name = C_TaskQuest.GetQuestInfoByQuestID(questID) or C_QuestLog.GetQuestInfo(questID)


Rematch/main/constants.lua:407-409

replace

SOUND_HEADER_CLICK = SOUNDKIT.UI_PROFESSION_SPEC_PATH_SELECT,
SOUND_DIALOG_OPEN = SOUNDKIT.UI_CLASS_TALENT_OPEN_WINDOW,
SOUND_DIALOG_CLOSE = SOUNDKIT.UI_CLASS_TALENT_CLOSE_WINDOW,

with

SOUND_HEADER_CLICK = SOUNDKIT.UI_PROFESSIONS_WINDOW_OPEN,
SOUND_DIALOG_OPEN = SOUNDKIT.TALENT_SCREEN_OPEN,
SOUND_DIALOG_CLOSE = SOUNDKIT.TALENT_SCREEN_CLOSE,


Rematch/templates/templates.xml

replace all Metal with DiamondMetal


Rematch/chrome/titlebar.xml:46

replace

UI-Frame-PortraitMetal-CornerTopLeft

with

UI-Frame-Portrait


Rematch/info/targetData.lua

delete lines 29 to 347

delete the first 5 lines after -- Pandaria (424)

delete the first line after -- Northrend (113)

delete the first 5 lines after -- Kalimdor (12)

delete the first line after -- Eastern Kingdom (13)

delete the second line after -- Darkmoon Island (407)

after -- Outland (101), the 5 lines starting with {101, should be replaced to start with {1467,




New Comment:





































Name:

Link: