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