- 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.
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
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

