Determine if runebook is open?

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
User avatar
Devlin
Legendary Scribe
Reactions:
Posts: 658
Joined: Thu Mar 18, 2010 12:50 pm

Determine if runebook is open?

Post 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.
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Runebook Copier
---------------------------------------------
Combat Focus Guide (Godmode Formula)
Dramoor
Legendary Scribe
Reactions:
Posts: 450
Joined: Wed Feb 23, 2011 7:37 pm

Re: Determine if runebook is open?

Post 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.
User avatar
Xavian
Legendary Scribe
Reactions:
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: Determine if runebook is open?

Post 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
User avatar
Devlin
Legendary Scribe
Reactions:
Posts: 658
Joined: Thu Mar 18, 2010 12:50 pm

Re: Determine if runebook is open?

Post 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
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Runebook Copier
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Xavian
Legendary Scribe
Reactions:
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: Determine if runebook is open?

Post by Xavian »

Glad I could help
Locked