$char(spellbook)

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

$char(spellbook)

Post by grimjack » Fri Sep 19, 2003 10:36 am

Plazmic wrote this and gave it to me on IRC. I just thought I would post it so it could be CVS'd.

EQLIB_MacroParser.cpp

Code: Select all

	// $char(spellbook)
	} else if (!strncmp("char(spellbook)",szVar,15)) {
		i+=14; 
		if (!EQADDR_SPELLBOOKWND) {
                	return PMP_ERROR_BADPARM;
                }
		PEQWINDOW pBookWindow = NULL;
		pBookWindow = (PEQWINDOW)*EQADDR_SPELLBOOKWND;
		if (pBookWindow->Open==1) {
			strcat(szOutput,"TRUE");
		} else {
			strcat(szOutput,"FALSE");
		} 
Returns TRUE if your spellbook is open, FALSE if it is not.

Thanks again Plazmic.
GrimJack
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.

Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.

My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Sep 19, 2003 2:22 pm

CVS'd.
MQ2: Think of it as Evolution in action.