Tone, Odessa,
I found a need for a working one of these and neither of you had (publicly) updated either version of MQ2Switch since the patch. So before bugging you guys, I decided to dig into the older threads to find the last working (at the time) source for this and try to make it work.
What I found was your adjustment of the original code on page 2 of this thread...
http://www.redguides.com/community/showthread.php?t=6783&page=2&pp=15
from October 31st (last updated November 10th) last year.
I updated OP_ClickSwitch to 0x418D (current), and PKT_UPDATE_POSITION to 0x7B59 (also current), and when compiling, it complained about pActorInfo. I wasn't too surprised since in the leading post of this current thread Tone mentioned adding that back into the MQ2Main.dll to make it work.
However after more shenanigans than I care to recount trying to make the code work with the base MQ2 Compile, I finally got around to just commenting out the
// DoorEnviroTarget.pActorInfo = &EnviroActor;
line. With the updated opcodes and this line commented out, it appears to work fine with the base MQ2 compile. The rest of the DoorEnviroTarget coding is still in there.
Any reason you can think of that I ought not to use it with that line commented?
Since neither of you have included source with your more recent updates of this plugin, I didn't include the full source, just the reference.