• 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

Question - Mass enchanting

ToeJamSamy

Seasoned veteran member
Is there a simple command to use with a built-in macro or plugin to just cast the same spell over and over for enchanting stuff? Or do I have to install something else like a skillup macro and modify it?
 
Not facy checking for mana/buffs whatever, does get the job done.

Mem enchant spell in first gemslot.
Code:
#Event Missing "You are missing #1#."
#turbo 80


Sub Main

    /plugin mq2cast load noauto
|---Main Loop---|
:mainloop

    /doevents
    /delay 90s ${Me.SpellReady[${Me.Gem[1].Name}]}
    /cast ${Me.Gem[1].Name}
    /delay 90s ${Me.Casting.ID}
    /doevents

    /if (${Cursor.ID}) {
        /echo Sending \ag${Cursor.Name}\ax to a Bag
        /delay 1s
        /autoinventory
    }
/goto :mainloop
/return

|---Events---|

Sub Event_Missing(string line, string itemname)
    /if (${line.Find[some required]}) /return
    /echo Missing: \ag${itemname}
    /beep
    /stopcast
    /docommand /end
/return

or lmao you could do (random thought)
Code:
/plugin mq2twist load
/twist 1

Just have something like autoforage/autoloot drop cursor items to your bag.
 
Last edited:
Save this code as "Enchant.mac", if you do not yet have this file in your macro folder.
Load the spell for enchant in gem 12 (or change line 20).
Then edit the line 21 "/delay 18s" to fit with your casting time spell.


Code:
|
| File name : Enchant.mac
| Command : /mac Enchant
| Load Enchanting spell on Gem 12 (Line 20)
| Check casting time of your spell and add 2 or 3 seconds.
|       Line 21 => "/delay 18s"
|

#event OutOfStuff "You are missing some required components."
#include spell_routines.inc

Sub Main
:Loop
  /doevents
  :ClearCursor
   /if (${Cursor.ID}) {
   /autoinventory
  /goto :ClearCursor
  }
  /cast 12
  /delay 18s
/goto :Loop

Sub Event_OutOfStuff
/endmacro
/return
 
Last edited:
Here's a simple one that I wrote while working up my TS's for the ToV earring. Wanted something that would run in the background while I did my combines on a different toon, without worrying about it until it finished enchanting what i wanted.

Code:
| File name : enchant.mac
| Command : /mac Enchant
| Load Enchanting spell on Gem 1

#event outofitems "You are missing#*#"

Sub Main

    /declare SpellDelay int outer
    
    /varset SpellDelay ${Math.Calc[${Int[${Math.Calc[${Me.Gem[1].MyCastTime} / 1000]}]} + 2]}
    
    :mainloop
    
    /doevents
    /if (${Me.CurrentMana} < ${Me.Gem[1].Mana}) /call med
    /cast 1
    /delay ${SpellDelay}s
    /if (${Cursor.ID}) /autoinv
    /delay 1s
    /goto :mainloop

/return

Sub Event_outofitems
    /bc Ending Macro .... ${Me.Name}
    /endm
/return

Sub med

    /if (!${Me.Sitting}) /sit on
    :medloop
    /if (${Me.PctMana} < 100) /goto :medloop
    
/return
 

Attachments

Smashed this together to enchant with AA's. Obv need to change component needed, name of AA to use, and the Quantity to match your needs.
IE: 1 can be changed to 10 as needed based on the number you're wanting to enchant and the AA available to you.
Code:
Sub Main
    /declare Qty int local 10
    /declare component string local Refined Restless Velium
    /declare EnchantAA string local Enchant Refined Velium
    /while (${FindItemCount[=${component}]} >= ${Qty}) {
        /if (${Me.AltAbility[${EnchantAA} (x${Qty})]} && ${Me.AltAbilityReady[${EnchantAA} (x${Qty})]}) {
            /alt act ${Me.AltAbility[${EnchantAA} (x${Qty})].ID}
        }
       
        /if (${Cursor.ID}) {
            /autoinv
        }
       
        /delay 1
    }
/return

Happy hunting.
 
https://www.redguides.com/community/threads/massenchant-mac.75541/#post-464561 is the solution.



INI:
#Event Missing "You are missing #1#."
#Event Med "Insufficient Mana#*#"
#turbo 80

#warning
Sub Main(int AA)

    /plugin mq2cast load noauto
|---Main Loop---|
:mainloop

    /doevents
    
    /if (!${AA}) {
        /delay 90s ${Me.SpellReady[${Me.Gem[1].Name}]}
        /cast ${Me.Gem[1].Name}
    } else {
        /delay 90s ${Me.AltAbilityReady[${AA}]}
        /alt act ${AA}
    }
    /delay 2s
    /delay 90s !${Me.Casting.ID}   
    /autoinventory
    /doevents
    
    /while (${Cursor.ID}) {
        /echo Sending \ag${Cursor.Name}\ax to a Bag
        /delay 1s
        /autoinventory
    }
/goto :mainloop
    /autoinventory
/return

|---Events---|

Sub Event_Missing(string line, string itemname)
    /if (${line.Find[some required]}) /return
    /echo Missing: \ag${itemname}
    /bc Missing: [+g+]${itemname}
    /beep
    /stopcast
    /docommand /endmacro
/return

Sub Event_Med(string line)
    /echo Medding 60s
    /delay 60s
/return
 
Question - Mass enchanting

Users who are viewing this thread

Back
Top
Cart