ProtWarning is a lightweight, stable AddOn for the World of Warcraft 1.12.1 client (Interface: 11200) that displays a prominent, temporary warning message when the player's health drops below a critical threshold while in combat.
- Stable Polling: Uses the reliable
OnUpdatepolling method to overcome event instability in the 1.12.1 client. - Clear Alert: Displays a large, red "LOW HEALTH WARNING!" message.
- Timed Display: Message disappears automatically after 3.0 seconds.
- Performance Friendly: Only actively checks health while the player is in combat.
- Download the latest release zip file.
- Unzip the file.
- Place the ProtWarning folder into your WoW AddOns directory:
[WoW Directory]/Interface/AddOns/ - Reload your UI (
/reload) or restart the game.
The core threshold is currently set to 45% in ProtWarning.lua.
To manually test the warning message without losing health, use the following macro in-game:
/run LowHealthWarning_Toggle()
---
### 3. The AddOn Files
Ensure the three files we finalized are placed inside the nested **`ProtWarning`** folder:
* **`ProtWarning/ProtWarning.toc`** (Interface: 11200)
* **`ProtWarning/ProtWarning.xml`**
* **`ProtWarning/ProtWarning.lua`**
---
### Next Steps to Create the Repo
1. **Create the Project Folder:** Make a new folder named `ProtWarning_Addon`.
2. **Add Files:** Place the `.gitignore`, `README.md`, and the `ProtWarning` folder (containing the `.toc`, `.xml`, and `.lua` files) inside.
3. **Initialize Git:** Open your terminal in the `ProtWarning_Addon` folder and run:
```bash
git init
git add .
git commit -m "Initial commit of ProtWarning AddOn structure and stable code (1.12.1)"
```
4. **Connect to GitHub/GitLab:** Follow your provider's instructions to create a remote repository and push your changes.