How to determine if spell book is open?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

GoatFoot
a lesser mummy
a lesser mummy
Posts: 68
Joined: Fri Jan 17, 2003 1:48 am

How to determine if spell book is open?

Post by GoatFoot » Wed Feb 12, 2003 11:31 pm

Hey folks,

Trying to figure out how to test if spell book is open, any suggestions?

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

Post by OldNecro » Wed Feb 12, 2003 11:41 pm

just do a /book no matter what... if it's already open, it will stay open, so it doesn't matter.

GoatFoot
a lesser mummy
a lesser mummy
Posts: 68
Joined: Fri Jan 17, 2003 1:48 am

Post by GoatFoot » Wed Feb 12, 2003 11:48 pm

writing a "always on" macro. There are some things I don't want to do if spell book is open. ex. Forage, etc.

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

Post by Grumpy » Thu Feb 13, 2003 5:52 am

Check for sitting
/if "$char(state)"=="SIT"
if you aren't sitting, the book isn't open, if you are, just stand up
/stand or /sit off
and do your thing, then hit either
/sit or /book #
if you want to go back to sitting or having the book open.

GoatFoot
a lesser mummy
a lesser mummy
Posts: 68
Joined: Fri Jan 17, 2003 1:48 am

Post by GoatFoot » Thu Feb 13, 2003 10:17 pm

This would be an always on macro. If I'm memming a spell, want to check if the spell book is open so I don't stand to forage and interrupt the spell mem. Things like that.

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

Post by Grumpy » Fri Feb 14, 2003 7:17 am

Ah for that, I'd add Events to check for "You start to memorize" and "You have finished memorizing" (or whatever the exact text is). If first event has triggered, but second has not, you are still memorizing, put everything else on hold.