• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Request - Removing all buffs

bobbccatt

Well-known member
Joined
May 24, 2008
RedCents
760¢
Is there a macro or a command that can strip all buffs from a character without having to click off each one?
 
I was trying a for loop and /removebuff ${Buff} but I couldn't get it to work reliably. This does though, macro attached, goes as far as slot 25.

[CODE lang="ini" title="Clearbuffs.mac"]#turbo 240

Sub Main

/notify BW_Buttons BW_Buff0_Button leftmouseup
/notify BW_Buttons BW_Buff2_Button leftmouseup
/notify BW_Buttons BW_Buff4_Button leftmouseup
/notify BW_Buttons BW_Buff6_Button leftmouseup
/notify BW_Buttons BW_Buff8_Button leftmouseup
/notify BW_Buttons BW_Buff10_Button leftmouseup
/notify BW_Buttons BW_Buff12_Button leftmouseup
/notify BW_Buttons BW_Buff14_Button leftmouseup
/notify BW_Buttons BW_Buff16_Button leftmouseup
/notify BW_Buttons BW_Buff18_Button leftmouseup
/notify BW_Buttons BW_Buff20_Button leftmouseup
/notify BW_Buttons BW_Buff22_Button leftmouseup
/notify BW_Buttons BW_Buff24_Button leftmouseup

/notify BW_Buttons BW_Buff1_Button leftmouseup
/notify BW_Buttons BW_Buff3_Button leftmouseup
/notify BW_Buttons BW_Buff5_Button leftmouseup
/notify BW_Buttons BW_Buff7_Button leftmouseup
/notify BW_Buttons BW_Buff9_Button leftmouseup
/notify BW_Buttons BW_Buff11_Button leftmouseup
/notify BW_Buttons BW_Buff13_Button leftmouseup
/notify BW_Buttons BW_Buff15_Button leftmouseup
/notify BW_Buttons BW_Buff17_Button leftmouseup
/notify BW_Buttons BW_Buff19_Button leftmouseup
/notify BW_Buttons BW_Buff21_Button leftmouseup
/notify BW_Buttons BW_Buff23_Button leftmouseup
/notify BW_Buttons BW_Buff25_Button leftmouseup

/return
[/CODE]
 

Attachments

Could you use something like

INI:
Sub Main
    /declare Slot int outer
    /for Slot 1 to 42
        /if (${Me.Buff[${Slot}].ID}) {
            /echo Removing ${Me.Buff[${Slot}].Name} from Slot ${Slot}
            /removebuff ${Me.Buff[${Slot}].Name}
            /delay 1
        }
    /next Slot
/return

Can't remember how many buff slots you can have
 
Yes, whatever I was doing wrong earlier you have corrected. I think maybe I wasn't putting the variable from the for loop into the ${} parentheses and I just had like i in there which is why it was removing some buffs... basically anything with an i in it. Doh
 
Request - Removing all buffs

Users who are viewing this thread

Back
Top
Cart