• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Request - Removing all buffs

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.

Clearbuffs.mac
INI:
#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
 

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