Better way to check for indoor vs. outdoor zone?
Posted: Tue Oct 04, 2005 6:22 pm
http://www.macroquest2.com/wiki/index.p ... h_Commands
edit: oops! I pasted the edit URL instead of the actual content. Link fixed above.
So above is the post to the Wiki, and yeah it's probably in the wrong place and could probably be divided into two different sections: one talking about cfg files loaded (should be ok where it is) and the other part moved to a section of the wiki that isn't obvious to me. Thanks in advance for the cleanup Lax.
So here's my question:
I don't see anything in the documentation describing how to tell if the zone you're in is indoor or outdoor. I was interested in being anal retentive in not attempting to cast a horse more than once in any indoor zone, and today came across the zone.cfg file information, along with several other cfg info tidbits.
Here's my solution, but I'd love to hear if there's something better:
Using the zoned.cfg file...You have a macro that wants to summon a mount (or cast SoW, etc), but should only attempt this in outdoor zones. In zoned.cfg, set a global variable to automatically set the zone to outdoor. Modify your macro to attempt to summon a horse at some appropriate point and capture a failed summon via /doevents. Reset the value of the variable to indoor and it will hold until you zone again.
edit: oops! I pasted the edit URL instead of the actual content. Link fixed above.
So above is the post to the Wiki, and yeah it's probably in the wrong place and could probably be divided into two different sections: one talking about cfg files loaded (should be ok where it is) and the other part moved to a section of the wiki that isn't obvious to me. Thanks in advance for the cleanup Lax.
So here's my question:
I don't see anything in the documentation describing how to tell if the zone you're in is indoor or outdoor. I was interested in being anal retentive in not attempting to cast a horse more than once in any indoor zone, and today came across the zone.cfg file information, along with several other cfg info tidbits.
Here's my solution, but I'd love to hear if there's something better:
Using the zoned.cfg file...You have a macro that wants to summon a mount (or cast SoW, etc), but should only attempt this in outdoor zones. In zoned.cfg, set a global variable to automatically set the zone to outdoor. Modify your macro to attempt to summon a horse at some appropriate point and capture a failed summon via /doevents. Reset the value of the variable to indoor and it will hold until you zone again.