Skip to content

Rjaac/ProtWarning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ ProtWarning (Low Health Alarm for WoW 1.12.1 / Turtle WoW)

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.

✨ Features

  • Stable Polling: Uses the reliable OnUpdate polling 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.

💾 Installation

  1. Download the latest release zip file.
  2. Unzip the file.
  3. Place the ProtWarning folder into your WoW AddOns directory: [WoW Directory]/Interface/AddOns/
  4. Reload your UI (/reload) or restart the game.

⚙️ Configuration (Code)

The core threshold is currently set to 45% in ProtWarning.lua.

🧪 Testing

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages