Page 1 of 1

Determine if runebook is open?

Posted: Fri Dec 06, 2013 2:03 pm
by Devlin
Anyone know a method to check if your runebook is open, aside from cmppix? I want to pause any spell casts that might occur in my script when I'm trying to recall. I have a check that pauses when a target cursor appears but that only goes so far. Thanks for any input.

Re: Determine if runebook is open?

Posted: Fri Dec 06, 2013 8:07 pm
by Dramoor
I do not think so. Runebooks use a generic_gump in the cont system.


Can probalby do If #CONTSIZE = then the gump size.

Re: Determine if runebook is open?

Posted: Fri Dec 06, 2013 9:17 pm
by Xavian
Like Dramoor said, #contsize will work.

Code: Select all

if #contsize = 452_236
  gosub pause ;Or whatever you have setup for your pause

Re: Determine if runebook is open?

Posted: Sat Dec 07, 2013 3:48 am
by Devlin
lovely, thanks.
added
452_236 notin #contsize
to help disable casting when im recalling
may switch to contkind just in case, but sweet

Re: Determine if runebook is open?

Posted: Sat Dec 07, 2013 8:53 am
by Xavian
Glad I could help