• 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

All Class Invis Sub

ChatWithThisName

⚔️🛡️🗡️
Moderator
Joined
Dec 29, 2017
RedCents
23,976¢
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