• 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

All Class Invis Sub

ChatWithThisName

⚔️🛡️🗡️
Moderator
Commits
191
So during the anniversary I wrote "Inthedark.mac" which completed the 19th Anniversary task for "The Bone Rod". While writing that I ended up making an all class Sub to check if you were invisible before traveling. I used it anytime the character issued a movement command and checked it repeatedly while the character was moving and didn't have an XTarget[1]. I figured that others might find this useful when creating their own macros and decided to pull the sub out of the macro and post it individually. The all class Invis uses any available invis AA first, and then checks for cloudy potions as an alternate. Obviously more things could be added such as items that click invis, IE: Darkened Brigandine Tunic which clicks invis with an 8 second cast time. But I didn't add any item support for it at this time. But it definitely covers the majority of the basics and can be used for plug and play in any macro that requires a call to check if you are invisible and invis you if not.

Rich (BB code):
Sub CheckInvis
    /if (!${Me.Invis}) {
        /echo \arNeed to make myself invisible!
        /if (${Me.Class.ShortName.Equal[NEC]} || ${Me.Class.ShortName.Equal[SHD]}) {
            /if (${Me.AltAbility[Cloak of Shadows]}) {
                /alt act ${Me.AltAbility[Cloak of Shadows]}
            } else /if (${FindItemCount[Cloudy Potion]}) {
                /casting "Cloudy Potion|Item"
            } else {
                /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
            }
        } else /if (${Me.Class.ShortName.Equal[BRD]}) {
            /if (${Me.AltAbility[Shauri's Sonorous Clouding]}) {
                /alt act ${Me.AltAbility[Shauri's Sonorous Clouding]}
                /delay 5
                /removebuff "Shauri's Lev"
            } else /if (${FindItemCount[Cloudy Potion]}) {
                /casting "Cloudy Potion|Item"
            } else {
                /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
            }
        } else /if (${Me.Class.ShortName.Equal[MAG]} || ${Me.Class.ShortName.Equal[WIZ]} || ${Me.Class.ShortName.Equal[ENC]}) {
            /if (${Me.AltAbility[Perfected Invisibility]}) {
                /alt act ${Me.AltAbility[Perfected Invisibility]}
            } else /if (${Me.AltAbility[Group Perfected Invisibility]}) {
                /alt act ${Me.AltAbility[Group Perfected Invisibility]}
            } else /if (${FindItemCount[Cloudy Potion]}) {
                /casting "Cloudy Potion|Item"
            } else {
                /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
            }
        } else /if (${Me.Class.ShortName.Equal[SHM]}) {
            /if (${Me.AltAbility[Spirit Walk]}) {
                /alt act ${Me.AltAbility[Spirit Walk]}
            } else /if (${FindItemCount[Cloudy Potion]}) {
                /casting "Cloudy Potion|Item"
            } else {
                /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
            }
        } else /if (${Me.Class.ShortName.Equal[BST]}) {
            /if (${Me.AltAbility[Natural Invisibility]}) {
                /alt act ${Me.AltAbility[Natural Invisibility]}
            } else /if (${FindItemCount[Cloudy Potion]}) {
                /casting "Cloudy Potion|Item"
            } else {
                /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
            }
        } else /if (${Me.Class.ShortName.Equal[RNG]} || ${Me.Class.ShortName.Equal[DRU]}) {
            /if (${Me.AltAbility[Camouflage]}) {
                /alt act ${Me.AltAbility[Camouflage]}
            } else /if (${FindItemCount[Cloudy Potion]}) {
                /casting "Cloudy Potion|Item"
            } else {
                /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
            
            }
        } else /if (${FindItemCount[Cloudy Potion]}) {
            /casting "Cloudy Potion|Item"
        } else {
            /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
        }
    }
/return

Any issue or recommendation for this sub is welcome. Just post it here and I'll go about correcting any issue or updating if I feel it's needed.

Usage: /call CheckInvis
 
Code:
Sub CheckInvis
    /if (${Me.Invis}) /return
    /declare InvisAbility    int    local
    /declare PotionCount    int        local    ${FindItemCount[Cloudy Potion]}  

   
    /varset InvisAbility ${Select[TRUE,${Me.AltAbilityReady[Cloak of Shadows]},${Me.AltAbilityReady[Shauri's Sonorous Clouding]},${Me.AltAbilityReady[Perfected Invisibility]},${Me.AltAbilityReady[Spirit Walk]},${Me.AltAbilityReady[Natural Invisibility]},${Me.AltAbilityReady[Camouflage]}]}
    /delay 5
    /if (${InvisAbility}==1) /alt act ${Me.AltAbility[Cloak of Shadows]}
    /if (${InvisAbility}==2) /alt act ${Me.AltAbility[Shauri's Sonorous Clouding]}
    /if (${InvisAbility}==3) /alt act ${Me.AltAbility[Perfected Invisibility]}
    /if (${InvisAbility}==4) /alt act ${Me.AltAbility[Spirit Walk]]}
    /if (${InvisAbility}==5) /alt act ${Me.AltAbility[Natural Invisibility]}
    /if (${InvisAbility}==6) /alt act ${Me.AltAbility[Camouflage]}
    /if (!${InvisAbility} {
        /if (${PotionCount}) /useitem Cloudy Potion
        /if (!${PotionCount}) /echo \arI don't have any more cloudy potions :-(). Guess I'm fighting my way through!
    }
/return
 
Last edited:
Typo in your invisability string kaen, also you check for potions but don't use them even if you did have em
 
woops will teach me to to write code offline lol

but yeah it was just to show it can be done a bit simpler, and more readable.

fixed it for @Rooster
 
Last edited:
All Class Invis Sub

Users who are viewing this thread

Back
Top
Cart