Detecting number of spell slots

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Detecting number of spell slots

Post by gimp » Thu Jun 05, 2008 3:54 pm

Hi all.
I struggled with a macro where I needed to know the number of spell slots available but couldn't figure out how to see what level of the AA Mnemonic Retention the character had, so I came up with this solution

Hope it helps someone.

PS if you have a better solution please post it here ^^

Code: Select all

/declare max int local 8
/if (${Me.AltAbilityReady["Mnemonic Retention"]}) {
	/if (${AltAbility["Mnemonic Retention"].MinLevel} == 55) /varset max 9
	/if (${AltAbility["Mnemonic Retention"].MinLevel} == 75) /varset max 10
}

mystikule
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jul 17, 2004 9:23 pm

Post by mystikule » Thu Jun 05, 2008 5:49 pm

Code: Select all

  /if (${Me.AltAbility[Mnemonic Retention]}==3) /varset SpellSlots 9
  /if (${Me.AltAbility[Mnemonic Retention]}==9) /varset SpellSlots 10
The numbers are to the best of memory. This is more accurate, vs assuming the character has them because they are high enough level to buy them.
[quote="fearless"]A macro is not psychic.[/quote]

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Fri Jun 06, 2008 4:16 am

thanks, that was a cleaner way to check it :)

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 6:59 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:00 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:02 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:03 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:04 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:05 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:06 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:43 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:44 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:46 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:47 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Detecting number of spell slots

Post by xyilla » Thu Aug 28, 2025 7:48 pm