Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Making a HealthBuff LUA with Conditional Poping.

Featured Replies

Ok I don't know if this will work the way I have coded it so I'm here asking if this will do what it says it will do.

 

local buffed=0
if UnitExists("player") and not UnitIsFriend("player", "target") and not (UnitIsDead("player")) then
    health = GetHealth("player") if (health > 99,75,65,50,40,32,15,1) then
--[[                Evasion,Cloak of Shadows,Smoke Bomb,Lifeblood,
        local idBuffs={31224,76577,121279}
        local idPreparation=14185
        local spellname=GetSpellInfo(idPreparation)
        local start, duration, enabled = GetSpellCooldown(spellname)
        if (enabled==1) then
            for i=1, 4 do
                if (IsPlayerSpell(idHealthBuffs)) then
                    local start, duration, enabled = GetSpellCooldown(idHealthBuffs)
                    if (duration==0) then
                        local spellname=GetSpellInfo(idHealthBuffs)
                        CastSpellByName(spellname)
                        print("buff: "..spellname)
                        buffed=buffed+1
                    end
                end
            end
            
        end

 

But if this code does not do what I'm trying to get it to do... is there a way to combine all the Life Saving Buffs to be used the way their tool tips mean them to be used. I want to conserve space in my fight classes Rotation list by combining all the Life saving buffs to pop at different health spots to make them work the best for my class.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.